@solidnative-dev/fabric-host 0.1.0-alpha.0 → 0.1.0-beta.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.
@@ -14,7 +14,7 @@ react_native_runtime_parts = react_native_runtime_match.captures
14
14
 
15
15
  Pod::Spec.new do |spec|
16
16
  spec.name = "SolidNativeFabric"
17
- spec.version = "0.1.0-alpha.0"
17
+ spec.version = "0.1.0-beta.0"
18
18
  spec.summary = "Version-pinned React Native Fabric boundary for Solid Native."
19
19
  spec.homepage = "https://solidnative.dev"
20
20
  spec.license = { :type => "MIT" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidnative-dev/fabric-host",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-beta.0",
4
4
  "type": "module",
5
5
  "description": "Framework-neutral host adapter for the pinned React Native Fabric runtime.",
6
6
  "license": "MIT",
@@ -32,8 +32,8 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@react-native/normalize-colors": "0.88.1",
35
- "@solidnative-dev/host-contract": "0.1.0-alpha.0",
36
- "@solidnative-dev/react-native-compat": "0.1.0-alpha.0"
35
+ "@solidnative-dev/host-contract": "0.1.0-beta.0",
36
+ "@solidnative-dev/react-native-compat": "0.1.0-beta.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsc -p tsconfig.json",
@@ -1,61 +0,0 @@
1
- import { HOST_CONTRACT_VERSION } from "@solid-native/host-contract";
2
- export type NativePlatform = "ios" | "android";
3
- export type NativeBackendProof = "device-verified" | "simulator-verified" | "compile-verified" | "research-only";
4
- export interface NativeBackendFingerprint {
5
- readonly backend: string;
6
- readonly backendVersion: string;
7
- readonly platform: NativePlatform;
8
- readonly engine: string;
9
- readonly engineVersion: string;
10
- readonly hostContractVersion: number;
11
- readonly fabricEnabled: boolean;
12
- }
13
- export interface NativeBackendDefinition {
14
- readonly backend: "react-native-fabric";
15
- /** Exact React Native npm package release used to build this backend. */
16
- readonly packageVersion: string;
17
- /** Normalized runtime identity installed by the native host. */
18
- readonly backendVersion: string;
19
- readonly engine: "hermes";
20
- readonly engineVersion: string;
21
- readonly engineBytecodeVersion: number;
22
- readonly hostContractVersion: typeof HOST_CONTRACT_VERSION;
23
- readonly minimumIosVersion: string;
24
- readonly platformProof: Readonly<Record<NativePlatform, NativeBackendProof>>;
25
- readonly nativeApiSurface: readonly string[];
26
- }
27
- export interface NativeBackendValidationReport {
28
- readonly compatible: boolean;
29
- readonly issues: readonly string[];
30
- readonly proof: NativeBackendProof;
31
- readonly expected: NativeBackendDefinition;
32
- readonly observed: NativeBackendFingerprint;
33
- }
34
- /**
35
- * The only native backend line currently selected by the Fabric host.
36
- *
37
- * `device-verified` means the compatibility target compiled and linked, then
38
- * mounted, updated, measured, handled input, and tore down on real hardware.
39
- */
40
- export declare const REACT_NATIVE_0_87_BACKEND: {
41
- readonly backend: "react-native-fabric";
42
- readonly packageVersion: "0.87.0";
43
- readonly backendVersion: "0.87.0";
44
- readonly engine: "hermes";
45
- readonly engineVersion: "250829098.0.16";
46
- readonly engineBytecodeVersion: 98;
47
- readonly hostContractVersion: 1;
48
- readonly minimumIosVersion: "15.1";
49
- readonly platformProof: {
50
- readonly ios: "device-verified";
51
- readonly android: "device-verified";
52
- };
53
- readonly nativeApiSurface: readonly ["UIManager.createNode", "UIManager.cloneNode", "UIManager.appendChild", "UIManager.completeSurface", "UIManager.dispatchCommand"];
54
- };
55
- export declare class IncompatibleNativeBackendError extends Error {
56
- readonly report: NativeBackendValidationReport;
57
- constructor(report: NativeBackendValidationReport);
58
- }
59
- export declare function inspectNativeBackend(observed: NativeBackendFingerprint): NativeBackendValidationReport;
60
- export declare function assertCompatibleNativeBackend(observed: NativeBackendFingerprint): NativeBackendDefinition;
61
- //# sourceMappingURL=react-native-0.87.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-native-0.87.d.ts","sourceRoot":"","sources":["../src/react-native-0.87.ts"],"names":[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AE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;CAC7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;CAoBM,CAAC;AAE7C,qBAAa,8BAA+B,SAAQ,KAAK;IACvD,QAAQ,CAAC,MAAM,EAAE,6BAA6B,CAAC;gBAEnC,MAAM,EAAE,6BAA6B;CAKlD;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,wBAAwB,GACjC,6BAA6B,CA8C/B;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,wBAAwB,GACjC,uBAAuB,CAIzB"}
@@ -1,77 +0,0 @@
1
- import { HOST_CONTRACT_VERSION } from "@solid-native/host-contract";
2
- import { REACT_NATIVE_0_87_RELEASE } from "@solid-native/react-native-compat";
3
- /**
4
- * The only native backend line currently selected by the Fabric host.
5
- *
6
- * `device-verified` means the compatibility target compiled and linked, then
7
- * mounted, updated, measured, handled input, and tore down on real hardware.
8
- */
9
- export const REACT_NATIVE_0_87_BACKEND = {
10
- backend: "react-native-fabric",
11
- packageVersion: REACT_NATIVE_0_87_RELEASE.packageVersion,
12
- backendVersion: REACT_NATIVE_0_87_RELEASE.runtimeVersion,
13
- engine: "hermes",
14
- engineVersion: REACT_NATIVE_0_87_RELEASE.hermesCompilerVersion,
15
- engineBytecodeVersion: REACT_NATIVE_0_87_RELEASE.hermesBytecodeVersion,
16
- hostContractVersion: HOST_CONTRACT_VERSION,
17
- minimumIosVersion: "15.1",
18
- platformProof: {
19
- ios: "device-verified",
20
- android: "device-verified",
21
- },
22
- nativeApiSurface: [
23
- "UIManager.createNode",
24
- "UIManager.cloneNode",
25
- "UIManager.appendChild",
26
- "UIManager.completeSurface",
27
- "UIManager.dispatchCommand",
28
- ],
29
- };
30
- export class IncompatibleNativeBackendError extends Error {
31
- report;
32
- constructor(report) {
33
- super(`Incompatible native backend: ${report.issues.join(" ")}`);
34
- this.name = "IncompatibleNativeBackendError";
35
- this.report = report;
36
- }
37
- }
38
- export function inspectNativeBackend(observed) {
39
- const expected = REACT_NATIVE_0_87_BACKEND;
40
- const proof = expected.platformProof[observed.platform];
41
- const issues = [];
42
- if (observed.backend !== expected.backend) {
43
- issues.push(`Expected backend ${expected.backend}, received ${observed.backend}.`);
44
- }
45
- if (observed.backendVersion !== expected.backendVersion) {
46
- issues.push(`Expected React Native ${expected.backendVersion}, received ${observed.backendVersion}.`);
47
- }
48
- if (observed.engine !== expected.engine) {
49
- issues.push(`Expected engine ${expected.engine}, received ${observed.engine}.`);
50
- }
51
- if (observed.engineVersion !== expected.engineVersion) {
52
- issues.push(`Expected Hermes ${expected.engineVersion}, received ${observed.engineVersion}.`);
53
- }
54
- if (observed.hostContractVersion !== expected.hostContractVersion) {
55
- issues.push(`Expected host contract ${expected.hostContractVersion}, received ${observed.hostContractVersion}.`);
56
- }
57
- if (!observed.fabricEnabled) {
58
- issues.push("The React Native Fabric renderer is disabled.");
59
- }
60
- if (proof === "research-only") {
61
- issues.push(`The ${observed.platform} backend is ${proof}; no native runtime proof exists yet.`);
62
- }
63
- return {
64
- compatible: issues.length === 0,
65
- issues,
66
- proof,
67
- expected,
68
- observed: { ...observed },
69
- };
70
- }
71
- export function assertCompatibleNativeBackend(observed) {
72
- const report = inspectNativeBackend(observed);
73
- if (!report.compatible)
74
- throw new IncompatibleNativeBackendError(report);
75
- return report.expected;
76
- }
77
- //# sourceMappingURL=react-native-0.87.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-native-0.87.js","sourceRoot":"","sources":["../src/react-native-0.87.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AA0C9E;;;;;GAKG;AACH,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