Skip to content

Releases: jstachio/jstachio

v1.3.5

06 Mar 16:34
Compare
Choose a tag to compare

Bug release fix for #322 which mostly impacts Spring but could impact other frameworks.

Some improvements were also done for escaping performance.

Thanks to @dsyer for finding #322

Full Changelog: v1.3.4...v1.3.5

v1.3.4

15 Nov 16:35
Compare
Choose a tag to compare

Bug fix release

Thanks to @frantello, @jskov and @bitfist

Bug fixes

#251 generated javadoc issues
#248 Spring model configurer had wrong signature for model maps

Enhancements

#266 a minor perf enhancement that does not change API.

Internal

Upgraded errorprone and checker and turned on even more static analysis.

Dependabot spam

  • Bump org.springframework:spring-framework-bom from 6.0.12 to 6.0.13 by @dependabot in #245
  • Bump com.fasterxml.jackson:jackson-bom from 2.15.2 to 2.15.3 by @dependabot in #246
  • Bump com.google.errorprone:error_prone_core from 2.22.0 to 2.23.0 by @dependabot in #247
  • Bump spring-boot.version from 3.1.4 to 3.1.5 by @dependabot in #249
  • Bump org.graalvm.buildtools:native-maven-plugin from 0.9.27 to 0.9.28 by @dependabot in #250
  • Bump io.dropwizard:dropwizard-bom from 4.0.2 to 4.0.3 by @dependabot in #252
  • Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.1 to 3.3.2 by @dependabot in #254
  • Bump org.apache.commons:commons-text from 1.10.0 to 1.11.0 by @dependabot in #255
  • Bump checkerframework.version from 3.39.0 to 3.40.0 by @dependabot in #256
  • Bump org.moditect:moditect-maven-plugin from 1.0.0.Final to 1.1.0 by @dependabot in #259
  • Bump com.tngtech.archunit:archunit-junit4 from 1.1.0 to 1.2.0 by @dependabot in #258
  • Bump org.codehaus.plexus:plexus-archiver from 4.8.0 to 4.9.0 by @dependabot in #260
  • Bump io.dropwizard:dropwizard-bom from 4.0.3 to 4.0.4 by @dependabot in #261
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0 to 3.6.2 by @dependabot in #262
  • Bump com.github.spotbugs:spotbugs-maven-plugin from 4.7.3.6 to 4.8.1.0 by @dependabot in #263
  • Bump org.apache.maven.plugins:maven-surefire-plugin from 3.1.2 to 3.2.2 by @dependabot in #264

Full Changelog: v1.3.3...v1.3.4

v1.3.3

11 Oct 20:59
Compare
Choose a tag to compare

Bug fix release

Fix #244 so that Eclipse projects that are not using Maven or Gradle buildship will hopefully still work.

Thanks to @jskov !

What's Changed

  • Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.3.0 to 3.4.0 by @dependabot in #224
  • Bump checkerframework.version from 3.37.0 to 3.38.0 by @dependabot in #228
  • Bump org.graalvm.buildtools:native-maven-plugin from 0.9.24 to 0.9.26 by @dependabot in #229
  • Gradle test resources #221 regression by @agentgt in #230
  • Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.4.0 to 3.4.1 by @dependabot in #231
  • Bump org.graalvm.buildtools:native-maven-plugin from 0.9.26 to 0.9.27 by @dependabot in #234
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.6.0 by @dependabot in #235
  • Bump spring-boot.version from 3.1.2 to 3.1.4 by @dependabot in #237
  • Bump com.google.errorprone:error_prone_core from 2.21.1 to 2.22.0 by @dependabot in #238
  • Bump org.springframework:spring-framework-bom from 6.0.11 to 6.0.12 by @dependabot in #233
  • Bump io.dropwizard:dropwizard-bom from 4.0.1 to 4.0.2 by @dependabot in #239
  • Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.0 to 3.5.1 by @dependabot in #240
  • Bump com.github.spotbugs:spotbugs-maven-plugin from 4.7.3.5 to 4.7.3.6 by @dependabot in #241
  • Bump checkerframework.version from 3.38.0 to 3.39.0 by @dependabot in #242
  • Bump org.apache.maven:maven-core from 3.9.4 to 3.9.5 by @dependabot in #243

