Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"changesets": [
"five-otters-swim",
"missing-config-json-and-types",
"orange-paws-count",
"postinstall-missing-dist-scripts"
]
Expand Down
7 changes: 7 additions & 0 deletions packages/animations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @react-native-ama/animations

## 2.0.0-beta.2

### Patch Changes

- Updated dependencies [[`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86)]:
- @react-native-ama/core@2.0.0-beta.2

## 2.0.0-beta.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/animations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/animations",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"sideEffects": false,
"exports": {
".": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"test": "jest"
},
"peerDependencies": {
"@react-native-ama/core": "~2.0.0-beta.1",
"@react-native-ama/core": "~2.0.0-beta.2",
"react": "*",
"react-native": "*",
"react-native-reanimated": ">=2.0.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/bottom-sheet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @react-native-ama/extras

## 2.0.0-beta.2

### Patch Changes

- Updated dependencies [[`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86)]:
- @react-native-ama/core@2.0.0-beta.2

## 2.0.0-beta.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/bottom-sheet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/bottom-sheet",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"sideEffects": false,
"exports": {
".": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"test": "jest"
},
"peerDependencies": {
"@react-native-ama/core": "~2.0.0-beta.1",
"@react-native-ama/core": "~2.0.0-beta.2",
"react": "*",
"react-native": ">=0.62.0",
"react-native-gesture-handler": ">=2.0.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @react-native-ama/core

## 2.0.0-beta.2

### 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<String, Any?>?`. 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"`.

## 2.0.0-beta.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/core",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"description": "Accessible Mobile App Library for React Native",
"sideEffects": false,
"types": "./dist/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/forms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @react-native-ama/forms

## 2.0.0-beta.2

### Patch Changes

- Updated dependencies [[`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86)]:
- @react-native-ama/core@2.0.0-beta.2

## 2.0.0-beta.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/forms",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"sideEffects": false,
"exports": {
".": {
Expand Down Expand Up @@ -47,7 +47,7 @@
"test": "jest"
},
"peerDependencies": {
"@react-native-ama/core": "~2.0.0-beta.1",
"@react-native-ama/core": "~2.0.0-beta.2",
"react": "*",
"react-native": "*"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/lists/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @react-native-ama/lists

## 2.0.0-beta.2

### Patch Changes

- Updated dependencies [[`e424ffc79bd9a497e743529e4bb5c7899572fe86`](https://github.com/FormidableLabs/react-native-ama/commit/e424ffc79bd9a497e743529e4bb5c7899572fe86)]:
- @react-native-ama/core@2.0.0-beta.2

## 2.0.0-beta.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/lists/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/lists",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"sideEffects": false,
"exports": {
".": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"test": "jest"
},
"peerDependencies": {
"@react-native-ama/core": "~2.0.0-beta.1",
"@react-native-ama/core": "~2.0.0-beta.2",
"expo": ">=47.0.0",
"react": "*",
"react-native": "*"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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.1
"@react-native-ama/core": ~2.0.0-beta.2
react: "*"
react-native: "*"
react-native-reanimated: ">=2.0.0"
Expand All @@ -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.1
"@react-native-ama/core": ~2.0.0-beta.2
react: "*"
react-native: ">=0.62.0"
react-native-gesture-handler: ">=2.0.0"
Expand Down Expand Up @@ -4151,7 +4151,7 @@ __metadata:
dependencies:
jest-expo: ^49.0.0
peerDependencies:
"@react-native-ama/core": ~2.0.0-beta.1
"@react-native-ama/core": ~2.0.0-beta.2
react: "*"
react-native: "*"
peerDependenciesMeta:
Expand All @@ -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.1
"@react-native-ama/core": ~2.0.0-beta.2
expo: ">=47.0.0"
react: "*"
react-native: "*"
Expand Down