Release version @offload-project/rrule@2.8.1 - #7
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@offload-project/rrule@2.8.1
Patch Changes
1090936: Refactored the core recurrence-rule implementation to share query/caching logic across RRule and RRuleSet, while also fixing a few correctness/performance issues in iteration and caching behavior.
Bug Fixes
Fixed removeFilteredDays accumulation bug
potentially skip the wrong number of days when earlier days in the set were filtered out.
Fixed RRuleSet.clone() inverted noCache
sets and vice versa.
Removed dead lno1wkst = 0 assignment
Architecture
Performance
rrules()/exrules() — eliminated serialize+reparse
_addRule/_addDate — eliminated O(n) array allocation
Added cache size bounds (src/cache.ts)
Type Safety
Narrowed bynweekday to tuple type (src/types.ts)
monthinfo.ts and parseoptions.ts.
Narrowed toText options to ParsedOptions (src/nlp/totext.ts)
this.options.bymonthday, etc.
Added explicit return types to dateutil helpers (src/dateutil.ts)
Added explicit return type to extractName (src/rrulestr.ts)
Added default destructuring values in parseString (src/parsestring.ts)
Fixed Cache.all type (src/cache.ts)
Clarified cache miss check (src/cache.ts)
Code Cleanup
Converted C-style loops to for...of across 7 files
assertions.
Removed dead code (src/iter/index.ts)
Removed redundant instanceof runtime guards (src/rruleset.ts)
Removed guards and corresponding tests.
Fixed test parse() null safety (test/lib/utils.ts)
Features
Tooling
date behavior.