-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from http4s/1.0.0-M38
Release v1.0.0-M38 on http4s-core-1.0.0-M38
- Loading branch information
Showing
12 changed files
with
221 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
rules = [ | ||
Http4sFs2Linters | ||
Http4sGeneralLinters | ||
Http4sUseLiteralsSyntax | ||
LeakingImplicitClassVal | ||
ExplicitResultTypes | ||
OrganizeImports | ||
] | ||
|
||
triggered.rules = [ | ||
Http4sFs2Linters | ||
Http4sGeneralLinters | ||
Http4sUseLiteralsSyntax | ||
LeakingImplicitClassVal | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version = 3.5.8 | ||
version = 3.6.1 | ||
|
||
style = default | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# http4s-scala-xml | ||
|
||
Provides http4s entity codec instances for [scala-xml]. | ||
|
||
## `http4s-scala-xml` | ||
|
||
This is probably the artifact you want. It works with scala-xml-2.x. | ||
|
||
### SBT coordinates | ||
|
||
```scala | ||
libraryDependencies ++= Seq( | ||
"org.http4s" %% "http4s-scala-xml" % http4sScalaXmlV | ||
) | ||
``` | ||
|
||
## `http4s-scala-xml-1` | ||
|
||
This repository also publishes an alternate `http4s-scala-xml-1` | ||
artifact. The Scala package is the same, so this dependency must | ||
never be bundled with `http4s-scala-xml`. It exists because several | ||
signficant libraries, like [Twirl], are still based on scala-xml-1.x | ||
in Scala 2. Use this library to avoid diamond dependencies, but | ||
upgrade when you can. | ||
|
||
### SBT coordinates | ||
|
||
```scala | ||
libraryDependencies ++= Seq( | ||
"org.http4s" %% "http4s-scala-xml-1" % http4sScalaXmlV | ||
) | ||
``` | ||
|
||
|
||
## Compatibility | ||
|
||
| artifact | version | http4s-core | scala-xml | Scala 2.12 | Scala 2.13 | Scala 3 | Status | | | ||
|:-------------------|:--------|:------------|:----------|------------|------------|---------|--------|---| | ||
| http4s-scala-xml | 0.23.x | 0.23.x | 2.x | ✅ | ✅ | ✅ | Stable | | | ||
| http4s-scala-xml-1 | 0.23.x | 0.23.x | 1.x | ✅ | ✅ | ❌ | Stable | | | ||
|
||
[scala-xml]: https://github.com/scala/scala-xml | ||
[twirl]: https://github.com/playframework/twirl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.6.2 | ||
sbt.version=1.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("org.http4s" % "sbt-http4s-org" % "0.13.4") | ||
addSbtPlugin("org.http4s" % "sbt-http4s-org" % "0.14.7") |
38 changes: 38 additions & 0 deletions
38
scala-xml-1/src/test/scala/org/http4s/scalaxml/ScalaXmlSuiteVersion.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2014 http4s.org | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.http4s.scalaxml | ||
|
||
import scala.xml._ | ||
import scala.xml.transform._ | ||
|
||
trait ScalaXmlSuiteVersion { | ||
object stripComments extends RewriteRule { | ||
override def transform(n: Node): Seq[Node] = | ||
n match { | ||
case _: Comment => Seq.empty | ||
case n => Seq(n) | ||
} | ||
} | ||
|
||
object trimProper extends RewriteRule { | ||
override def transform(n: Node): Seq[Node] = | ||
Utility.trimProper(n) | ||
} | ||
|
||
// https://github.com/http4s/http4s-scala-xml/issues/32 | ||
object normalize extends RuleTransformer(stripComments, trimProper) | ||
} |
27 changes: 27 additions & 0 deletions
27
scala-xml-2/src/test/scala/org/http4s/scalaxml/ScalaXmlSuiteVersion.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2014 http4s.org | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.http4s.scalaxml | ||
|
||
import scala.xml.transform._ | ||
|
||
trait ScalaXmlSuiteVersion { | ||
// https://github.com/http4s/http4s-scala-xml/issues/32 | ||
// | ||
// Nothing to do here but make the tests compatible with | ||
// scala-xml-1's parser. | ||
object normalize extends RuleTransformer() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.