@getforma/core 1.0.0 → 1.0.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.
- package/README.md +4 -4
- package/dist/forma-runtime-csp.js +3400 -1
- package/dist/forma-runtime.js +3572 -1
- package/dist/formajs-runtime-hardened.global.js +3400 -1
- package/dist/formajs-runtime-hardened.global.js.map +1 -1
- package/dist/formajs-runtime.global.js +3572 -1
- package/dist/formajs-runtime.global.js.map +1 -1
- package/dist/formajs.global.js +3443 -1
- package/dist/formajs.global.js.map +1 -1
- package/dist/runtime-hardened.cjs.map +1 -1
- package/dist/runtime-hardened.js.map +1 -1
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -168,17 +168,17 @@ mount(() => <Counter />, '#app');
|
|
|
168
168
|
|
|
169
169
|
```html
|
|
170
170
|
<!-- unpkg -->
|
|
171
|
-
<script src="https://unpkg.com/@getforma/core@0.
|
|
171
|
+
<script src="https://unpkg.com/@getforma/core@1.0.0/dist/formajs-runtime.global.js"></script>
|
|
172
172
|
|
|
173
173
|
<!-- jsDelivr (faster globally) -->
|
|
174
|
-
<script src="https://cdn.jsdelivr.net/npm/@getforma/core@0.
|
|
174
|
+
<script src="https://cdn.jsdelivr.net/npm/@getforma/core@1.0.0/dist/formajs-runtime.global.js"></script>
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
### ESM import (no bundler, modern browsers)
|
|
178
178
|
|
|
179
179
|
```html
|
|
180
180
|
<script type="module">
|
|
181
|
-
import { createSignal, h, mount } from 'https://cdn.jsdelivr.net/npm/@getforma/core@0.
|
|
181
|
+
import { createSignal, h, mount } from 'https://cdn.jsdelivr.net/npm/@getforma/core@1.0.0/dist/index.js';
|
|
182
182
|
|
|
183
183
|
const [count, setCount] = createSignal(0);
|
|
184
184
|
mount(() => h('button', { onClick: () => setCount(count() + 1) }, () => `${count()}`), '#app');
|
|
@@ -196,7 +196,7 @@ mount(() => <Counter />, '#app');
|
|
|
196
196
|
|
|
197
197
|
Available from both `unpkg.com/@getforma/core@VERSION/dist/` and `cdn.jsdelivr.net/npm/@getforma/core@VERSION/dist/`.
|
|
198
198
|
|
|
199
|
-
For production, always pin the version (e.g., `@0.
|
|
199
|
+
For production, always pin the version (e.g., `@1.0.0`). Unversioned URLs resolve to latest.
|
|
200
200
|
|
|
201
201
|
> The CSP build uses a hand-written expression parser and never calls `new Function`.
|
|
202
202
|
> It supports most common patterns. See [examples/csp](./examples/csp) for a working demo.
|