@warp-drive/tc39-proposal-signals 5.10.0-alpha.21 → 5.10.0-alpha.23

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/dist/install.d.ts CHANGED
@@ -1,3 +1,26 @@
1
+ /**
2
+ * Importing this entry point configures ***Warp*Drive** to use the
3
+ * [TC39 Signals polyfill](https://github.com/proposal-signals/signal-polyfill) for reactivity:
4
+ * on import it calls `registerSignals` with {@link buildSignalConfig}.
5
+ *
6
+ * If `@warp-drive/alien-signals/install` was imported first, each `Signal.State` is registered with
7
+ * its signals graph, alongside any other framework's signals, and memos come from that graph.
8
+ * Otherwise it configures the polyfill on its own with `setupSignals`.
9
+ *
10
+ * Add the import to the top of your application. If you have tests which do not invoke your
11
+ * app, add it to your test setup as well:
12
+ *
13
+ * ```ts
14
+ * import '@warp-drive/tc39-proposal-signals/install';
15
+ * ```
16
+ *
17
+ * A library should do this only in its tests, not in its published code. See
18
+ * [Installation](/guides/installation/#tc39-signals) for the full setup.
19
+ *
20
+ * @summary Side-effect import that configures WarpDrive to use the TC39 Signals polyfill, `signal-polyfill`, for
21
+ * reactivity.
22
+ * @module
23
+ */
1
24
  import { Signal } from "signal-polyfill";
2
25
  import { HooksOptions, SignalHooks } from "@warp-drive/core/configure";
3
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","names":[],"sources":["../src/install.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqDgB,kBAAkB,UAAU,eAAe,YAAY,OAAO"}
1
+ {"version":3,"file":"install.d.ts","names":[],"sources":["../src/install.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqDgB,kBAAkB,UAAU,eAAe,YAAY,OAAO"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-drive/tc39-proposal-signals",
3
3
  "description": "Configures WarpDrive reactivity to use the TC39 Signals polyfill (signal-polyfill); import its install entry in apps that use TC39 Signals.",
4
- "version": "5.10.0-alpha.21",
4
+ "version": "5.10.0-alpha.23",
5
5
  "license": "MIT",
6
6
  "author": "Chris Thoburn <runspired@users.noreply.github.com>",
7
7
  "repository": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@embroider/macros": "^1.21.4",
34
- "@warp-drive/core": "5.10.0-alpha.21",
34
+ "@warp-drive/core": "5.10.0-alpha.23",
35
35
  "signal-polyfill": "0.2.2"
36
36
  },
37
37
  "peerDependenciesMeta": {},
@@ -41,9 +41,9 @@
41
41
  "@babel/preset-env": "^7.29.7",
42
42
  "@babel/preset-typescript": "^7.29.7",
43
43
  "@babel/runtime": "^7.29.10",
44
- "@warp-drive/core": "5.10.0-alpha.21",
45
- "@warp-drive/internal-config": "5.10.0-alpha.21",
46
- "tsdown": "^0.23.2",
44
+ "@warp-drive/core": "5.10.0-alpha.23",
45
+ "@warp-drive/internal-config": "5.10.0-alpha.23",
46
+ "tsdown": "^0.23.4",
47
47
  "typescript-7": "npm:typescript@7.1.0-beta"
48
48
  },
49
49
  "scripts": {