@nordwerk/scroll-carousel 0.1.3 → 0.1.4

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/AGENTS.md CHANGED
@@ -111,12 +111,15 @@ JavaScript, never move slides with transforms, never clone slides.
111
111
 
112
112
  ### Commands
113
113
 
114
+ Working on the repository needs Node 22 or later and the pnpm version in `packageManager`.
115
+
114
116
  ```sh
115
117
  pnpm install
116
118
  pnpm typecheck
117
119
  pnpm test # unit tests, no build needed
118
120
  pnpm build # dist/: esbuild modules plus tsc declarations
119
121
  pnpm size # fails when an entry exceeds its gzip budget
122
+ pnpm lint:package # publint and arethetypeswrong on the packed tarball, after a build
120
123
  pnpm site # build, then _site/
121
124
  node scripts/fixtures.mjs # React, Preact and Astro fixtures into _site/fixtures/
122
125
  pnpm test:e2e # Chromium, WebKit and Firefox
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4 (2026-09-22)
4
+
5
+ - Types resolve in TypeScript projects still on `moduleResolution: "node"`, which ignores
6
+ `exports`: `main`, `types` and `typesVersions` point at the same files.
7
+ - No `engines` field any more: it asked consumers for Node 22 although the package runs in the
8
+ browser.
9
+ - Released from GitHub Actions through npm trusted publishing, with provenance.
10
+
3
11
  ## 0.1.3 (2026-09-22)
4
12
 
5
13
  - `carousel.layer.css`: the stylesheet inside Tailwind's components layer, with Tailwind's layer
package/README.md CHANGED
@@ -261,7 +261,7 @@ not supported (true infinite loop, vertical, effects, virtual slides, synced thu
261
261
 
262
262
  ```sh
263
263
  pnpm install
264
- pnpm check # typecheck, unit tests, build, size budget, site, fixtures, browser tests
264
+ pnpm check # typecheck, unit tests, build, size budget, package lint, site, fixtures, browser tests
265
265
  pnpm serve # the site on http://localhost:4173 after pnpm site
266
266
  ```
267
267
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordwerk/scroll-carousel",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "A dependency-free carousel on native scrolling: CSS scroll snap first, arrows, dots, paging and an API as progressive enhancement.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,6 +22,8 @@
22
22
  "sideEffects": [
23
23
  "*.css"
24
24
  ],
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
25
27
  "exports": {
26
28
  ".": {
27
29
  "types": "./dist/index.d.ts",
@@ -52,6 +54,15 @@
52
54
  "./carousel.layer.css": "./dist/carousel.layer.css",
53
55
  "./package.json": "./package.json"
54
56
  },
57
+ "typesVersions": {
58
+ "*": {
59
+ "drag": ["./dist/drag.d.ts"],
60
+ "autoplay": ["./dist/autoplay.d.ts"],
61
+ "markup": ["./dist/markup.d.ts"],
62
+ "react": ["./dist/react.d.ts"],
63
+ "preact": ["./dist/preact.d.ts"]
64
+ }
65
+ },
55
66
  "files": [
56
67
  "dist",
57
68
  "src/astro",
@@ -71,8 +82,9 @@
71
82
  "fixtures": "node scripts/fixtures.mjs",
72
83
  "test:e2e": "playwright test",
73
84
  "serve": "node scripts/serve.mjs",
74
- "check": "pnpm typecheck && pnpm test && pnpm site && pnpm size && pnpm fixtures && pnpm test:e2e",
75
- "prepublishOnly": "node scripts/build.mjs"
85
+ "check": "pnpm typecheck && pnpm test && pnpm site && pnpm size && pnpm lint:package && pnpm fixtures && pnpm test:e2e",
86
+ "prepublishOnly": "node scripts/build.mjs",
87
+ "lint:package": "publint --strict && attw --pack . --exclude-entrypoints astro carousel.css carousel.layer.css --ignore-rules cjs-resolves-to-esm"
76
88
  },
77
89
  "peerDependencies": {
78
90
  "preact": ">=10",
@@ -87,7 +99,9 @@
87
99
  }
88
100
  },
89
101
  "devDependencies": {
102
+ "@arethetypeswrong/cli": "0.18.5",
90
103
  "@axe-core/playwright": "4.13.0",
104
+ "@base-ui/react": "^1.8.0",
91
105
  "@fontsource-variable/geist": "^5.3.0",
92
106
  "@playwright/test": "1.61.1",
93
107
  "@tailwindcss/cli": "4.3.3",
@@ -95,17 +109,17 @@
95
109
  "@types/react": "^19.3.0",
96
110
  "@types/react-dom": "^19.3.0",
97
111
  "astro": "^7.3.3",
112
+ "class-variance-authority": "^0.7.1",
113
+ "cn": "^0.3.2",
98
114
  "esbuild": "0.28.2",
99
115
  "preact": "^10.29.8",
100
116
  "preact-render-to-string": "6.7.0",
117
+ "publint": "0.3.24",
101
118
  "react": "^19.3.0",
102
119
  "react-dom": "^19.3.0",
103
120
  "shadcn": "4.21.0",
104
121
  "tailwindcss": "4.3.3",
105
122
  "typescript": "^7.0.2"
106
123
  },
107
- "engines": {
108
- "node": ">=22"
109
- },
110
124
  "packageManager": "pnpm@12.5.1"
111
125
  }