Releases: tomitribe/jaws
Releases · tomitribe/jaws
Release list
JAWS 2.1.0
2.1.0
Breaking changes
-
All listings are immediate by default.
Stream<T>,List<T>,Set<T>,Collection<T>, andT[]methods now return only immediate children (one level) regardless of element type. Previously, plainT(notS3.DirorS3.File) silently used a recursive flat listing. -
@Walkreplaced by@Recursive. The@Walkannotation and itsmaxDepth/minDepthattributes have been removed. Use@Recursiveto opt into recursive listing. There is no depth control; for depth-limited traversal, useS3File.walk()directly.
New features
- Input validation on single-arg methods.
@Prefix,@Suffix,@Match, and@Filterannotations on the return type or method now validate the input name when calling single-arg proxy methods likeUserFile user(String name). AnIllegalArgumentExceptionis thrown if the name doesn't pass. This catches invalid keys at the call site rather than silently creating a proxy for a non-matching key.
Migration
| Before (2.0.x) | After (2.1.0) |
|---|---|
@Walk Stream<S3File> all() |
@Recursive Stream<S3File> all() |
@Walk Stream<S3.Dir> dirs() |
@Recursive Stream<S3.Dir> dirs() |
@Walk(maxDepth=1) Stream<X> items() |
Stream<X> items() (immediate is now the default) |
@Walk(minDepth=n, maxDepth=n) Stream<X> exact() |
Remove — use S3File.walk() manually |
Stream<T> items() (plain T, was recursive) |
Add @Recursive to preserve old behavior, or leave as-is for immediate |
jaws-parent-2.0.4
[maven-release-plugin] copy for tag jaws-parent-2.0.4
v0.14
Full Changelog: https://github.com/tomitribe/jaws/commits/tomitribe-jaws-0.14