@netless/appliance-plugin 1.1.43-beta.6 → 1.1.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/appliance-plugin",
3
- "version": "1.1.43-beta.6",
3
+ "version": "1.1.43",
4
4
  "files": [
5
5
  "dist",
6
6
  "bridge.d.ts",
@@ -36,59 +36,6 @@
36
36
  "./dist/*": "./dist/*",
37
37
  "./package.json": "./package.json"
38
38
  },
39
- "scripts": {
40
- "dev": "vite --force",
41
- "lint": "eslint . --ignore-pattern '**/*.test.ts' --ignore-pattern '**/*.md' && prettier --check . --ignore-path .prettierignore",
42
- "example:lint": "pnpm --dir example lint",
43
- "example:typecheck": "pnpm exec tsc --noEmit -p example/tsconfig.json",
44
- "sync:fastboard-docs": "node scripts/sync-fastboard-docs.mjs",
45
- "ci:check": "pnpm lint && pnpm test:auto-shape && pnpm test:rendering-compatibility && pnpm test:render-runtime-fallback && pnpm test:image-bitmap-retirement && pnpm test:image-bitmap-diagnostic && pnpm test:service-sync-commit && pnpm test:init-await-boundaries && pnpm test:init-log-aggregation && pnpm test:background-image-load:coverage && pnpm test:max-retries-type && pnpm test:background-image-query && pnpm test:current-scene-guard && pnpm test:init-state-reconciliation && pnpm test:render-runtime-cache && pnpm test:init-ready && pnpm test:transaction-barrier && pnpm test:bitmap-eraser && pnpm test:undo-timing && pnpm build && pnpm example:typecheck",
46
- "test:max-retries-type": "tsc -p tsconfig.types-test.json",
47
- "test:text-editor-focus": "tsx scripts/textEditorFocus.test.ts",
48
- "test:auto-shape": "tsx scripts/autoShape.test.ts",
49
- "test:undo-timing": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx test/undoTiming.test.ts",
50
- "test:undo-finalize": "tsx scripts/undoFinalize.test.ts",
51
- "test:batch-scheduler": "tsx scripts/batchScheduler.test.ts",
52
- "test:transaction-barrier": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/transactionBarrier.test.ts",
53
- "test:current-scene-guard": "tsx scripts/currentSceneGuard.test.ts",
54
- "test:init-ready": "tsx scripts/initReadyBarrier.test.ts",
55
- "test:init-state-reconciliation": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/initStateReconciliation.test.ts",
56
- "test:render-runtime-cache": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/renderRuntimeCache.test.ts",
57
- "test:camera-main-thread-fallback": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/mainThreadCameraFallback.test.ts",
58
- "test:init-reentry:stress": "playwright test tests/init-reentry.stress.spec.ts",
59
- "test:renderer-pixel": "pnpm build:spritejs-runtime && tsx scripts/rendererPixel.test.ts",
60
- "test:undo-timing:coverage": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs c8 --reporter=text --reporter=html --include=src/undo/timing.ts --check-coverage --statements 90 --lines 90 --branches 90 --functions 90 tsx test/undoTiming.test.ts",
61
- "test:selector-api": "tsx test/selectorApi.test.ts",
62
- "test:rendering-compatibility": "tsx scripts/renderingCompatibility.test.ts",
63
- "test:render-runtime-fallback": "tsx scripts/renderRuntimeFallback.test.ts && cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/renderRuntimeFallbackMainEngine.test.ts",
64
- "test:image-bitmap-retirement": "tsx scripts/renderImageBitmapRetirement.test.ts",
65
- "test:image-bitmap-diagnostic": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/renderImageBitmapDiagnostic.test.ts",
66
- "test:service-sync-commit": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/serviceSyncCommit.test.ts",
67
- "test:init-await-boundaries": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/initAwaitBoundaries.test.ts",
68
- "test:font-face-lifecycle": "tsx scripts/fontFaceLifecycle.test.ts",
69
- "test:snapshot-lifecycle": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/snapshotLifecycle.test.ts",
70
- "test:init-log-aggregation": "tsx scripts/initLogAggregator.test.ts",
71
- "test:cursor-appearance": "tsx scripts/cursorAppearance.test.ts",
72
- "test:bitmap-eraser": "tsx scripts/bitmapEraserCapability.test.ts && tsx scripts/bitmapRasterGeometry.test.ts && cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/vNodeSpatialIndex.test.ts && cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/eraserFaces.test.ts",
73
- "test:sync-logger": "tsx scripts/syncLogger.test.ts",
74
- "test:background-image-load": "tsx scripts/backgroundImageLoadCoordinator.test.ts",
75
- "test:background-image-query": "tsx scripts/backgroundImageQuery.test.ts",
76
- "test:background-image-load:coverage": "c8 --reporter=text --include=src/component/backgroundImageLoadCoordinator.ts --check-coverage --statements 90 --lines 90 --branches 90 --functions 90 tsx scripts/backgroundImageLoadCoordinator.test.ts",
77
- "benchmark:bitmap-eraser": "tsx scripts/bitmapEraser.benchmark.ts",
78
- "test:selector-api:coverage": "c8 --reporter=text --reporter=html --include=src/plugin/selectorApi.ts --check-coverage --statements 90 --lines 90 --functions 100 tsx test/selectorApi.test.ts",
79
- "test:selector-api:coverage:context": "c8 --reporter=text --reporter=html --include=src/plugin/selectorApi.ts --include=src/core/mainEngine.ts --include=src/plugin/applianceSinglePlugin.ts --include=src/plugin/applianceMultiPlugin.ts tsx test/selectorApi.test.ts",
80
- "types:bundler": "tsc --emitDeclarationOnly",
81
- "build:spritejs-runtime": "pnpm --dir ../spritejs compile:appliance",
82
- "build:bridge": "vite build --config vite.config.bridge.js",
83
- "build:bundler": "vite build --config vite.config.bundler.js && node scripts/assertRenderRuntimeMarker.mjs && pnpm build:bridge && pnpm types:bundler",
84
- "types:worker": "tsc --noEmit",
85
- "build:worker:full": "vite build --config vite.config.worker-full.js",
86
- "build:worker:sub": "vite build --config vite.config.worker-sub.js",
87
- "build:worker": "pnpm build:worker:full && pnpm build:worker:sub",
88
- "build:example-runtime": "pnpm build:spritejs-runtime && cross-env NODE_ENV=production vite build --config vite.config.bundler.js && pnpm build:worker",
89
- "build": "pnpm build:spritejs-runtime && cross-env NODE_ENV=production tsc && pnpm build:bundler && pnpm build:worker",
90
- "preview": "vite preview"
91
- },
92
39
  "devDependencies": {
93
40
  "@babel/core": "^7.24.7",
94
41
  "@babel/plugin-transform-class-properties": "^7.27.1",
@@ -163,5 +110,58 @@
163
110
  "example": "example"
164
111
  },
