alouette 8.0.4 → 8.0.5

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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.0.5](https://github.com/christophehurpeau/alouette/compare/alouette@8.0.4...alouette@8.0.5) (2024-12-05)
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix for react-native update ([2d642c0](https://github.com/christophehurpeau/alouette/commit/2d642c0d42feb54275fd1b7db7309e8fb28cc96d))
11
+
6
12
  ## [8.0.4](https://github.com/christophehurpeau/alouette/compare/alouette@8.0.3...alouette@8.0.4) (2024-12-05)
7
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alouette",
3
- "version": "8.0.4",
3
+ "version": "8.0.5",
4
4
  "description": "tamagui-based design system with configurable defaults",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <302891+christophehurpeau@users.noreply.github.com> (https://christophe.hurpeau.com)",
@@ -18,6 +18,10 @@
18
18
  "sideEffects": false,
19
19
  "main": "./dist/index-node20.mjs",
20
20
  "types": "./dist/definitions/index.d.ts",
21
+ "react-native": {
22
+ ".": "./src/index.ts",
23
+ "./createAlouetteTamagui": "./src/createAlouetteTamagui.ts"
24
+ },
21
25
  "exports": {
22
26
  "./package.json": "./package.json",
23
27
  ".": {
@@ -18,7 +18,10 @@ export const animations = createAnimations({
18
18
  if ("navigator" in global) {
19
19
  // eslint-disable-next-line n/no-unsupported-features/node-builtins
20
20
  const navigator = global.navigator as any;
21
- if (!navigator.userAgent?.startsWith("Node.js")) {
21
+ if (
22
+ !navigator.userAgent?.startsWith("Node.js") &&
23
+ navigator.product !== "ReactNative"
24
+ ) {
22
25
  throw new Error(
23
26
  `animations native is loaded in web: ${
24
27
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions