@ankhorage/expo-runtime 3.0.0 → 3.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ankhorage/expo-runtime
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a6576bc: Emit the generated barcode-scanner adapter with the canonical source format.
8
+
9
+ ## 3.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - c14bbd0: Expose the Expo action bridge through a lightweight public subpath that does not require native runtime peers.
14
+
3
15
  ## 3.0.0
4
16
 
5
17
  ### Major Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # EXPO-RUNTIME
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v2.7.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v3.0.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
7
 
8
8
  Declarative runtime integration for Expo apps: maps app capabilities to permissions, packages, config plugins, providers, and adapters
9
9
 
@@ -0,0 +1,2 @@
1
+ export { executeExpoRuntimeAction, type ExecuteExpoRuntimeActionArgs, type ExpoRuntimeActionHandlerArgs, type ExpoRuntimeActionHandlers, type ExpoRuntimeRouteResolution, type ExpoRuntimeRouterLike, type ExpoRuntimeThemeMode, resolveExpoRuntimeRoutePath, } from './expoActionBridge';
2
+ //# sourceMappingURL=actionBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionBridge.d.ts","sourceRoot":"","sources":["../src/actionBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { executeExpoRuntimeAction, resolveExpoRuntimeRoutePath, } from './expoActionBridge';
2
+ //# sourceMappingURL=actionBridge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionBridge.js","sourceRoot":"","sources":["../src/actionBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAOxB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC","sourcesContent":["export {\n executeExpoRuntimeAction,\n type ExecuteExpoRuntimeActionArgs,\n type ExpoRuntimeActionHandlerArgs,\n type ExpoRuntimeActionHandlers,\n type ExpoRuntimeRouteResolution,\n type ExpoRuntimeRouterLike,\n type ExpoRuntimeThemeMode,\n resolveExpoRuntimeRoutePath,\n} from './expoActionBridge';\n"]}
@@ -1,6 +1,6 @@
1
1
  const EXPO_BARCODE_SCANNER_VIEW_SOURCE = [
2
2
  'export { ExpoBarcodeScannerAdapter as ExpoBarcodeScannerView }',
3
- ' from "@ankhorage/expo-runtime";',
3
+ " from '@ankhorage/expo-runtime';",
4
4
  '\n',
5
5
  ];
6
6
  export function getExpoBarcodeScannerViewSource() {
@@ -1 +1 @@
1
- {"version":3,"file":"generatedSources.js","sourceRoot":"","sources":["../src/generatedSources.ts"],"names":[],"mappings":"AAAA,MAAM,gCAAgC,GAAG;IACvC,gEAAgE;IAChE,kCAAkC;IAClC,IAAI;CACI,CAAC;AAEX,MAAM,UAAU,+BAA+B;IAC7C,OAAO,gCAAgC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,CAAC","sourcesContent":["const EXPO_BARCODE_SCANNER_VIEW_SOURCE = [\n 'export { ExpoBarcodeScannerAdapter as ExpoBarcodeScannerView }',\n ' from \"@ankhorage/expo-runtime\";',\n '\\n',\n] as const;\n\nexport function getExpoBarcodeScannerViewSource(): string {\n return EXPO_BARCODE_SCANNER_VIEW_SOURCE.join('');\n}\n"]}
1
+ {"version":3,"file":"generatedSources.js","sourceRoot":"","sources":["../src/generatedSources.ts"],"names":[],"mappings":"AAAA,MAAM,gCAAgC,GAAG;IACvC,gEAAgE;IAChE,kCAAkC;IAClC,IAAI;CACI,CAAC;AAEX,MAAM,UAAU,+BAA+B;IAC7C,OAAO,gCAAgC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,CAAC","sourcesContent":["const EXPO_BARCODE_SCANNER_VIEW_SOURCE = [\n 'export { ExpoBarcodeScannerAdapter as ExpoBarcodeScannerView }',\n \" from '@ankhorage/expo-runtime';\",\n '\\n',\n] as const;\n\nexport function getExpoBarcodeScannerViewSource(): string {\n return EXPO_BARCODE_SCANNER_VIEW_SOURCE.join('');\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/expo-runtime",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "description": "Declarative runtime integration for Expo apps: maps app capabilities to permissions, packages, config plugins, providers, and adapters",
6
6
  "homepage": "https://github.com/ankhorage/expo-runtime#readme",
7
7
  "bugs": {
@@ -43,6 +43,13 @@
43
43
  "import": "./dist/index.js",
44
44
  "default": "./dist/index.js"
45
45
  },
46
+ "./action-bridge": {
47
+ "react-native": "./src/actionBridge.ts",
48
+ "browser": "./src/actionBridge.ts",
49
+ "types": "./src/actionBridge.ts",
50
+ "import": "./dist/actionBridge.js",
51
+ "default": "./dist/actionBridge.js"
52
+ },
46
53
  "./planning": {
47
54
  "react-native": "./src/planning.ts",
48
55
  "browser": "./src/planning.ts",
@@ -102,6 +109,7 @@
102
109
  "prepack": "bun run build",
103
110
  "test": "bun test src",
104
111
  "typecheck": "bun x tsc --noEmit -p tsconfig.json && bun x tsc --noEmit -p tsconfig.scripts.json",
112
+ "validate:action-bridge": "bun scripts/actionBridgeAcceptance.ts",
105
113
  "validate:expo-platform": "bun scripts/validateExpoPlatform.ts",
106
114
  "validate:headless-platform": "bun scripts/headlessPlatformAcceptance.ts",
107
115
  "validate:packed-runtime": "bun scripts/packedRuntimeAcceptance.ts",
@@ -0,0 +1,10 @@
1
+ import { describe, expect, test } from 'bun:test';
2
+
3
+ import { executeExpoRuntimeAction, resolveExpoRuntimeRoutePath } from './actionBridge';
4
+
5
+ describe('action bridge entrypoint', () => {
6
+ test('exports the standalone action helpers', () => {
7
+ expect(typeof executeExpoRuntimeAction).toBe('function');
8
+ expect(typeof resolveExpoRuntimeRoutePath).toBe('function');
9
+ });
10
+ });
@@ -0,0 +1,10 @@
1
+ export {
2
+ executeExpoRuntimeAction,
3
+ type ExecuteExpoRuntimeActionArgs,
4
+ type ExpoRuntimeActionHandlerArgs,
5
+ type ExpoRuntimeActionHandlers,
6
+ type ExpoRuntimeRouteResolution,
7
+ type ExpoRuntimeRouterLike,
8
+ type ExpoRuntimeThemeMode,
9
+ resolveExpoRuntimeRoutePath,
10
+ } from './expoActionBridge';
@@ -0,0 +1,11 @@
1
+ import { describe, expect, it } from 'bun:test';
2
+
3
+ import { getExpoBarcodeScannerViewSource } from './generatedSources';
4
+
5
+ describe('generated Expo runtime sources', () => {
6
+ it('emits the barcode scanner view adapter in canonical source format', () => {
7
+ expect(getExpoBarcodeScannerViewSource()).toBe(
8
+ "export { ExpoBarcodeScannerAdapter as ExpoBarcodeScannerView } from '@ankhorage/expo-runtime';\n",
9
+ );
10
+ });
11
+ });
@@ -1,6 +1,6 @@
1
1
  const EXPO_BARCODE_SCANNER_VIEW_SOURCE = [
2
2
  'export { ExpoBarcodeScannerAdapter as ExpoBarcodeScannerView }',
3
- ' from "@ankhorage/expo-runtime";',
3
+ " from '@ankhorage/expo-runtime';",
4
4
  '\n',
5
5
  ] as const;
6
6