@oxog/scrollex 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.1.0] - 2026-11-30
11
+
12
+ ### Fixed
13
+ - `VirtualList`, `VirtualGrid` and `VirtualMasonry`: an `onLoadMore` started by scrolling that rejects (or throws) is logged as `[Scrollex] Error in onLoadMore:` instead of becoming an unhandled promise rejection, the same as a load started for a list that does not fill its viewport.
14
+ - `bidirectional` passed inline (`plugins={[bidirectional(...)]}`) keeps following the bottom when new items arrive: the instance that saw the new items was replaced in the same commit and its scroll to the bottom was dropped.
15
+ - `scrollRestoration` no longer stops saving for good when the saved position is past the end of a list that stays shorter: once the reader scrolls, the wait for more data ends and the position is saved on unmount again.
16
+ - `kernel.destroy()` (and the event bus's `clear` / `clearEvent`) called from inside an event handler stops the handlers it removed from running for the rest of that event, as `off()` already did.
17
+
18
+ ### Changed
19
+ - `@oxog/scrollex` and `@oxog/scrollex/plugins` are built together with code splitting: the core plugins exported by both entry points are now the same functions and share their per-kernel state (each entry used to bundle its own copy).
20
+ - `react-dom` is an optional peer dependency (`peerDependenciesMeta`): the package never imports it.
21
+ - `exports` lists `./package.json`.
22
+ - Releases are published by a manually started `Publish` workflow (npm trusted publishing with provenance) instead of on a pushed `v*` tag; `npm run prepublishOnly` runs lint, typecheck, tests with coverage, the build and a check of the packed archive.
23
+
24
+ ### Internal
25
+ - ESLint 9 with `typescript-eslint` covers `src` and `tests` with no warnings allowed; `typecheck` also checks the tests (`tsconfig.test.json`).
26
+ - `npm run test:package` packs the archive, installs it with React into a scratch project, imports both entry points through ESM and CommonJS, type-checks them under `NodeNext` and runs smoke tests (including server rendering in plain Node). CI runs it on Node 18, 20, 22 and 24; lint, typecheck, tests and build run on Node 22 and 24.
27
+ - The documented-browser-versions test matched no version at all (its pattern lost its backslashes in a template literal) and a masonry gap test asserted nothing; both now check what they describe.
28
+
10
29
  ## [1.0.3] - 2026-11-27
11
30
 
12
31
  ### Changed
@@ -122,7 +141,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
122
141
 
123
142
  ---
124
143
 
125
- [Unreleased]: https://github.com/ersinkoc/Scrollex/compare/v1.0.3...HEAD
144
+ [Unreleased]: https://github.com/ersinkoc/Scrollex/compare/v1.1.0...HEAD
145
+ [1.1.0]: https://github.com/ersinkoc/Scrollex/compare/v1.0.3...v1.1.0
126
146
  [1.0.3]: https://github.com/ersinkoc/Scrollex/compare/v1.0.2...v1.0.3
127
147
  [1.0.2]: https://github.com/ersinkoc/Scrollex/compare/v1.0.1...v1.0.2
128
148
  [1.0.1]: https://github.com/ersinkoc/Scrollex/compare/v1.0.0...v1.0.1