Full Changelog: v1.3.2...v1.3.3

v1.3.2

21 Aug 20:28
Compare
Choose a tag to compare

Bug fix release

Disable automatic gradle incremental support (aggregating): #223

If and when Gradle supports annotations on Modules we will turn back on aggregating.

If by small chance you were relying on "aggregating" incremental you may temporarily turn it on via

-Ajstache.gradle_incremental=aggregating

What's Changed

Full Changelog: v1.3.1...v1.3.2

Thanks @hrstoyanov !

v1.3.1

15 Aug 18:50
Compare
Choose a tag to compare

Bug fix release

Fix #221 JStachio fallback mechanism was thinking intellij was gradle for JDK 17.

Thanks @taypo for the find!

Full Changelog: v1.3.0...v1.3.1

v1.3.0

09 Aug 19:53
Compare
Choose a tag to compare

1.3.0 Feature Release

See all the 1.3.0 issues

The most important feature added is #168 Context Aware Templates.

This feature took extensive work and Spring MVC supports it OOB. In Spring this will allow you to access
model attributes like.

{{@context.someModelAttribute}}

@context is like a Map so you do loose some type safety when using it but this will allow models to stay immutable. You can use lambdas to pull contents out of a context and cast it.

@JStacheLambda
public Locale findLocale(ContextNode node) {
  return (Locale) node.get("locale");
}
{{@context.findLocale}}
{{country}} {{! call Locale.getCountry }}
{{/@context.findLocale}}

Potential breaking changes

There is a very very minor chance this release will break if you extended:

  • JStachioFilter
  • ContextNode

It was decided not to make a major version since it was documented that those interfaces are rather internal.

Regardless it is best to rerun the annotation processor on all models before upgrading the runtime.

Deprecation

The JMustache extension has been sadly deprecated. While it did work for simple stuff it was too misleading to be trusted.
We are actively looking for newer/better hot reload #187 . Stay tuned and thumb-up if hot reload is a pain point.

What's Changed

Full Changelog: v1.2.1...v1.3.0

v1.2.1

24 Jul 19:39
Compare
Choose a tag to compare

Bug fix release

This release fixes some issues with supportsType as well as a Spring issue found by @dsyer .

The most notable change is to support inheritance of JStache annotations which is required for 1.3.0. We decided to support this feature in a patch release as it was unclear based on the documentation if a modelType requires an annotation or not and the current behavior was buggy.

What's Changed

  • Bump spring-boot.version from 3.1.1 to 3.1.2 by @dependabot in #197
  • ModelAndView can contain View that is not from JStachio by @dsyer in #202

Full Changelog: v1.2.0...v1.2.1

v1.2.0

17 Jul 20:50
Compare
Choose a tag to compare

Release 1.2.0 brings new features:

  • Spring Boot starter support
  • Dropwizard support
  • htmx fragments support
  • Tons of shared output strategies based on template benchmarking and continued framework integration

See the milestone for features added: https://github.com/jstachio/jstachio/milestone/5?closed=1

Thanks to @dsyer for more Spring guidance and @hrstoyanov for fragments idea.

What's Changed

Full Changelog: v1.1.1...v1.2.0

v1.1.1

13 Jun 21:17
Compare
Choose a tag to compare

This bug release fixes some Spring integration issues with HTTP headers that were missing.

See #172 and #176

It is highly recommended you upgrade if you are using Spring.

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

06 Jun 19:00
Compare
Choose a tag to compare

This release adds experimental nullable annotation support for generated code: #164

This will help those that are using complete null analysis tools like Checker and JSpecify (when it is ready)
that might be run on generated code.

While this is a minor release it should be completely safe to upgrade as we only add API changes to JStacheFlag (feature flags).

What's Changed

Full Changelog: v1.0.1...v1.1.0