@scanly/scenario-schema 2.0.1 → 2.1.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.
Files changed (2) hide show
  1. package/README.md +19 -19
  2. package/package.json +33 -33
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # @scanly/scenario-schema
2
-
3
- Versioned, runtime-validated capture scenarios for Scanly SDK v2.0.1. Schema `2.1` is current; valid `2.0` input is migrated deterministically and mixed old/new fields or unknown versions are rejected.
4
-
5
- ```bash
6
- npm install @scanly/scenario-schema
7
- ```
8
-
9
- ```ts
10
- import { getBuiltinScenario, validateScenario } from "@scanly/scenario-schema";
11
-
12
- const scenario = getBuiltinScenario("multiformat-balanced");
13
- const checked = validateScenario(scenario);
14
- if (!checked.ok) throw new Error(checked.message);
15
- ```
16
-
17
- This is an advanced public configuration package. Browser, Node, and Core already declare it as a dependency.
18
-
19
- Version: 2.0.1 · [Scenario documentation](https://github.com/Yangjunjie-Lin/Scanly/blob/main/docs/scenarios/configuration.md)
1
+ # @scanly/scenario-schema
2
+
3
+ Versioned, runtime-validated capture scenarios for Scanly SDK v2.1.0. Schema `2.1` is current; valid `2.0` input is migrated deterministically and mixed old/new fields or unknown versions are rejected.
4
+
5
+ ```bash
6
+ npm install @scanly/scenario-schema
7
+ ```
8
+
9
+ ```ts
10
+ import { getBuiltinScenario, validateScenario } from "@scanly/scenario-schema";
11
+
12
+ const scenario = getBuiltinScenario("multiformat-balanced");
13
+ const checked = validateScenario(scenario);
14
+ if (!checked.ok) throw new Error(checked.message);
15
+ ```
16
+
17
+ This is an advanced public configuration package. Browser, Node, and Core already declare it as a dependency.
18
+
19
+ Version: 2.1.0 · [Scenario documentation](https://github.com/Yangjunjie-Lin/Scanly/blob/main/docs/scenarios/configuration.md)
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "name": "@scanly/scenario-schema",
3
- "version": "2.0.1",
4
- "description": "Versioned capture scenario schema and runtime validators for Scanly SDK",
5
- "keywords": ["barcode", "scanner", "schema", "validation", "typescript", "scanly"],
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/Yangjunjie-Lin/Scanly.git",
9
- "directory": "packages/scenario-schema"
10
- },
11
- "homepage": "https://github.com/Yangjunjie-Lin/Scanly#readme",
12
- "bugs": {
13
- "url": "https://github.com/Yangjunjie-Lin/Scanly/issues"
14
- },
15
- "license": "MIT",
16
- "type": "module",
17
- "sideEffects": false,
18
- "main": "./dist/index.js",
19
- "types": "./dist/index.d.ts",
20
- "exports": {
21
- ".": {
22
- "types": "./dist/index.d.ts",
23
- "import": "./dist/index.js"
24
- }
25
- },
26
- "files": [
27
- "dist",
28
- "README.md"
29
- ],
30
- "scripts": {
31
- "build": "tsc -p tsconfig.build.json"
32
- }
33
- }
1
+ {
2
+ "name": "@scanly/scenario-schema",
3
+ "version": "2.1.0",
4
+ "description": "Versioned capture scenario schema and runtime validators for Scanly SDK",
5
+ "keywords": ["barcode", "scanner", "schema", "validation", "typescript", "scanly"],
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Yangjunjie-Lin/Scanly.git",
9
+ "directory": "packages/scenario-schema"
10
+ },
11
+ "homepage": "https://github.com/Yangjunjie-Lin/Scanly#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/Yangjunjie-Lin/Scanly/issues"
14
+ },
15
+ "license": "MIT",
16
+ "type": "module",
17
+ "sideEffects": false,
18
+ "main": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "README.md"
29
+ ],
30
+ "scripts": {
31
+ "build": "tsc -p tsconfig.build.json"
32
+ }
33
+ }