165
112
  "author": "hqer",
166
- "license": "MIT"
167
- }
113
+ "license": "MIT",
114
+ "scripts": {
115
+ "dev": "vite --force",
116
+ "lint": "eslint . --ignore-pattern '**/*.test.ts' --ignore-pattern '**/*.md' && prettier --check . --ignore-path .prettierignore",
117
+ "example:lint": "pnpm --dir example lint",
118
+ "example:typecheck": "pnpm exec tsc --noEmit -p example/tsconfig.json",
119
+ "sync:fastboard-docs": "node scripts/sync-fastboard-docs.mjs",
120
+ "ci:check": "pnpm lint && pnpm test:auto-shape && pnpm test:rendering-compatibility && pnpm test:render-runtime-fallback && pnpm test:image-bitmap-retirement && pnpm test:image-bitmap-diagnostic && pnpm test:service-sync-commit && pnpm test:init-await-boundaries && pnpm test:init-log-aggregation && pnpm test:background-image-load:coverage && pnpm test:max-retries-type && pnpm test:background-image-query && pnpm test:current-scene-guard && pnpm test:init-state-reconciliation && pnpm test:render-runtime-cache && pnpm test:init-ready && pnpm test:transaction-barrier && pnpm test:bitmap-eraser && pnpm test:undo-timing && pnpm build && pnpm example:typecheck",
121
+ "test:max-retries-type": "tsc -p tsconfig.types-test.json",
122
+ "test:text-editor-focus": "tsx scripts/textEditorFocus.test.ts",
123
+ "test:auto-shape": "tsx scripts/autoShape.test.ts",
124
+ "test:undo-timing": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx test/undoTiming.test.ts",
125
+ "test:undo-finalize": "tsx scripts/undoFinalize.test.ts",
126
+ "test:batch-scheduler": "tsx scripts/batchScheduler.test.ts",
127
+ "test:transaction-barrier": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/transactionBarrier.test.ts",
128
+ "test:current-scene-guard": "tsx scripts/currentSceneGuard.test.ts",
129
+ "test:init-ready": "tsx scripts/initReadyBarrier.test.ts",
130
+ "test:init-state-reconciliation": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/initStateReconciliation.test.ts",
131
+ "test:render-runtime-cache": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/renderRuntimeCache.test.ts",
132
+ "test:camera-main-thread-fallback": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/mainThreadCameraFallback.test.ts",
133
+ "test:init-reentry:stress": "playwright test tests/init-reentry.stress.spec.ts",
134
+ "test:renderer-pixel": "pnpm build:spritejs-runtime && tsx scripts/rendererPixel.test.ts",
135
+ "test:undo-timing:coverage": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs c8 --reporter=text --reporter=html --include=src/undo/timing.ts --check-coverage --statements 90 --lines 90 --branches 90 --functions 90 tsx test/undoTiming.test.ts",
136
+ "test:selector-api": "tsx test/selectorApi.test.ts",
137
+ "test:rendering-compatibility": "tsx scripts/renderingCompatibility.test.ts",
138
+ "test:render-runtime-fallback": "tsx scripts/renderRuntimeFallback.test.ts && cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/renderRuntimeFallbackMainEngine.test.ts",
139
+ "test:image-bitmap-retirement": "tsx scripts/renderImageBitmapRetirement.test.ts",
140
+ "test:image-bitmap-diagnostic": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx --tsconfig scripts/tsconfig.appliance-main.json scripts/renderImageBitmapDiagnostic.test.ts",
141
+ "test:service-sync-commit": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/serviceSyncCommit.test.ts",
142
+ "test:init-await-boundaries": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/initAwaitBoundaries.test.ts",
143
+ "test:font-face-lifecycle": "tsx scripts/fontFaceLifecycle.test.ts",
144
+ "test:snapshot-lifecycle": "cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/snapshotLifecycle.test.ts",
145
+ "test:init-log-aggregation": "tsx scripts/initLogAggregator.test.ts",
146
+ "test:cursor-appearance": "tsx scripts/cursorAppearance.test.ts",
147
+ "test:bitmap-eraser": "tsx scripts/bitmapEraserCapability.test.ts && tsx scripts/bitmapRasterGeometry.test.ts && cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/vNodeSpatialIndex.test.ts && cross-env NODE_OPTIONS=--require=./scripts/registerAssetStubs.cjs tsx scripts/eraserFaces.test.ts",
148
+ "test:sync-logger": "tsx scripts/syncLogger.test.ts",
149
+ "test:background-image-load": "tsx scripts/backgroundImageLoadCoordinator.test.ts",
150
+ "test:background-image-query": "tsx scripts/backgroundImageQuery.test.ts",
151
+ "test:background-image-load:coverage": "c8 --reporter=text --include=src/component/backgroundImageLoadCoordinator.ts --check-coverage --statements 90 --lines 90 --branches 90 --functions 90 tsx scripts/backgroundImageLoadCoordinator.test.ts",
152
+ "benchmark:bitmap-eraser": "tsx scripts/bitmapEraser.benchmark.ts",
153
+ "test:selector-api:coverage": "c8 --reporter=text --reporter=html --include=src/plugin/selectorApi.ts --check-coverage --statements 90 --lines 90 --functions 100 tsx test/selectorApi.test.ts",
154
+ "test:selector-api:coverage:context": "c8 --reporter=text --reporter=html --include=src/plugin/selectorApi.ts --include=src/core/mainEngine.ts --include=src/plugin/applianceSinglePlugin.ts --include=src/plugin/applianceMultiPlugin.ts tsx test/selectorApi.test.ts",
155
+ "types:bundler": "tsc --emitDeclarationOnly",
156
+ "build:spritejs-runtime": "pnpm --dir ../spritejs compile:appliance",
157
+ "build:bridge": "vite build --config vite.config.bridge.js",
158
+ "build:bundler": "vite build --config vite.config.bundler.js && node scripts/assertRenderRuntimeMarker.mjs && pnpm build:bridge && pnpm types:bundler",
159
+ "types:worker": "tsc --noEmit",
160
+ "build:worker:full": "vite build --config vite.config.worker-full.js",
161
+ "build:worker:sub": "vite build --config vite.config.worker-sub.js",
162
+ "build:worker": "pnpm build:worker:full && pnpm build:worker:sub",
163
+ "build:example-runtime": "pnpm build:spritejs-runtime && cross-env NODE_ENV=production vite build --config vite.config.bundler.js && pnpm build:worker",
164
+ "build": "pnpm build:spritejs-runtime && cross-env NODE_ENV=production tsc && pnpm build:bundler && pnpm build:worker",
165
+ "preview": "vite preview"
166
+ }
167
+ }