ctx-core 7.2.14 → 7.2.17
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 +2 -0
- package/html/index.browser.d.ts +1 -1
- package/html/index.browser.js +1 -1
- package/html/index.d.ts +1 -1
- package/html/index.js +1 -1
- package/package.json +3 -3
- package/rmemo/index.d.ts +1 -1
- package/web_animation/index.browser.d.ts +2 -1
- package/web_animation/index.browser.js +2 -1
- package/web_animation/index.test.ts +27 -0
package/README.md
CHANGED
|
@@ -117,3 +117,5 @@ The docs for rmemo are in https://github.com/ctx-core/rmemo. Since the source fo
|
|
|
117
117
|
## ctx-core/uuid
|
|
118
118
|
|
|
119
119
|
## ctx-core/web_animation
|
|
120
|
+
|
|
121
|
+
The docs for ctx-core/web_animation are in https://github.com/ctx-core/web_animation. Since the source for ctx-core/web_animation has 0 dependencies & is isomorphic, it lives in the ctx-core/web_animation export. This allows ctx-core/web_animation to be used within ctx-core without added a dependency.
|
package/html/index.browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html_ } from '
|
|
1
|
+
import { html_ } from './index.browser.js'
|
|
2
2
|
import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.browser.js'
|
|
3
3
|
import { html_attr_val_ } from '../all/html_attr_val/index.browser.js'
|
|
4
4
|
import { html_attrs_ } from '../all/html_attrs/index.browser.js'
|
package/html/index.browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html_ } from '
|
|
1
|
+
import { html_ } from './index.browser.js'
|
|
2
2
|
import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.browser.js'
|
|
3
3
|
import { html_attr_val_ } from '../all/html_attr_val/index.browser.js'
|
|
4
4
|
import { html_attrs_ } from '../all/html_attrs/index.browser.js'
|
package/html/index.d.ts
CHANGED
package/html/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctx-core",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.17",
|
|
4
4
|
"description": "ctx-core core library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
"@ctx-core/preprocess": "^0.1.3",
|
|
310
310
|
"@size-limit/preset-small-lib": "^11.1.4",
|
|
311
311
|
"@types/jsdom": "^21.1.7",
|
|
312
|
-
"@types/node": "^20.14.
|
|
312
|
+
"@types/node": "^20.14.2",
|
|
313
313
|
"@types/sinon": "^17.0.3",
|
|
314
314
|
"c8": "^9.1.0",
|
|
315
315
|
"check-dts": "^0.8.0",
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
"jsdom": "^24.1.0",
|
|
319
319
|
"sinon": "^18.0.0",
|
|
320
320
|
"size-limit": "^11.1.4",
|
|
321
|
-
"tsx": "^4.11.
|
|
321
|
+
"tsx": "^4.11.2",
|
|
322
322
|
"typescript": "next",
|
|
323
323
|
"uvu": "^0.5.6"
|
|
324
324
|
},
|
package/rmemo/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { memo__bind, rmemo__off, rmemo__on, rmemo__add } from '
|
|
1
|
+
import { memo__bind, rmemo__off, rmemo__on, rmemo__add } from './index.js'
|
|
2
2
|
export { memo__bind as _, memo__bind as bind, rmemo__off as off, rmemo__on as on, rmemo__add as subscribe }
|
|
3
3
|
export * from '../all/be/index.js'
|
|
4
4
|
export * from '../all/be_/index.js'
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from '../
|
|
1
|
+
export * from '../rmemo/index.browser.js'
|
|
2
|
+
export * from '../all/wanimato/index.browser.js'
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from '../
|
|
1
|
+
export * from '../rmemo/index.browser.js'
|
|
2
|
+
export * from '../all/wanimato/index.browser.js'
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { build } from 'esbuild'
|
|
2
|
+
import { readFile } from 'node:fs/promises'
|
|
3
|
+
import { dirname, join } from 'node:path'
|
|
4
|
+
import { test } from 'uvu'
|
|
5
|
+
import { equal } from 'uvu/assert'
|
|
6
|
+
test('browser|loads matching index.browser.js files', async ()=>{
|
|
7
|
+
const index_js_source = await readFile(
|
|
8
|
+
join(dirname(new URL(import.meta.url).pathname), 'index.js')
|
|
9
|
+
).then(buf=>'' + buf)
|
|
10
|
+
const index_browser_js_source = await readFile(
|
|
11
|
+
join(dirname(new URL(import.meta.url).pathname), 'index.browser.js')
|
|
12
|
+
).then(buf=>'' + buf)
|
|
13
|
+
equal(
|
|
14
|
+
index_browser_js_source,
|
|
15
|
+
index_js_source.replaceAll('index.js', 'index.browser.js'))
|
|
16
|
+
})
|
|
17
|
+
test('browser|build', async ()=>{
|
|
18
|
+
await build({
|
|
19
|
+
entryPoints: [join(dirname(new URL(import.meta.url).pathname), 'index.browser.js')],
|
|
20
|
+
platform: 'browser',
|
|
21
|
+
bundle: true,
|
|
22
|
+
format: 'esm',
|
|
23
|
+
write: false,
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
test.run()
|
|
27
|
+
|