@scanly/scenario-schema 2.0.0 → 2.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.
Files changed (2) hide show
  1. package/README.md +19 -3
  2. package/package.json +12 -2
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
- # @scanly/scenario-schema
2
-
3
- Versioned, runtime-validated capture scenarios for the Scanly SDK v2 preview. Schema `2.1` is current; valid `2.0` input is deterministically migrated from `ablation.zxingFallback` to `ablation.multiEngineFallback`. Mixed old/new fields and unknown versions are rejected.
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)
package/package.json CHANGED
@@ -1,7 +1,17 @@
1
1
  {
2
2
  "name": "@scanly/scenario-schema",
3
- "version": "2.0.0",
4
- "description": "Versioned Scanly capture scenario schema and validators",
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
+ },
5
15
  "license": "MIT",
6
16
  "type": "module",
7
17
  "sideEffects": false,