Skip to content

Releases: css4j/tokenproducer

3.0

15 Sep 11:13
v3.0
Compare
Choose a tag to compare

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

15 Sep 10:18
v2.0.2
Compare
Choose a tag to compare

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

12 Apr 19:54
v2.0.1
Compare
Choose a tag to compare

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

12 Apr 17:43
v2.0
Compare
Choose a tag to compare

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 for openGroup() and closeGroup().
  • Upgrade to jazzer-junit 0.16.1.
  • Upgrade Gradle wrapper to 8.0.2.

Version 1.2

18 Feb 13:27
v1.2
Compare
Choose a tag to compare
  • Add method skipNextCodepoint() to TokenControl.
  • Migrate to a directory layout compatible with Gradle's defaults.
  • Upgrade to Gradle 8.0.1

Version 1.1.3

17 Feb 17:42
v1.1.3
Compare
Choose a tag to compare
  • 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

23 Jan 13:25
v1.1.2
Compare
Choose a tag to compare

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

28 Feb 16:26
v1.1.1
Compare
Choose a tag to compare

Small performance improvement.

TokenProducer v1.1.0

05 Jan 14:08
v1.1.0
Compare
Choose a tag to compare
  • 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

19 Sep 18:02
Compare
Choose a tag to compare

This simple event parser is at the core of the CSS4J parser. This module makes it available as a separate component.