Skip to content

Commit fc03566

Browse files
committed
Prepare release for 6.0.0
1 parent 1d35a67 commit fc03566

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v6.0.0
4+
5+
- Dropped support for CJS modules. This package is now ESM-only.
6+
- Migrated the test framework from Jest to Node's Test Runner.
7+
- Set the tests to run only on Node 20, 22, and 24. However, this package is expected to function in any JS environment as long as ESM is supported; if it does not, please file an issue.
8+
39
## v5.2.0
410

511
- Added `individualThreshold` option to `stringify()`.
@@ -27,7 +33,6 @@ The API has changed radically in version 5. The new API is slightly more verbose
2733
- Dropped support for IE and old Node.
2834
- Migrated to pure function-style API and added an ESM build. This package is now fully tree-shakable.
2935
- In addition to the change from methods to simple functions, some functions have also been renamed or removed.
30-
3136
- (constructor): Use `parse()` or `normalize()`.
3237
- `toArray`: Renamed to `flatten()`.
3338
- `toString`: Renamed to `stringify()`.
@@ -114,7 +119,6 @@ The API has changed radically in version 5. The new API is slightly more verbose
114119
**❗️ Breaking Changes**
115120

116121
- Removed the following methods which had been deprecated since v2.0.0.
117-
118122
- `isContinuous()` (Gone for good. Use `segmentLength() === 1` instead)
119123
- `hasRange()` \*
120124
- `appendRange()` \*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Install via npm or yarn:
3131
npm install multi-integer-range
3232
```
3333

34-
Version 5 is a hybrid package; it provides both a CommonJS version and an ES Module version, built from the same TypeScript source. Bundlers such as Webpack can automatically pick the ESM version and perform tree-shaking. This package has no external dependencies nor does it use any Node-specific API.
34+
Version 6 is a fully tree-shakable, ESM-only package. This package has no external dependencies nor does it use any Node-specific API.
3535

3636
🚨 The API style has changed drastically in version 5. The new API is slightly more verbose, but is simpler and tree-shakable 🌲. For example, if you don't use the default parser, your bundle will not include it. See the [CHANGELOG](./CHANGELOG.md) and the [docs for version 4](https://github.com/smikitky/node-multi-integer-range/tree/v4.0.9).
3737

0 commit comments

Comments
 (0)