@su-labs/scroll-spy 20.1.1 → 20.1.2
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 +5 -0
- package/README.md +7 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [22.1.2] - 2026-11-16
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Uses `@su-labs/core` 1.9.0 (was 1.8.0), the same version as every other `@su-labs` package, so apps using several of them install core once
|
|
12
|
+
|
|
8
13
|
## [22.1.1] - 2026-11-14
|
|
9
14
|
|
|
10
15
|
### Changed
|
package/README.md
CHANGED
|
@@ -56,22 +56,24 @@ A lightweight Angular service and directive for managing active sections based o
|
|
|
56
56
|
You can install this library via npm:
|
|
57
57
|
|
|
58
58
|
```sh
|
|
59
|
-
npm install @su-labs/scroll-spy
|
|
59
|
+
npm install @su-labs/scroll-spy@ng20
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
This is the Angular 20 version. For the newest Angular, install `@su-labs/scroll-spy` without a tag.
|
|
63
|
+
|
|
62
64
|
## Peer Dependencies
|
|
63
65
|
|
|
64
66
|
This library requires the following peer dependencies:
|
|
65
67
|
|
|
66
68
|
```sh
|
|
67
|
-
npm install @angular/common@^
|
|
69
|
+
npm install @angular/common@^20 @angular/core@^20
|
|
68
70
|
```
|
|
69
71
|
|
|
70
72
|
## Quick Start
|
|
71
73
|
|
|
72
74
|
```typescript
|
|
73
75
|
// 1. Install
|
|
74
|
-
npm install @su-labs/scroll-spy
|
|
76
|
+
npm install @su-labs/scroll-spy@ng20
|
|
75
77
|
|
|
76
78
|
// 2. Add directive to your sections
|
|
77
79
|
@for (section of sections; track section.id) {
|
|
@@ -202,7 +204,7 @@ The `ScrollSpyDirective` uses the browser's native [IntersectionObserver API](ht
|
|
|
202
204
|
|
|
203
205
|
Works in all modern browsers that support:
|
|
204
206
|
- IntersectionObserver API
|
|
205
|
-
- Angular
|
|
207
|
+
- Angular 20
|
|
206
208
|
- ES2022+
|
|
207
209
|
|
|
208
210
|
| Browser | Version |
|
|
@@ -237,7 +239,7 @@ Make sure you've imported `ScrollSpyDirective` in your component's imports array
|
|
|
237
239
|
|
|
238
240
|
### TypeScript errors?
|
|
239
241
|
|
|
240
|
-
Ensure you have Angular
|
|
242
|
+
Ensure you have Angular 20 and TypeScript 5.8+ installed.
|
|
241
243
|
|
|
242
244
|
## Support
|
|
243
245
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@su-labs/scroll-spy",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.2",
|
|
4
4
|
"description": "An Angular scroll spy utility based on IntersectionObserver for tracking active sections or menu items.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@angular/core": "^20.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@su-labs/core": "1.
|
|
36
|
+
"@su-labs/core": "1.9.0",
|
|
37
37
|
"tslib": "^2.3.0"
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|