Releases: css4j/tokenproducer
3.0
Add a TokenProducer3
which works with a new TokenHandler3
interface.
Most token handlers will report problems through error handlers and throw no checked exceptions, in which case you should use TokenProducer
together with a TokenHandler
or TokenHandler2
. In other use cases your handler may want to throw checked exceptions, and then you must use TokenProducer3
with a TokenHandler3
instead.
2.0.2
This release fixes a compilation error with Java 8. The binaries in previous versions may not produce any problems when running on a Java 8 JRE, but 2.0.2 may be safer to use.
Detail of changes
- Fix compilation error with Java 8.
- Use advanced for loop in
TokenProducer
. - Tests: use diamond operator.
- Compile for --release 8.
- Upgrade to JUnit 5.10.0.
- Upgrade to Jazzer 0.20.1.
- Upgrade Gradle wrapper to 8.3.
- Bump actions/checkout from 3 to 4.
- changes.sh: add a dot at the end of each item.
- Set up a dependabot upgrade task.
- Set up a CodeQL analysis action.
- Add a Security Policy.
Version 2.0.1
This is essentially 2.0 but with improved backwards compatibility.
Detail of changes
- Rename the updated handler as
TokenHandler2
, to avoid backwards compatibility issues. - Upgrade Gradle wrapper to 8.1.
Version 2.0
Highlights
Tokenproducer 2.0 replaces the methods openGroup()
and closeGroup()
with leftParenthesis()
/rightParenthesis()
and others. Using the new event methods may allow you to write clearer code, although you can also have your old TokenHandler
implementation inherit from the new LegacyTokenHandler
, which is compatible with the 1.x API and provides a simpler upgrade path.
Detail of changes
- Introduce new events like
leftParenthesis()
/rightParenthesis()
as a replacement foropenGroup()
andcloseGroup()
. - Upgrade to jazzer-junit 0.16.1.
- Upgrade Gradle wrapper to 8.0.2.
Version 1.2
- Add method
skipNextCodepoint()
toTokenControl
. - Migrate to a directory layout compatible with Gradle's defaults.
- Upgrade to Gradle 8.0.1
Version 1.1.3
- Do not report as error an EOF found after a string quote if
EofEndingQuoted
is accepted. - Tests: convert the tests to JUnit 5.
- Add a Jazzer-based fuzzer.
- Upgrade Gradle wrapper to 8.0
Version 1.1.2
Highlights
This is a very minor upgrade that does not fix any bug (no bugs are known).
New Gradle build
The build system was migrated from Maven to Gradle.
Very small code improvements
A couple of very minor code improvements were made.
Detail of changes
- Use
Arrays.fill()
in a couple of places. - Make a few inner classes static.
- Switch from Maven to Gradle build.
- Tests: add a comment to a test.
- Tests: remove deprecated privileged block.
- Javadoc: add a module description.
- Put SPDX headers in its own comment, bump year in copyrights.
- Upgrade to JUnit 4.13.2.
- Create a CI workflow.
- Add a workflow to publish package in Github.
TokenProducer v1.1.1
Small performance improvement.
TokenProducer v1.1.0
- Add an option to handle locations at this parser (by processing CR/LF/FF), instead of at the handler.
- POM: compile base classes to target Java 7.
TokenProducer v1.0.0
This simple event parser is at the core of the CSS4J parser. This module makes it available as a separate component.