From 344a47851a8be117a99d3b216e0ae96d0852bfa7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 10:31:01 +0000 Subject: [PATCH] chore: release package --- .changeset/five-otters-swim.md | 9 --------- .changeset/missing-config-json-and-types.md | 10 ---------- .changeset/orange-paws-count.md | 5 ----- .../postinstall-missing-dist-scripts.md | 5 ----- .changeset/pre.json | 17 ----------------- packages/animations/CHANGELOG.md | 11 +++++++++++ packages/animations/package.json | 4 ++-- packages/bottom-sheet/CHANGELOG.md | 11 +++++++++++ packages/bottom-sheet/package.json | 4 ++-- packages/core/CHANGELOG.md | 19 +++++++++++++++++++ packages/core/package.json | 2 +- packages/forms/CHANGELOG.md | 11 +++++++++++ packages/forms/package.json | 4 ++-- packages/lists/CHANGELOG.md | 11 +++++++++++ packages/lists/package.json | 4 ++-- yarn.lock | 8 ++++---- 16 files changed, 76 insertions(+), 59 deletions(-) delete mode 100644 .changeset/five-otters-swim.md delete mode 100644 .changeset/missing-config-json-and-types.md delete mode 100644 .changeset/orange-paws-count.md delete mode 100644 .changeset/postinstall-missing-dist-scripts.md delete mode 100644 .changeset/pre.json diff --git a/.changeset/five-otters-swim.md b/.changeset/five-otters-swim.md deleted file mode 100644 index 31a6b94b..00000000 --- a/.changeset/five-otters-swim.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@react-native-ama/core': major -'@react-native-ama/animations': major -'@react-native-ama/forms': major -'@react-native-ama/lists': major -'@react-native-ama/bottom-sheet': major ---- - -v2.0 release: removes `@react-native-ama/internal` (inlined into each consuming package) and retires `@react-native-ama/react-native`. Restructures `ama.config.json` — `highlight` becomes a nested object (`mode`, `borderWidth`, `gap`); `log` is removed as a standalone key; `checks` scopes feature gates and `delay`. Adds the new `@react-native-ama/bottom-sheet` package. diff --git a/.changeset/missing-config-json-and-types.md b/.changeset/missing-config-json-and-types.md deleted file mode 100644 index 765fd9a2..00000000 --- a/.changeset/missing-config-json-and-types.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@react-native-ama/core': patch ---- - -fix: packaging bugs breaking real external installs (all pre-date this fix, invisible in the monorepo since the source files are always present on disk there regardless of npm's `files` allowlist): - -- **Critical**: the native module didn't work at all for any external consumer — `ios/`, `android/`, and `expo-module.config.json` were never listed in `package.json`'s `files` array, so no native source and no Expo autolinking manifest were ever published. Consumers hit `Error: Cannot find native module 'ReactNativeAma'` at runtime, since there was nothing for Expo's autolinking to discover or compile in. Added all three to `files` (excluding local `android/build` Gradle artifacts via a `!android/build` negation). -- **Critical**: once the native module could be found, calling `AMAProvider`/`start()` crashed the app on iOS with a JSI assertion failure (`Assertion failed: (runtime.isArray(*this))`). iOS's `Function("start")` declared its parameter as `[Any]` (array), but JS calls `start({...})` with a single object — Android's equivalent already correctly declared `Map?`. Fixed iOS to declare `[String: Any]?`, matching both Android and the rest of iOS's own functions (e.g. `highlight`'s explicit typed params). -- Metro bundling failed with `Unable to resolve "./../../ama.config.json"` for any consumer, since `ama.config.json` (the package's own bundled default config, required directly from `src/internals/config.ts`) was never listed in `files` either. -- Editor autocomplete for imports from `@react-native-ama/core` didn't work in consuming projects, since the package relied entirely on the conditional `exports` map for type resolution with no top-level `types` field as a fallback — editors/tsconfigs that don't fully resolve conditional exports types couldn't find any type info at all. Added a top-level `"types": "./dist/index.d.ts"`. diff --git a/.changeset/orange-paws-count.md b/.changeset/orange-paws-count.md deleted file mode 100644 index bb8b6e62..00000000 --- a/.changeset/orange-paws-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@react-native-ama/core': patch ---- - -fix: export for repack diff --git a/.changeset/postinstall-missing-dist-scripts.md b/.changeset/postinstall-missing-dist-scripts.md deleted file mode 100644 index aaf0c4c8..00000000 --- a/.changeset/postinstall-missing-dist-scripts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@react-native-ama/core': patch ---- - -fix: postinstall script crashed on every external install with `Cannot find module './../dist/scripts/create-config.js'`. `create-config.ts` lived outside `src/`, so `tsconfig.build.json` (which only compiles `src/**/*`) never built it into `dist/scripts/create-config.js`. Moved the script into `src/scripts/` so it's included in the normal build. Only reproduces for real external installs — the monorepo's own dev loop skips this code path via `postinstall.js`'s `isMonorepo` guard, which is why it wasn't caught before publishing `2.0.0-beta.0`. diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index e15506bc..00000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "mode": "exit", - "tag": "beta", - "initialVersions": { - "@react-native-ama/animations": "1.2.1", - "@react-native-ama/bottom-sheet": "1.2.1", - "@react-native-ama/core": "1.2.1", - "@react-native-ama/forms": "1.2.1", - "@react-native-ama/lists": "1.2.1" - }, - "changesets": [ - "five-otters-swim", - "missing-config-json-and-types", - "orange-paws-count", - "postinstall-missing-dist-scripts" - ] -} diff --git a/packages/animations/CHANGELOG.md b/packages/animations/CHANGELOG.md index d070f16f..6dce3d3d 100644 --- a/packages/animations/CHANGELOG.md +++ b/packages/animations/CHANGELOG.md @@ -1,5 +1,16 @@ # @react-native-ama/animations +## 2.0.0 + +### Major Changes + +- v2.0 release: removes `@react-native-ama/internal` (inlined into each consuming package) and retires `@react-native-ama/react-native`. Restructures `ama.config.json` — `highlight` becomes a nested object (`mode`, `borderWidth`, `gap`); `log` is removed as a standalone key; `checks` scopes feature gates and `delay`. Adds the new `@react-native-ama/bottom-sheet` package. ([#327](https://github.com/FormidableLabs/react-native-ama/pull/327)) + +### Patch Changes + +- Updated dependencies [[`8e591fe51ee525e199bf1f6e55a5d674401d8e12`](https://github.com/FormidableLabs/react-native-ama/commit/8e591fe51ee525e199bf1f6e55a5d674401d8e12), [`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86), [`4f544c1aab79c0ecdb93c5b744fdf99834ca0503`](https://github.com/FormidableLabs/react-native-ama/commit/4f544c1aab79c0ecdb93c5b744fdf99834ca0503), [`587cc28a97127be6a22961be218290be24198ee9`](https://github.com/FormidableLabs/react-native-ama/commit/587cc28a97127be6a22961be218290be24198ee9)]: + - @react-native-ama/core@2.0.0 + ## 2.0.0-beta.2 ### Patch Changes diff --git a/packages/animations/package.json b/packages/animations/package.json index 784acc83..0becc62b 100644 --- a/packages/animations/package.json +++ b/packages/animations/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/animations", - "version": "2.0.0-beta.2", + "version": "2.0.0", "sideEffects": false, "exports": { ".": { @@ -39,7 +39,7 @@ "test": "jest" }, "peerDependencies": { - "@react-native-ama/core": "~2.0.0-beta.2", + "@react-native-ama/core": "~2.0.0", "react": "*", "react-native": "*", "react-native-reanimated": ">=2.0.0" diff --git a/packages/bottom-sheet/CHANGELOG.md b/packages/bottom-sheet/CHANGELOG.md index d78a68e1..ede70282 100644 --- a/packages/bottom-sheet/CHANGELOG.md +++ b/packages/bottom-sheet/CHANGELOG.md @@ -1,5 +1,16 @@ # @react-native-ama/extras +## 2.0.0 + +### Major Changes + +- v2.0 release: removes `@react-native-ama/internal` (inlined into each consuming package) and retires `@react-native-ama/react-native`. Restructures `ama.config.json` — `highlight` becomes a nested object (`mode`, `borderWidth`, `gap`); `log` is removed as a standalone key; `checks` scopes feature gates and `delay`. Adds the new `@react-native-ama/bottom-sheet` package. ([#327](https://github.com/FormidableLabs/react-native-ama/pull/327)) + +### Patch Changes + +- Updated dependencies [[`8e591fe51ee525e199bf1f6e55a5d674401d8e12`](https://github.com/FormidableLabs/react-native-ama/commit/8e591fe51ee525e199bf1f6e55a5d674401d8e12), [`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86), [`4f544c1aab79c0ecdb93c5b744fdf99834ca0503`](https://github.com/FormidableLabs/react-native-ama/commit/4f544c1aab79c0ecdb93c5b744fdf99834ca0503), [`587cc28a97127be6a22961be218290be24198ee9`](https://github.com/FormidableLabs/react-native-ama/commit/587cc28a97127be6a22961be218290be24198ee9)]: + - @react-native-ama/core@2.0.0 + ## 2.0.0-beta.2 ### Patch Changes diff --git a/packages/bottom-sheet/package.json b/packages/bottom-sheet/package.json index fde59226..72b53022 100644 --- a/packages/bottom-sheet/package.json +++ b/packages/bottom-sheet/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/bottom-sheet", - "version": "2.0.0-beta.2", + "version": "2.0.0", "sideEffects": false, "exports": { ".": { @@ -31,7 +31,7 @@ "test": "jest" }, "peerDependencies": { - "@react-native-ama/core": "~2.0.0-beta.2", + "@react-native-ama/core": "~2.0.0", "react": "*", "react-native": ">=0.62.0", "react-native-gesture-handler": ">=2.0.0", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 3ef73c4f..6eb83bf9 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,24 @@ # @react-native-ama/core +## 2.0.0 + +### Major Changes + +- v2.0 release: removes `@react-native-ama/internal` (inlined into each consuming package) and retires `@react-native-ama/react-native`. Restructures `ama.config.json` — `highlight` becomes a nested object (`mode`, `borderWidth`, `gap`); `log` is removed as a standalone key; `checks` scopes feature gates and `delay`. Adds the new `@react-native-ama/bottom-sheet` package. ([#327](https://github.com/FormidableLabs/react-native-ama/pull/327)) + +### Patch Changes + +- fix: packaging bugs breaking real external installs (all pre-date this fix, invisible in the monorepo since the source files are always present on disk there regardless of npm's `files` allowlist): ([#339](https://github.com/FormidableLabs/react-native-ama/pull/339)) + + - **Critical**: the native module didn't work at all for any external consumer — `ios/`, `android/`, and `expo-module.config.json` were never listed in `package.json`'s `files` array, so no native source and no Expo autolinking manifest were ever published. Consumers hit `Error: Cannot find native module 'ReactNativeAma'` at runtime, since there was nothing for Expo's autolinking to discover or compile in. Added all three to `files` (excluding local `android/build` Gradle artifacts via a `!android/build` negation). + - **Critical**: once the native module could be found, calling `AMAProvider`/`start()` crashed the app on iOS with a JSI assertion failure (`Assertion failed: (runtime.isArray(*this))`). iOS's `Function("start")` declared its parameter as `[Any]` (array), but JS calls `start({...})` with a single object — Android's equivalent already correctly declared `Map?`. Fixed iOS to declare `[String: Any]?`, matching both Android and the rest of iOS's own functions (e.g. `highlight`'s explicit typed params). + - Metro bundling failed with `Unable to resolve "./../../ama.config.json"` for any consumer, since `ama.config.json` (the package's own bundled default config, required directly from `src/internals/config.ts`) was never listed in `files` either. + - Editor autocomplete for imports from `@react-native-ama/core` didn't work in consuming projects, since the package relied entirely on the conditional `exports` map for type resolution with no top-level `types` field as a fallback — editors/tsconfigs that don't fully resolve conditional exports types couldn't find any type info at all. Added a top-level `"types": "./dist/index.d.ts"`. + +- fix: export for repack ([#328](https://github.com/FormidableLabs/react-native-ama/pull/328)) + +- fix: postinstall script crashed on every external install with `Cannot find module './../dist/scripts/create-config.js'`. `create-config.ts` lived outside `src/`, so `tsconfig.build.json` (which only compiles `src/**/*`) never built it into `dist/scripts/create-config.js`. Moved the script into `src/scripts/` so it's included in the normal build. Only reproduces for real external installs — the monorepo's own dev loop skips this code path via `postinstall.js`'s `isMonorepo` guard, which is why it wasn't caught before publishing `2.0.0-beta.0`. ([#337](https://github.com/FormidableLabs/react-native-ama/pull/337)) + ## 2.0.0-beta.2 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 88f12ccb..b9358b45 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/core", - "version": "2.0.0-beta.2", + "version": "2.0.0", "description": "Accessible Mobile App Library for React Native", "sideEffects": false, "types": "./dist/index.d.ts", diff --git a/packages/forms/CHANGELOG.md b/packages/forms/CHANGELOG.md index 62fba9bf..13aab508 100644 --- a/packages/forms/CHANGELOG.md +++ b/packages/forms/CHANGELOG.md @@ -1,5 +1,16 @@ # @react-native-ama/forms +## 2.0.0 + +### Major Changes + +- v2.0 release: removes `@react-native-ama/internal` (inlined into each consuming package) and retires `@react-native-ama/react-native`. Restructures `ama.config.json` — `highlight` becomes a nested object (`mode`, `borderWidth`, `gap`); `log` is removed as a standalone key; `checks` scopes feature gates and `delay`. Adds the new `@react-native-ama/bottom-sheet` package. ([#327](https://github.com/FormidableLabs/react-native-ama/pull/327)) + +### Patch Changes + +- Updated dependencies [[`8e591fe51ee525e199bf1f6e55a5d674401d8e12`](https://github.com/FormidableLabs/react-native-ama/commit/8e591fe51ee525e199bf1f6e55a5d674401d8e12), [`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86), [`4f544c1aab79c0ecdb93c5b744fdf99834ca0503`](https://github.com/FormidableLabs/react-native-ama/commit/4f544c1aab79c0ecdb93c5b744fdf99834ca0503), [`587cc28a97127be6a22961be218290be24198ee9`](https://github.com/FormidableLabs/react-native-ama/commit/587cc28a97127be6a22961be218290be24198ee9)]: + - @react-native-ama/core@2.0.0 + ## 2.0.0-beta.2 ### Patch Changes diff --git a/packages/forms/package.json b/packages/forms/package.json index e5652606..0a73bc7c 100644 --- a/packages/forms/package.json +++ b/packages/forms/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/forms", - "version": "2.0.0-beta.2", + "version": "2.0.0", "sideEffects": false, "exports": { ".": { @@ -47,7 +47,7 @@ "test": "jest" }, "peerDependencies": { - "@react-native-ama/core": "~2.0.0-beta.2", + "@react-native-ama/core": "~2.0.0", "react": "*", "react-native": "*" }, diff --git a/packages/lists/CHANGELOG.md b/packages/lists/CHANGELOG.md index 53ff14b0..e9b82ef7 100644 --- a/packages/lists/CHANGELOG.md +++ b/packages/lists/CHANGELOG.md @@ -1,5 +1,16 @@ # @react-native-ama/lists +## 2.0.0 + +### Major Changes + +- v2.0 release: removes `@react-native-ama/internal` (inlined into each consuming package) and retires `@react-native-ama/react-native`. Restructures `ama.config.json` — `highlight` becomes a nested object (`mode`, `borderWidth`, `gap`); `log` is removed as a standalone key; `checks` scopes feature gates and `delay`. Adds the new `@react-native-ama/bottom-sheet` package. ([#327](https://github.com/FormidableLabs/react-native-ama/pull/327)) + +### Patch Changes + +- Updated dependencies [[`8e591fe51ee525e199bf1f6e55a5d674401d8e12`](https://github.com/FormidableLabs/react-native-ama/commit/8e591fe51ee525e199bf1f6e55a5d674401d8e12), [`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86), [`4f544c1aab79c0ecdb93c5b744fdf99834ca0503`](https://github.com/FormidableLabs/react-native-ama/commit/4f544c1aab79c0ecdb93c5b744fdf99834ca0503), [`587cc28a97127be6a22961be218290be24198ee9`](https://github.com/FormidableLabs/react-native-ama/commit/587cc28a97127be6a22961be218290be24198ee9)]: + - @react-native-ama/core@2.0.0 + ## 2.0.0-beta.2 ### Patch Changes diff --git a/packages/lists/package.json b/packages/lists/package.json index 5ceab925..3310c4ed 100644 --- a/packages/lists/package.json +++ b/packages/lists/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/lists", - "version": "2.0.0-beta.2", + "version": "2.0.0", "sideEffects": false, "exports": { ".": { @@ -35,7 +35,7 @@ "test": "jest" }, "peerDependencies": { - "@react-native-ama/core": "~2.0.0-beta.2", + "@react-native-ama/core": "~2.0.0", "expo": ">=47.0.0", "react": "*", "react-native": "*" diff --git a/yarn.lock b/yarn.lock index 4ca6a2cc..13e8a962 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4109,7 +4109,7 @@ __metadata: version: 0.0.0-use.local resolution: "@react-native-ama/animations@workspace:packages/animations" peerDependencies: - "@react-native-ama/core": ~2.0.0-beta.2 + "@react-native-ama/core": ~2.0.0 react: "*" react-native: "*" react-native-reanimated: ">=2.0.0" @@ -4123,7 +4123,7 @@ __metadata: version: 0.0.0-use.local resolution: "@react-native-ama/bottom-sheet@workspace:packages/bottom-sheet" peerDependencies: - "@react-native-ama/core": ~2.0.0-beta.2 + "@react-native-ama/core": ~2.0.0 react: "*" react-native: ">=0.62.0" react-native-gesture-handler: ">=2.0.0" @@ -4151,7 +4151,7 @@ __metadata: dependencies: jest-expo: ^49.0.0 peerDependencies: - "@react-native-ama/core": ~2.0.0-beta.2 + "@react-native-ama/core": ~2.0.0 react: "*" react-native: "*" peerDependenciesMeta: @@ -4164,7 +4164,7 @@ __metadata: version: 0.0.0-use.local resolution: "@react-native-ama/lists@workspace:packages/lists" peerDependencies: - "@react-native-ama/core": ~2.0.0-beta.2 + "@react-native-ama/core": ~2.0.0 expo: ">=47.0.0" react: "*" react-native: "*"