@opentf/web 0.1.0 → 0.2.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 → dist/CHANGELOG.md} +6 -0
- package/dist/babel.config.cjs +6 -0
- package/{compiler → dist/compiler}/babel-plugin.cjs +10 -9
- package/{core → dist/core}/mount.js +12 -12
- package/{index.js → dist/index.js} +1 -1
- package/dist/node_modules/@babel/core/LICENSE +22 -0
- package/dist/node_modules/@babel/core/README.md +19 -0
- package/dist/node_modules/@babel/core/lib/config/cache-contexts.js +5 -0
- package/dist/node_modules/@babel/core/lib/config/cache-contexts.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/caching.js +261 -0
- package/dist/node_modules/@babel/core/lib/config/caching.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/config-chain.js +469 -0
- package/dist/node_modules/@babel/core/lib/config/config-chain.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
- package/dist/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/configuration.js +290 -0
- package/dist/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
- package/dist/node_modules/@babel/core/lib/config/files/import.cjs.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/index-browser.js +58 -0
- package/dist/node_modules/@babel/core/lib/config/files/index-browser.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/index.js +78 -0
- package/dist/node_modules/@babel/core/lib/config/files/index.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/module-types.js +203 -0
- package/dist/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/package.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/files/package.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/plugins.js +220 -0
- package/dist/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/types.js +5 -0
- package/dist/node_modules/@babel/core/lib/config/files/types.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/files/utils.js +36 -0
- package/dist/node_modules/@babel/core/lib/config/files/utils.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/full.js +312 -0
- package/dist/node_modules/@babel/core/lib/config/full.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/config-api.js +85 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/config-api.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/deep-array.js +23 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/deep-array.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/environment.js +12 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/environment.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/index.js +87 -0
- package/dist/node_modules/@babel/core/lib/config/index.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/item.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/item.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/partial.js +158 -0
- package/dist/node_modules/@babel/core/lib/config/partial.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/pattern-to-regex.js +38 -0
- package/dist/node_modules/@babel/core/lib/config/pattern-to-regex.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/plugin.js +33 -0
- package/dist/node_modules/@babel/core/lib/config/plugin.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/printer.js +113 -0
- package/dist/node_modules/@babel/core/lib/config/printer.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets-browser.js +41 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/util.js +31 -0
- package/dist/node_modules/@babel/core/lib/config/util.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/validation/option-assertions.js +277 -0
- package/dist/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/validation/options.js +187 -0
- package/dist/node_modules/@babel/core/lib/config/validation/options.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/validation/plugins.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/config/validation/removed.js +68 -0
- package/dist/node_modules/@babel/core/lib/config/validation/removed.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/errors/config-error.js +18 -0
- package/dist/node_modules/@babel/core/lib/errors/config-error.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +98 -0
- package/dist/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/async.js +90 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/async.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/fs.js +31 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/fs.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/functional.js +58 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/functional.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/index.js +230 -0
- package/dist/node_modules/@babel/core/lib/index.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/parse.js +45 -0
- package/dist/node_modules/@babel/core/lib/parse.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/parser/index.js +85 -0
- package/dist/node_modules/@babel/core/lib/parser/index.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +337 -0
- package/dist/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/tools/build-external-helpers.js +144 -0
- package/dist/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transform-ast.js +48 -0
- package/dist/node_modules/@babel/core/lib/transform-ast.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transform-file-browser.js +23 -0
- package/dist/node_modules/@babel/core/lib/transform-file-browser.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transform-file.js +40 -0
- package/dist/node_modules/@babel/core/lib/transform-file.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transform.js +47 -0
- package/dist/node_modules/@babel/core/lib/transform.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +4 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/file.js +204 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/generate.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/generate.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/merge-map.js +37 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/merge-map.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/index.js +90 -0
- package/dist/node_modules/@babel/core/lib/transformation/index.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-file.js +127 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-opts.js +59 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-opts.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/plugin-pass.js +48 -0
- package/dist/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/transformation/util/clone-deep.js +54 -0
- package/dist/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -0
- package/dist/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +1042 -0
- package/dist/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -0
- package/dist/node_modules/@babel/core/package.json +82 -0
- package/dist/node_modules/@babel/core/src/config/files/index-browser.ts +115 -0
- package/dist/node_modules/@babel/core/src/config/files/index.ts +30 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets-browser.ts +42 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets.ts +54 -0
- package/dist/node_modules/@babel/core/src/transform-file-browser.ts +33 -0
- package/dist/node_modules/@babel/core/src/transform-file.ts +56 -0
- package/dist/node_modules/@babel/helper-module-imports/LICENSE +22 -0
- package/dist/node_modules/@babel/helper-module-imports/README.md +19 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/import-builder.js +122 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/import-injector.js +304 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/index.js +37 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/index.js.map +1 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/is-module.js +11 -0
- package/dist/node_modules/@babel/helper-module-imports/lib/is-module.js.map +1 -0
- package/dist/node_modules/@babel/helper-module-imports/package.json +28 -0
- package/dist/node_modules/@babel/plugin-syntax-jsx/LICENSE +22 -0
- package/dist/node_modules/@babel/plugin-syntax-jsx/README.md +19 -0
- package/dist/node_modules/@babel/plugin-syntax-jsx/lib/index.js +21 -0
- package/dist/node_modules/@babel/plugin-syntax-jsx/lib/index.js.map +1 -0
- package/dist/node_modules/@babel/plugin-syntax-jsx/package.json +33 -0
- package/dist/node_modules/@preact/signals-core/CHANGELOG.md +331 -0
- package/dist/node_modules/@preact/signals-core/LICENSE +21 -0
- package/dist/node_modules/@preact/signals-core/README.md +258 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.d.ts +149 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.js +1 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.js.map +1 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.min.js +1 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.min.js.map +1 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.mjs +1 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.mjs.map +1 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +1 -0
- package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js.map +1 -0
- package/dist/node_modules/@preact/signals-core/package.json +48 -0
- package/dist/node_modules/@preact/signals-core/src/index.ts +1121 -0
- package/dist/package.json +30 -0
- package/dist/router/Link.js +76 -0
- package/{router → dist/router}/index.js +43 -61
- package/{runtime → dist/runtime}/For.js +1 -2
- package/{runtime → dist/runtime}/dom.js +7 -14
- package/{runtime → dist/runtime}/lifecycle.js +1 -4
- package/{runtime → dist/runtime}/props.js +4 -15
- package/package.json +14 -7
- package/router/Link.jsx +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_importInjector","require","_isModule","addDefault","path","importedSource","opts","ImportInjector","addNamed","name","addNamespace","addSideEffect"],"sources":["../src/index.ts"],"sourcesContent":["import ImportInjector, { type ImportOptions } from \"./import-injector.ts\";\nimport type { NodePath } from \"@babel/traverse\";\nimport type * as t from \"@babel/types\";\n\nexport { ImportInjector };\n\nexport { default as isModule } from \"./is-module.ts\";\n\nexport function addDefault(\n path: NodePath,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addDefault(importedSource, opts);\n}\n\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Omit<\n Partial<ImportOptions>,\n \"ensureLiveReference\" | \"ensureNoContext\"\n >,\n): t.Identifier;\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Omit<Partial<ImportOptions>, \"ensureLiveReference\"> & {\n ensureLiveReference: true;\n },\n): t.MemberExpression;\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Omit<Partial<ImportOptions>, \"ensureNoContext\"> & {\n ensureNoContext: true;\n },\n): t.SequenceExpression;\n/**\n * add a named import to the program path of given path\n *\n * @export\n * @param {NodePath} path The starting path to find a program path\n * @param {string} name The name of the generated binding. Babel will prefix it with `_`\n * @param {string} importedSource The source of the import\n * @param {Partial<ImportOptions>} [opts]\n * @returns {t.Identifier | t.MemberExpression | t.SequenceExpression} If opts.ensureNoContext is true, returns a SequenceExpression,\n * else if opts.ensureLiveReference is true, returns a MemberExpression, else returns an Identifier\n */\nfunction addNamed(\n path: NodePath,\n name: string,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addNamed(name, importedSource, opts);\n}\nexport { addNamed };\n\nexport function addNamespace(\n path: NodePath,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addNamespace(importedSource, opts);\n}\n\nexport function addSideEffect(\n path: NodePath,\n importedSource: string,\n opts?: Partial<ImportOptions>,\n) {\n return new ImportInjector(path).addSideEffect(importedSource, opts);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAMA,IAAAC,SAAA,GAAAD,OAAA;AAEO,SAASE,UAAUA,CACxBC,IAAc,EACdC,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACD,UAAU,CAACE,cAAc,EAAEC,IAAI,CAAC;AAClE;AAsCA,SAASE,QAAQA,CACfJ,IAAc,EACdK,IAAY,EACZJ,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACI,QAAQ,CAACC,IAAI,EAAEJ,cAAc,EAAEC,IAAI,CAAC;AACtE;AAGO,SAASI,YAAYA,CAC1BN,IAAc,EACdC,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACM,YAAY,CAACL,cAAc,EAAEC,IAAI,CAAC;AACpE;AAEO,SAASK,aAAaA,CAC3BP,IAAc,EACdC,cAAsB,EACtBC,IAA6B,EAC7B;EACA,OAAO,IAAIC,uBAAc,CAACH,IAAI,CAAC,CAACO,aAAa,CAACN,cAAc,EAAEC,IAAI,CAAC;AACrE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isModule","path","node","sourceType"],"sources":["../src/is-module.ts"],"sourcesContent":["import type { NodePath } from \"@babel/traverse\";\nimport type * as t from \"@babel/types\";\n\n/**\n * A small utility to check if a file qualifies as a module.\n */\nexport default function isModule(path: NodePath<t.Program>) {\n return path.node.sourceType === \"module\";\n}\n"],"mappings":";;;;;;AAMe,SAASA,QAAQA,CAACC,IAAyB,EAAE;EAC1D,OAAOA,IAAI,CAACC,IAAI,CAACC,UAAU,KAAK,QAAQ;AAC1C","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@babel/helper-module-imports",
|
|
3
|
+
"version": "7.28.6",
|
|
4
|
+
"description": "Babel helper functions for inserting module loads",
|
|
5
|
+
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
|
+
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-imports",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/babel/babel.git",
|
|
14
|
+
"directory": "packages/babel-helper-module-imports"
|
|
15
|
+
},
|
|
16
|
+
"main": "./lib/index.js",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@babel/traverse": "^7.28.6",
|
|
19
|
+
"@babel/types": "^7.28.6"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@babel/core": "^7.28.6"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=6.9.0"
|
|
26
|
+
},
|
|
27
|
+
"type": "commonjs"
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @babel/plugin-syntax-jsx
|
|
2
|
+
|
|
3
|
+
> Allow parsing of jsx
|
|
4
|
+
|
|
5
|
+
See our website [@babel/plugin-syntax-jsx](https://babeljs.io/docs/babel-plugin-syntax-jsx) for more information.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Using npm:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install --save-dev @babel/plugin-syntax-jsx
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
or using yarn:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
yarn add @babel/plugin-syntax-jsx --dev
|
|
19
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
|
8
|
+
var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
|
|
9
|
+
api.assertVersion("^7.0.0-0 || ^8.0.0-0");
|
|
10
|
+
return {
|
|
11
|
+
name: "syntax-jsx",
|
|
12
|
+
manipulateOptions(opts, parserOpts) {
|
|
13
|
+
if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
parserOpts.plugins.push("jsx");
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_helperPluginUtils","require","_default","exports","default","declare","api","assertVersion","name","manipulateOptions","opts","parserOpts","plugins","some","p","Array","isArray","push"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n return {\n name: \"syntax-jsx\",\n\n manipulateOptions(opts, parserOpts) {\n if (!process.env.BABEL_8_BREAKING) {\n // If the Typescript plugin already ran, it will have decided whether\n // or not this is a TSX file.\n if (\n parserOpts.plugins.some(\n p => (Array.isArray(p) ? p[0] : p) === \"typescript\",\n )\n ) {\n return;\n }\n }\n\n parserOpts.plugins.push(\"jsx\");\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAqD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,sBAAuB,CAAC;EAE3D,OAAO;IACLC,IAAI,EAAE,YAAY;IAElBC,iBAAiBA,CAACC,IAAI,EAAEC,UAAU,EAAE;MAIhC,IACEA,UAAU,CAACC,OAAO,CAACC,IAAI,CACrBC,CAAC,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,CAAC,CAAC,GAAGA,CAAC,CAAC,CAAC,CAAC,GAAGA,CAAC,MAAM,YACzC,CAAC,EACD;QACA;MACF;MAGFH,UAAU,CAACC,OAAO,CAACK,IAAI,CAAC,KAAK,CAAC;IAChC;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@babel/plugin-syntax-jsx",
|
|
3
|
+
"version": "7.28.6",
|
|
4
|
+
"description": "Allow parsing of jsx",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/babel/babel.git",
|
|
8
|
+
"directory": "packages/babel-plugin-syntax-jsx"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://babel.dev/docs/en/next/babel-plugin-syntax-jsx",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"main": "./lib/index.js",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"babel-plugin"
|
|
18
|
+
],
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@babel/helper-plugin-utils": "^7.28.6"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@babel/core": "^7.0.0-0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/core": "^7.28.6"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=6.9.0"
|
|
30
|
+
},
|
|
31
|
+
"author": "The Babel Team (https://babel.dev/team)",
|
|
32
|
+
"type": "commonjs"
|
|
33
|
+
}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
# @preact/signals-core
|
|
2
|
+
|
|
3
|
+
## 1.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#906](https://github.com/preactjs/signals/pull/906) [`0c65390`](https://github.com/preactjs/signals/commit/0c6539096057d991679f49baf68dd97f7121f322) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Wrap nested object methods returned from createModel so composed models keep action batching semantics without manual action wrappers.
|
|
8
|
+
|
|
9
|
+
- [#911](https://github.com/preactjs/signals/pull/911) [`6c17923`](https://github.com/preactjs/signals/commit/6c17923a0a7d822621702022d96b046c6758f6dc) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Avoid hard-requiring `ESNext.Disposable` in consumer tsconfigs for `Model` and `effect()` types.
|
|
10
|
+
|
|
11
|
+
## 1.14.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#891](https://github.com/preactjs/signals/pull/891) [`308c921`](https://github.com/preactjs/signals/commit/308c921bbf189dd72861ef587f5e559d16299b68) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Prevent batches where a signal goes from A --> B --> A from triggering dependent updates, a computed/effect should not re-run when the dependencies in a batched update amount to an equal value.
|
|
16
|
+
|
|
17
|
+
## 1.13.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#812](https://github.com/preactjs/signals/pull/812) [`19ac39b`](https://github.com/preactjs/signals/commit/19ac39bb4a7a3273090753a50a58efb717f5553d) Thanks [@andrewiggins](https://github.com/andrewiggins)! - Add `createModel` and `action` to signals core package
|
|
22
|
+
|
|
23
|
+
**`createModel`** provides a structured way to create reactive model classes that encapsulate signals, computed values, and actions:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
const CounterModel = createModel((initialCount = 0) => {
|
|
27
|
+
const count = signal(initialCount);
|
|
28
|
+
const doubled = computed(() => count.value * 2);
|
|
29
|
+
|
|
30
|
+
effect(() => {
|
|
31
|
+
console.log("Count changed:", count.value);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
count,
|
|
36
|
+
doubled,
|
|
37
|
+
increment() {
|
|
38
|
+
count.value++;
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const counter = new CounterModel(5);
|
|
44
|
+
counter.increment(); // Updates are automatically batched
|
|
45
|
+
counter[Symbol.dispose](); // Cleans up all effects
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Key features:
|
|
49
|
+
- Factory functions can accept arguments for initialization
|
|
50
|
+
- All methods are automatically wrapped as actions (batched & untracked)
|
|
51
|
+
- Effects created during model construction are captured and disposed when the model is disposed via `Symbol.dispose`
|
|
52
|
+
- TypeScript validates that models only contain signals, actions, or nested objects with signals/actions
|
|
53
|
+
|
|
54
|
+
**`action`** is a helper that wraps a function to run batched and untracked:
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
const updateAll = action(items => {
|
|
58
|
+
items.forEach(item => item.value++);
|
|
59
|
+
}); // All updates batched into single notification
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 1.12.2
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- [#827](https://github.com/preactjs/signals/pull/827) [`f17889b`](https://github.com/preactjs/signals/commit/f17889b6d46448205d9485b8d5e691fbe05cd404) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Add mangle entry for \_debugCallback
|
|
67
|
+
|
|
68
|
+
## 1.12.1
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- [#747](https://github.com/preactjs/signals/pull/747) [`57bc903`](https://github.com/preactjs/signals/commit/57bc9033422b308d0e9c4204c037fd339011dd6f) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Remove internal annotation as it confused TS
|
|
73
|
+
|
|
74
|
+
## 1.12.0
|
|
75
|
+
|
|
76
|
+
### Minor Changes
|
|
77
|
+
|
|
78
|
+
- [#681](https://github.com/preactjs/signals/pull/681) [`6cc7005`](https://github.com/preactjs/signals/commit/6cc700595278d241f276c40dd0ecf162c9e432d8) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Allow for naming your singals/computeds/effects
|
|
79
|
+
|
|
80
|
+
## 1.11.0
|
|
81
|
+
|
|
82
|
+
### Minor Changes
|
|
83
|
+
|
|
84
|
+
- [#706](https://github.com/preactjs/signals/pull/706) [`4045d2d`](https://github.com/preactjs/signals/commit/4045d2d86b720546848d5163d5b683792c0a5af3) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - feat: support disposing `effect()` with resource management
|
|
85
|
+
|
|
86
|
+
This allows `effect()`'s to be disposed with the new `using` keyword from [the explicit resource management proposal](https://github.com/tc39/proposal-explicit-resource-management).
|
|
87
|
+
|
|
88
|
+
Whenever an effect goes out of scope the `Symbol.dispose` function is called automatically.
|
|
89
|
+
|
|
90
|
+
```js
|
|
91
|
+
const count = signal(0);
|
|
92
|
+
|
|
93
|
+
function doSomething() {
|
|
94
|
+
// The `using` keyword calls dispose at the end of
|
|
95
|
+
// this function scope
|
|
96
|
+
using _ = effect(() => {
|
|
97
|
+
console.log(count.value);
|
|
98
|
+
return () => console.log("disposed");
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
console.log("hey");
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
doSomething();
|
|
105
|
+
// Logs:
|
|
106
|
+
// 0
|
|
107
|
+
// hey
|
|
108
|
+
// disposed
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## 1.10.0
|
|
112
|
+
|
|
113
|
+
### Minor Changes
|
|
114
|
+
|
|
115
|
+
- [#697](https://github.com/preactjs/signals/pull/697) [`5e7a167`](https://github.com/preactjs/signals/commit/5e7a167acd7bf605929a2577c9217fa834f3c115) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Publicly expose `dispose()` on an effect callback
|
|
116
|
+
|
|
117
|
+
## 1.9.0
|
|
118
|
+
|
|
119
|
+
### Minor Changes
|
|
120
|
+
|
|
121
|
+
- [#634](https://github.com/preactjs/signals/pull/634) [`62bed44`](https://github.com/preactjs/signals/commit/62bed44b0f298ac0097060289bfecd73f030b146) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Add an option to specify a watched/unwatched callback to a signal
|
|
122
|
+
|
|
123
|
+
### Patch Changes
|
|
124
|
+
|
|
125
|
+
- [#688](https://github.com/preactjs/signals/pull/688) [`587e702`](https://github.com/preactjs/signals/commit/587e702f8db9a8e67fe2cdf8dda0a4bffe5fc195) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Loosen up types for `watched` and `unwatched`
|
|
126
|
+
|
|
127
|
+
## 1.8.0
|
|
128
|
+
|
|
129
|
+
### Minor Changes
|
|
130
|
+
|
|
131
|
+
- [#587](https://github.com/preactjs/signals/pull/587) [`cd9efbb`](https://github.com/preactjs/signals/commit/cd9efbb411527e031001177f66ba90a445a04a23) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Adjust the `ReadOnlySignal` type to not inherit from `Signal`
|
|
132
|
+
this way the type can't be widened without noticing, i.e. when
|
|
133
|
+
we'd have
|
|
134
|
+
|
|
135
|
+
```js
|
|
136
|
+
const sig: Signal = useComputed(() => x);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
We would have widened the type to be mutable again, which for
|
|
140
|
+
a computed is not allowed. We want to provide the tools to our
|
|
141
|
+
users to avoid these footguns hence we are correcting this type
|
|
142
|
+
in a minor version.
|
|
143
|
+
|
|
144
|
+
## 1.7.0
|
|
145
|
+
|
|
146
|
+
### Minor Changes
|
|
147
|
+
|
|
148
|
+
- [#578](https://github.com/preactjs/signals/pull/578) [`931404e`](https://github.com/preactjs/signals/commit/931404e96338e120464b73e522148389e38eeb2b) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Allow for passing no argument to the signal and the type to be automatically inferred as `T | undefined`
|
|
149
|
+
|
|
150
|
+
## 1.6.1
|
|
151
|
+
|
|
152
|
+
### Patch Changes
|
|
153
|
+
|
|
154
|
+
- [#558](https://github.com/preactjs/signals/pull/558) [`c8c95ac`](https://github.com/preactjs/signals/commit/c8c95ac7dcbbfe8e97b251a4c3efdec82e72944b) Thanks [@jviide](https://github.com/jviide)! - Restore stricter effect callback & cleanup function types
|
|
155
|
+
|
|
156
|
+
## 1.6.0
|
|
157
|
+
|
|
158
|
+
### Minor Changes
|
|
159
|
+
|
|
160
|
+
- [#525](https://github.com/preactjs/signals/pull/525) [`cb6bdab`](https://github.com/preactjs/signals/commit/cb6bdabbd31b27f8435c7976089fa276da6bfb7a) Thanks [@jviide](https://github.com/jviide)! - Allow setting a signal value inside a computed
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- [#535](https://github.com/preactjs/signals/pull/535) [`58befba`](https://github.com/preactjs/signals/commit/58befba577d02c5cac5292fda0a599f9708e908b) Thanks [@jviide](https://github.com/jviide)! - Publish packages with provenance statements
|
|
165
|
+
|
|
166
|
+
- [#529](https://github.com/preactjs/signals/pull/529) [`ec5fe42`](https://github.com/preactjs/signals/commit/ec5fe42850c5dca39da7cf6072558da51cc7fc02) Thanks [@jviide](https://github.com/jviide)! - Document effect cleanups
|
|
167
|
+
|
|
168
|
+
- [#512](https://github.com/preactjs/signals/pull/512) [`d7f2afa`](https://github.com/preactjs/signals/commit/d7f2afafd7ce0f914cf13d02f87f21ab0c26a74b) Thanks [@jviide](https://github.com/jviide)! - Always reset the evaluation context upon entering an untracked block
|
|
169
|
+
|
|
170
|
+
- [#531](https://github.com/preactjs/signals/pull/531) [`d17ed0d`](https://github.com/preactjs/signals/commit/d17ed0d2cbc6e57304fa0ed009ecf0a0537fe597) Thanks [@jviide](https://github.com/jviide)! - Add JSDocs for exported core module members
|
|
171
|
+
|
|
172
|
+
## 1.5.1
|
|
173
|
+
|
|
174
|
+
### Patch Changes
|
|
175
|
+
|
|
176
|
+
- [#451](https://github.com/preactjs/signals/pull/451) [`990f1eb`](https://github.com/preactjs/signals/commit/990f1eb36fa4ab5e30029f79ceeccf709137d14d) Thanks [@dcporter](https://github.com/dcporter)! - Removes backward-incompatible type export from signals core.
|
|
177
|
+
|
|
178
|
+
## 1.5.0
|
|
179
|
+
|
|
180
|
+
### Minor Changes
|
|
181
|
+
|
|
182
|
+
- [#405](https://github.com/preactjs/signals/pull/405) [`9355d96`](https://github.com/preactjs/signals/commit/9355d962b0d21b409b1661abcead799886e3cdb3) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Add unique identifier to every `Signal`, this will be present on the `brand` property of a Signal coming from either `signal()` or `computed()`
|
|
183
|
+
|
|
184
|
+
## 1.4.0
|
|
185
|
+
|
|
186
|
+
### Minor Changes
|
|
187
|
+
|
|
188
|
+
- [#380](https://github.com/preactjs/signals/pull/380) [`256a331`](https://github.com/preactjs/signals/commit/256a331b5335e54f7e918b3f1068fb9d92d1c613) Thanks [@XantreGodlike](https://github.com/XantreGodlike)! - Add `untracked` function, this allows more granular control within `effect`/`computed` around what should affect re-runs.
|
|
189
|
+
|
|
190
|
+
## 1.3.1
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- [#373](https://github.com/preactjs/signals/pull/373) [`8c12a0d`](https://github.com/preactjs/signals/commit/8c12a0df74f00e9cab04e999fc443889b3528c04) Thanks [@rschristian](https://github.com/rschristian)! - Removes package.json#exports.umd, which had invalid paths if they were ever to be consumed
|
|
195
|
+
|
|
196
|
+
* [#359](https://github.com/preactjs/signals/pull/359) [`26f6526`](https://github.com/preactjs/signals/commit/26f6526875ef0968621c4113594ac95b93de5163) Thanks [@andrewiggins](https://github.com/andrewiggins)! - Change effect callback return type from `void` to `unknown`. Same for effect cleanup function.
|
|
197
|
+
|
|
198
|
+
## 1.3.0
|
|
199
|
+
|
|
200
|
+
### Minor Changes
|
|
201
|
+
|
|
202
|
+
- [#231](https://github.com/preactjs/signals/pull/231) [`862d9d6`](https://github.com/preactjs/signals/commit/862d9d6538b94e0a110213e98f2a0cabb14b8ad8) Thanks [@eddyw](https://github.com/eddyw)! - Disallow side-effects in computed
|
|
203
|
+
|
|
204
|
+
* [#320](https://github.com/preactjs/signals/pull/320) [`8b70764`](https://github.com/preactjs/signals/commit/8b7076436ce6d912f17d57da8ecd1bdfca852183) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Support `toJSON` on a `Signal`
|
|
205
|
+
|
|
206
|
+
### Patch Changes
|
|
207
|
+
|
|
208
|
+
- [#249](https://github.com/preactjs/signals/pull/249) [`8e726ed`](https://github.com/preactjs/signals/commit/8e726ed1df6c90b85a93484f275baa7f013c799a) Thanks [@billybimbob](https://github.com/billybimbob)! - Add typing for effect cleanup
|
|
209
|
+
|
|
210
|
+
## 1.2.3
|
|
211
|
+
|
|
212
|
+
### Patch Changes
|
|
213
|
+
|
|
214
|
+
- [#245](https://github.com/preactjs/signals/pull/245) [`7e15d3c`](https://github.com/preactjs/signals/commit/7e15d3cf5f5e66258105e6f27cd7838b52fbbf9f) Thanks [@jviide](https://github.com/jviide)! - Fix effect behavior when first run throws
|
|
215
|
+
|
|
216
|
+
## 1.2.2
|
|
217
|
+
|
|
218
|
+
### Patch Changes
|
|
219
|
+
|
|
220
|
+
- [#232](https://github.com/preactjs/signals/pull/232) [`aa4cb7b`](https://github.com/preactjs/signals/commit/aa4cb7bfad744e78952cacc37af5bd4a713f0d3f) Thanks [@jviide](https://github.com/jviide)! - Simplify effect change checking (and make effect cycle detection more accurate as a side-effect)
|
|
221
|
+
|
|
222
|
+
* [#233](https://github.com/preactjs/signals/pull/233) [`3f652a7`](https://github.com/preactjs/signals/commit/3f652a77d2a125a02a0cfc29fe661c81beeda16d) Thanks [@jviide](https://github.com/jviide)! - Simplify Node book keeping code
|
|
223
|
+
|
|
224
|
+
## 1.2.1
|
|
225
|
+
|
|
226
|
+
### Patch Changes
|
|
227
|
+
|
|
228
|
+
- [#205](https://github.com/preactjs/signals/pull/205) [`4b73164`](https://github.com/preactjs/signals/commit/4b7316497aee03413f91e9f714cdcf9f553e39d9) Thanks [@jviide](https://github.com/jviide)! - Use the same tracking logic for both effects and computeds. This ensures that effects are only called whenever any of their dependencies changes. If they all stay the same, then the effect will not be invoked.
|
|
229
|
+
|
|
230
|
+
* [#207](https://github.com/preactjs/signals/pull/207) [`57fd2e7`](https://github.com/preactjs/signals/commit/57fd2e723528a36cc5d4ebf09ba34178aa84c879) Thanks [@jviide](https://github.com/jviide)! - Fix effect disposal when cleanup throws
|
|
231
|
+
|
|
232
|
+
- [#209](https://github.com/preactjs/signals/pull/209) [`49756ae`](https://github.com/preactjs/signals/commit/49756aef28fe12c6ae6b801224bf5ae608ddf562) Thanks [@jviide](https://github.com/jviide)! - Optimize dependency value change checks by allowing earlier exists from the loop
|
|
233
|
+
|
|
234
|
+
## 1.2.0
|
|
235
|
+
|
|
236
|
+
### Minor Changes
|
|
237
|
+
|
|
238
|
+
- [#183](https://github.com/preactjs/signals/pull/183) [`79ff1e7`](https://github.com/preactjs/signals/commit/79ff1e794dde9952db2d6d43b22cebfb2accc770) Thanks [@jviide](https://github.com/jviide)! - Add ability to run custom cleanup logic when an effect is disposed.
|
|
239
|
+
|
|
240
|
+
```js
|
|
241
|
+
effect(() => {
|
|
242
|
+
console.log("This runs whenever a dependency changes");
|
|
243
|
+
return () => {
|
|
244
|
+
console.log("This runs when the effect is disposed");
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
* [#170](https://github.com/preactjs/signals/pull/170) [`3e31aab`](https://github.com/preactjs/signals/commit/3e31aabb812ddb0f7451deba38267f8384eff9d1) Thanks [@jviide](https://github.com/jviide)! - Allow disposing a currently running effect
|
|
250
|
+
|
|
251
|
+
### Patch Changes
|
|
252
|
+
|
|
253
|
+
- [#188](https://github.com/preactjs/signals/pull/188) [`b4611cc`](https://github.com/preactjs/signals/commit/b4611cc9dee0ae09f4b378ba293c3203edc32be4) Thanks [@jviide](https://github.com/jviide)! - Fix `.subscribe()` unexpectedly tracking signal access
|
|
254
|
+
|
|
255
|
+
* [#162](https://github.com/preactjs/signals/pull/162) [`9802da5`](https://github.com/preactjs/signals/commit/9802da5274bb45c3cc28dda961b9b2d18535729a) Thanks [@developit](https://github.com/developit)! - Add support for `Signal.prototype.valueOf`
|
|
256
|
+
|
|
257
|
+
- [#161](https://github.com/preactjs/signals/pull/161) [`6ac6923`](https://github.com/preactjs/signals/commit/6ac6923e5294f8a31ee1a009550b9891c3996cb4) Thanks [@jviide](https://github.com/jviide)! - Remove all usages of `Set`, `Map` and other allocation heavy objects in signals-core. This substaintially increases performance across all measurements.
|
|
258
|
+
|
|
259
|
+
## 1.1.1
|
|
260
|
+
|
|
261
|
+
### Patch Changes
|
|
262
|
+
|
|
263
|
+
- [#143](https://github.com/preactjs/signals/pull/143) [`f2ba3d6`](https://github.com/preactjs/signals/commit/f2ba3d657bf8169c6ba1d47c0827aa18cfe1c947) Thanks [@Pauan](https://github.com/Pauan)! - Simplify `batch()` to use a single flag instead of a counter
|
|
264
|
+
|
|
265
|
+
* [#150](https://github.com/preactjs/signals/pull/150) [`160ea77`](https://github.com/preactjs/signals/commit/160ea7791f3adb55c562f5990e0b4848d8491a38) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Fix computed signal being re-calculated despite dependencies not having changed
|
|
266
|
+
|
|
267
|
+
- [#137](https://github.com/preactjs/signals/pull/137) [`4385ea8`](https://github.com/preactjs/signals/commit/4385ea8c8358a154d8b789685bb061658ce1153f) Thanks [@jviide](https://github.com/jviide)! - Fix `.subscribe`'s TypeScript type
|
|
268
|
+
|
|
269
|
+
* [#148](https://github.com/preactjs/signals/pull/148) [`b948745`](https://github.com/preactjs/signals/commit/b948745de7b5b60a20ce3bdc5ee72d47d47f38ec) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Move `types` field in `package.json` to the top of the entry list to ensure that TypeScript always finds it.
|
|
270
|
+
|
|
271
|
+
- [#149](https://github.com/preactjs/signals/pull/149) [`00a59c6`](https://github.com/preactjs/signals/commit/00a59c6475bd4542fb934474d82d1e242b2ac870) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Fix invalidated signals inside `batch()` not being refreshed when read inside a batching operation. This fixes a regression.
|
|
272
|
+
|
|
273
|
+
## 1.1.0
|
|
274
|
+
|
|
275
|
+
### Minor Changes
|
|
276
|
+
|
|
277
|
+
- bc0080c: Add `.subscribe()`-method to signals to add support for natively using signals with Svelte
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- 336bb34: Don't mangle `Signal` class name
|
|
282
|
+
- 7228418: Fix incorrectly named variables and address typos in code comments.
|
|
283
|
+
- 32abe07: Fix internal API functions being able to unmark non-invalidated signals
|
|
284
|
+
- 4782b41: Fix conditionally signals (lazy branches) not being re-computed upon activation
|
|
285
|
+
- bf6af3b: - Fix a memory leak when computed signals and effects are removed
|
|
286
|
+
|
|
287
|
+
## 1.0.1
|
|
288
|
+
|
|
289
|
+
### Patch Changes
|
|
290
|
+
|
|
291
|
+
- 5644c1f: Fix stale value returned by `.peek()` when called on a deactivated signal.
|
|
292
|
+
|
|
293
|
+
## 1.0.0
|
|
294
|
+
|
|
295
|
+
### Major Changes
|
|
296
|
+
|
|
297
|
+
- 2ee8489: The v1 release for the signals package, we'd to see the uses you all
|
|
298
|
+
come up with and are eager to see performance improvements in your
|
|
299
|
+
applications.
|
|
300
|
+
|
|
301
|
+
### Minor Changes
|
|
302
|
+
|
|
303
|
+
- ab22ec7: Add `.peek()` method to read from signals without subscribing to them.
|
|
304
|
+
|
|
305
|
+
### Patch Changes
|
|
306
|
+
|
|
307
|
+
- b56abf3: Throw an error when a cycle was detected during state updates
|
|
308
|
+
|
|
309
|
+
## 0.0.5
|
|
310
|
+
|
|
311
|
+
### Patch Changes
|
|
312
|
+
|
|
313
|
+
- 702a9c5: Update TypeScript types to mark computed signals as readonly
|
|
314
|
+
|
|
315
|
+
## 0.0.4
|
|
316
|
+
|
|
317
|
+
### Patch Changes
|
|
318
|
+
|
|
319
|
+
- 4123d60: Fix TypeScript definitions not found in core
|
|
320
|
+
|
|
321
|
+
## 0.0.3
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- 1e4dac5: Add `prepublishOnly` scripts to ensure we're publishing fresh packages
|
|
326
|
+
|
|
327
|
+
## 0.0.2
|
|
328
|
+
|
|
329
|
+
### Patch Changes
|
|
330
|
+
|
|
331
|
+
- 2181b74: Add basic signals lib based of prototypes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-present Preact Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|