@reticlehq/next 2.1.0 → 2.2.1

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.
Files changed (3) hide show
  1. package/NOTICE +5 -0
  2. package/loader.d.ts +8 -0
  3. package/package.json +14 -5
package/NOTICE ADDED
@@ -0,0 +1,5 @@
1
+ Reticle
2
+ Copyright 2026 Reticle Labs
3
+
4
+ This product includes software developed at Reticle Labs.
5
+ Licensed under the Apache License, Version 2.0.
package/loader.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Webpack pre-loader (wired by `withReticle`) that stamps `data-reticle-source` on JSX/TSX before
3
+ * next-swc-loader compiles it. Consumed by webpack by path, not imported as an API — this declaration
4
+ * exists so the subpath is typed. `this` is a webpack LoaderContext (kept as `unknown` to avoid a
5
+ * `webpack` type dependency in a package that only ships a `.cjs` loader).
6
+ */
7
+ declare function reticleNextLoader(this: unknown, source: string, inputMap?: unknown): void;
8
+ export = reticleNextLoader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reticlehq/next",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "Next.js helper for Reticle: keeps SWC, adds source-file mapping via a dev-only webpack pre-loader (data-reticle-source).",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Reticle contributors",
@@ -23,17 +23,22 @@
23
23
  "types": "./index.d.ts",
24
24
  "default": "./index.cjs"
25
25
  },
26
- "./loader": "./loader.cjs"
26
+ "./loader": {
27
+ "types": "./loader.d.ts",
28
+ "default": "./loader.cjs"
29
+ }
27
30
  },
28
31
  "files": [
29
32
  "index.cjs",
30
33
  "loader.cjs",
31
34
  "README.md",
32
- "index.d.ts"
35
+ "index.d.ts",
36
+ "NOTICE",
37
+ "loader.d.ts"
33
38
  ],
34
39
  "dependencies": {
35
40
  "@babel/core": "^7.26.0",
36
- "@reticlehq/babel-plugin": "2.1.0"
41
+ "@reticlehq/babel-plugin": "2.2.1"
37
42
  },
38
43
  "peerDependencies": {
39
44
  "next": ">=13"
@@ -41,5 +46,9 @@
41
46
  "types": "./index.d.ts",
42
47
  "publishConfig": {
43
48
  "access": "public"
44
- }
49
+ },
50
+ "engines": {
51
+ "node": ">=20.0.0"
52
+ },
53
+ "bugs": "https://github.com/reticlehq/reticle/issues"
45
54
  }