From e2d6269e9afbbcfabd8c278804d327298e6e82fd Mon Sep 17 00:00:00 2001 From: tolgahan-arikan Date: Wed, 15 Jul 2026 19:43:57 +0300 Subject: [PATCH] chore: rename React Native npm package --- AGENTS.md | 2 +- CHANGELOG.md | 3 +- PUBLISHING.md | 12 ++-- README.md | 12 ++-- SECURITY.md | 2 +- examples/expo-example/README.md | 2 +- examples/expo-example/package.json | 2 +- examples/expo-example/src/App.tsx | 2 +- examples/sdk-example/package.json | 2 +- examples/sdk-example/src/App.tsx | 2 +- examples/trails-actions-example/package.json | 2 +- examples/trails-actions-example/src/App.tsx | 2 +- package.json | 2 +- scripts/install-expo-example-dependencies.sh | 2 +- scripts/verify-expo-autolinking.mjs | 2 +- src/client.ts | 2 +- tsconfig.json | 2 +- yarn.lock | 58 ++++++++++---------- 18 files changed, 57 insertions(+), 56 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6e48413..0106b89 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -60,7 +60,7 @@ Key libraries in this repo to pull docs for: `react-native`, `react-native-build ## Project Overview -`@0xsequence/oms-react-native-sdk` is a React Native SDK (Turbo Module) for the OMS platform, +`@polygonlabs/oms-wallet-react-native` is a React Native SDK (Turbo Module) for the OMS platform, bridging native iOS (Swift) and Android (Kotlin) SDKs to TypeScript. It exposes wallet auth (email OTP, OIDC redirect), transaction signing, balance queries, and session management to React Native and Expo apps. diff --git a/CHANGELOG.md b/CHANGELOG.md index 556516e..d34ae37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -All notable changes to `@0xsequence/oms-react-native-sdk` are documented here. +All notable changes to `@polygonlabs/oms-wallet-react-native` are documented here. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html). @@ -16,6 +16,7 @@ Versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Added bare React Native and Expo development-build guidance, native Google ID-token examples, and native autolinking checks. ### Changed +- Renamed the npm package to `@polygonlabs/oms-wallet-react-native`. - Updated the native Swift and Kotlin dependencies to `0.2.0`. - Renamed public wallet records to `WalletAccount` and normalized absent JavaScript values to `undefined`. - Aligned public result unions, errors, networks, fee selection, and indexer models across Android and iOS. diff --git a/PUBLISHING.md b/PUBLISHING.md index 324015b..f31fe7e 100644 --- a/PUBLISHING.md +++ b/PUBLISHING.md @@ -1,6 +1,6 @@ # Publishing -Release process for `@0xsequence/oms-react-native-sdk`. +Release process for `@polygonlabs/oms-wallet-react-native`. Only maintainers with npm publish access should publish. Publish from `master` after CI is green. @@ -11,7 +11,7 @@ Use an exact semantic version. Add an `-alpha.N` suffix only for a prerelease. Check that the version is not already published: ```sh -npm view @0xsequence/oms-react-native-sdk@ version +npm view @polygonlabs/oms-wallet-react-native@ version ``` An npm 404 means the version is available. If npm prints a version, choose a new version. @@ -83,7 +83,7 @@ Add `--tag alpha` to both commands only for an alpha release. Stable releases pu Verify npm sees the published version: ```sh -npm view @0xsequence/oms-react-native-sdk@ version dist.integrity +npm view @polygonlabs/oms-wallet-react-native@ version dist.integrity ``` ## 7. Tag The Release @@ -109,9 +109,9 @@ Update the standalone Expo example to the newly published npm tarball: yarn expo-example:install:published ``` -Commit the updated `examples/expo-example/package.json` and -`examples/expo-example/package-lock.json`. This happens after publication because npm cannot -produce a valid registry lock entry for an unpublished version. +Commit the updated `examples/expo-example/package-lock.json` and any manifest change produced by +npm. The release PR can declare the new package name and version in `package.json`, but npm cannot +produce its registry lock entry until that package has been published. If the package should become the default install later, move the npm dist-tag deliberately in a separate step. diff --git a/README.md b/README.md index 330f3a4..396e095 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @0xsequence/oms-react-native-sdk +# @polygonlabs/oms-wallet-react-native OMS Wallet SDK for bare React Native apps and Expo development builds on iOS and Android. @@ -17,7 +17,7 @@ The package contains native code. Expo Go and React Native Web are not supported Install the package: ```sh -npm install @0xsequence/oms-react-native-sdk +npm install @polygonlabs/oms-wallet-react-native ``` React Native autolinking connects the native modules. Install the iOS pods after adding the package: @@ -31,7 +31,7 @@ npx pod-install Install the package in an Expo SDK 56 app: ```sh -npx expo install @0xsequence/oms-react-native-sdk +npx expo install @polygonlabs/oms-wallet-react-native ``` Create a native development build with prebuild or EAS Build: @@ -49,7 +49,7 @@ No SDK config plugin is required. Add your redirect scheme to the app's Expo con Create one `OMSWallet` and reuse it for the lifetime of the app: ```ts -import { OMSWallet } from '@0xsequence/oms-react-native-sdk'; +import { OMSWallet } from '@polygonlabs/oms-wallet-react-native'; const omsWallet = new OMSWallet({ publishableKey: '', @@ -92,7 +92,7 @@ await omsWallet.wallet.signInWithOidcIdToken({ The app presents the browser and passes the returned callback URI to OMS Wallet. For the fixed OMS Google and Apple configurations, use `OmsRelayOidcProviders`: ```ts -import { OmsRelayOidcProviders } from '@0xsequence/oms-react-native-sdk'; +import { OmsRelayOidcProviders } from '@polygonlabs/oms-wallet-react-native'; const callbackUri = 'com.example.app://auth/callback'; const started = await omsWallet.wallet.startOidcRedirectAuth({ @@ -116,7 +116,7 @@ import { FeeOptionSelectors, Networks, parseUnits, -} from '@0xsequence/oms-react-native-sdk'; +} from '@polygonlabs/oms-wallet-react-native'; const signature = await omsWallet.wallet.signMessage({ network: Networks.polygon, diff --git a/SECURITY.md b/SECURITY.md index e91dde2..60c2b78 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -24,5 +24,5 @@ within 7 business days. ## Scope -This policy covers the `@0xsequence/oms-react-native-sdk` npm package and the native bridge modules +This policy covers the `@polygonlabs/oms-wallet-react-native` npm package and the native bridge modules in `android/` and `ios/`. Example apps (`examples/`) are not considered in scope. diff --git a/examples/expo-example/README.md b/examples/expo-example/README.md index ea776be..a43093d 100644 --- a/examples/expo-example/README.md +++ b/examples/expo-example/README.md @@ -1,6 +1,6 @@ # OMS Expo Example -Expo development-build example for `@0xsequence/oms-react-native-sdk`. +Expo development-build example for `@polygonlabs/oms-wallet-react-native`. This app mirrors the SDK demo flow with email login, Google redirect login, wallet selection, message signing, signature verification, and transaction diff --git a/examples/expo-example/package.json b/examples/expo-example/package.json index 24c2e72..34ed1e2 100644 --- a/examples/expo-example/package.json +++ b/examples/expo-example/package.json @@ -12,7 +12,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@0xsequence/oms-react-native-sdk": "0.1.0-alpha.4", + "@polygonlabs/oms-wallet-react-native": "0.2.0", "expo": "~56.0.8", "expo-dev-client": "~56.0.19", "expo-web-browser": "~56.0.5", diff --git a/examples/expo-example/src/App.tsx b/examples/expo-example/src/App.tsx index bc3576c..24d99af 100644 --- a/examples/expo-example/src/App.tsx +++ b/examples/expo-example/src/App.tsx @@ -30,7 +30,7 @@ import { type PendingWalletSelection, type WalletAccount, type WalletActivationResult, -} from '@0xsequence/oms-react-native-sdk'; +} from '@polygonlabs/oms-wallet-react-native'; WebBrowser.maybeCompleteAuthSession(); diff --git a/examples/sdk-example/package.json b/examples/sdk-example/package.json index 6c153ca..32566ad 100644 --- a/examples/sdk-example/package.json +++ b/examples/sdk-example/package.json @@ -10,7 +10,7 @@ "build:ios": "react-native build-ios --mode Debug" }, "dependencies": { - "@0xsequence/oms-react-native-sdk": "workspace:*", + "@polygonlabs/oms-wallet-react-native": "workspace:*", "react": "19.2.3", "react-native": "0.85.3", "react-native-inappbrowser-reborn": "3.7.1" diff --git a/examples/sdk-example/src/App.tsx b/examples/sdk-example/src/App.tsx index 2dd79f1..ef5ea54 100644 --- a/examples/sdk-example/src/App.tsx +++ b/examples/sdk-example/src/App.tsx @@ -31,7 +31,7 @@ import { type PendingWalletSelection, type WalletAccount, type WalletActivationResult, -} from '@0xsequence/oms-react-native-sdk'; +} from '@polygonlabs/oms-wallet-react-native'; import GoogleIdTokenAuth from '../specs/NativeGoogleIdTokenAuth'; const DEMO_PUBLISHABLE_KEY = diff --git a/examples/trails-actions-example/package.json b/examples/trails-actions-example/package.json index 6660977..d0bd82a 100644 --- a/examples/trails-actions-example/package.json +++ b/examples/trails-actions-example/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "0xtrails": "0.16.2", - "@0xsequence/oms-react-native-sdk": "workspace:*", "@0xtrails/api": "0.16.2", + "@polygonlabs/oms-wallet-react-native": "workspace:*", "react": "19.2.3", "react-native": "0.85.3", "react-native-inappbrowser-reborn": "3.7.1", diff --git a/examples/trails-actions-example/src/App.tsx b/examples/trails-actions-example/src/App.tsx index 4a92503..76671e2 100644 --- a/examples/trails-actions-example/src/App.tsx +++ b/examples/trails-actions-example/src/App.tsx @@ -51,7 +51,7 @@ import { type OMSWalletSessionState, type Network, type SendTransactionResponse, -} from '@0xsequence/oms-react-native-sdk'; +} from '@polygonlabs/oms-wallet-react-native'; import { encodeFunctionData, formatUnits, diff --git a/package.json b/package.json index ea9b4c8..796c1c0 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@0xsequence/oms-react-native-sdk", + "name": "@polygonlabs/oms-wallet-react-native", "version": "0.2.0", "description": "OMS Wallet SDK for React Native and Expo development builds.", "homepage": "https://github.com/0xsequence/react-native-sdk", diff --git a/scripts/install-expo-example-dependencies.sh b/scripts/install-expo-example-dependencies.sh index f828b75..25cb40a 100644 --- a/scripts/install-expo-example-dependencies.sh +++ b/scripts/install-expo-example-dependencies.sh @@ -24,7 +24,7 @@ trap restore_manifest EXIT cp "$EXPO_DIR/package.json" "$TMP_DIR/package.json" cp "$EXPO_DIR/package-lock.json" "$TMP_DIR/package-lock.json" -TARBALL="$TMP_DIR/oms-react-native-sdk-$PACKAGE_VERSION.tgz" +TARBALL="$TMP_DIR/oms-wallet-react-native-$PACKAGE_VERSION.tgz" cd "$ROOT_DIR" yarn prepare diff --git a/scripts/verify-expo-autolinking.mjs b/scripts/verify-expo-autolinking.mjs index 55919f3..932bcf5 100644 --- a/scripts/verify-expo-autolinking.mjs +++ b/scripts/verify-expo-autolinking.mjs @@ -10,7 +10,7 @@ const executable = path.join( '.bin', 'expo-modules-autolinking' ); -const packageName = '@0xsequence/oms-react-native-sdk'; +const packageName = '@polygonlabs/oms-wallet-react-native'; for (const platform of ['android', 'ios']) { const result = spawnSync( diff --git a/src/client.ts b/src/client.ts index 67aece2..04f7f50 100644 --- a/src/client.ts +++ b/src/client.ts @@ -36,7 +36,7 @@ import type { function unsupported(): never { throw new Error( - "'@0xsequence/oms-react-native-sdk' is only supported on native platforms." + "'@polygonlabs/oms-wallet-react-native' is only supported on native platforms." ); } diff --git a/tsconfig.json b/tsconfig.json index 1e8ad52..c806884 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "rootDir": ".", "paths": { - "@0xsequence/oms-react-native-sdk": ["./src/index"] + "@polygonlabs/oms-wallet-react-native": ["./src/index"] }, "allowUnreachableCode": false, "allowUnusedLabels": false, diff --git a/yarn.lock b/yarn.lock index 7855a2c..ce1a71c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -48,33 +48,6 @@ __metadata: languageName: node linkType: hard -"@0xsequence/oms-react-native-sdk@workspace:*, @0xsequence/oms-react-native-sdk@workspace:.": - version: 0.0.0-use.local - resolution: "@0xsequence/oms-react-native-sdk@workspace:." - dependencies: - "@eslint/compat": "npm:^2.0.3" - "@eslint/eslintrc": "npm:^3.3.5" - "@eslint/js": "npm:^10.0.1" - "@react-native/babel-preset": "npm:0.85.3" - "@react-native/eslint-config": "npm:0.85.3" - "@types/react": "npm:^19.2.0" - del-cli: "npm:^7.0.0" - eslint: "npm:^9.39.4" - eslint-config-prettier: "npm:^10.1.8" - eslint-plugin-ft-flow: "npm:^3.0.11" - eslint-plugin-prettier: "npm:^5.5.5" - prettier: "npm:^3.8.1" - react: "npm:19.2.3" - react-native: "npm:0.85.3" - react-native-builder-bob: "npm:^0.42.1" - turbo: "npm:^2.8.21" - typescript: "npm:^6.0.2" - peerDependencies: - react: ">=19.2.0" - react-native: ">=0.85.0" - languageName: unknown - linkType: soft - "@0xsequence/wallet-primitives@npm:3.0.0-beta.19": version: 3.0.0-beta.19 resolution: "@0xsequence/wallet-primitives@npm:3.0.0-beta.19" @@ -2747,6 +2720,33 @@ __metadata: languageName: node linkType: hard +"@polygonlabs/oms-wallet-react-native@workspace:*, @polygonlabs/oms-wallet-react-native@workspace:.": + version: 0.0.0-use.local + resolution: "@polygonlabs/oms-wallet-react-native@workspace:." + dependencies: + "@eslint/compat": "npm:^2.0.3" + "@eslint/eslintrc": "npm:^3.3.5" + "@eslint/js": "npm:^10.0.1" + "@react-native/babel-preset": "npm:0.85.3" + "@react-native/eslint-config": "npm:0.85.3" + "@types/react": "npm:^19.2.0" + del-cli: "npm:^7.0.0" + eslint: "npm:^9.39.4" + eslint-config-prettier: "npm:^10.1.8" + eslint-plugin-ft-flow: "npm:^3.0.11" + eslint-plugin-prettier: "npm:^5.5.5" + prettier: "npm:^3.8.1" + react: "npm:19.2.3" + react-native: "npm:0.85.3" + react-native-builder-bob: "npm:^0.42.1" + turbo: "npm:^2.8.21" + typescript: "npm:^6.0.2" + peerDependencies: + react: ">=19.2.0" + react-native: ">=0.85.0" + languageName: unknown + linkType: soft + "@radix-ui/primitive@npm:1.1.3": version: 1.1.3 resolution: "@radix-ui/primitive@npm:1.1.3" @@ -10115,10 +10115,10 @@ __metadata: version: 0.0.0-use.local resolution: "oms-client-react-native-sdk-example@workspace:examples/sdk-example" dependencies: - "@0xsequence/oms-react-native-sdk": "workspace:*" "@babel/core": "npm:^7.25.2" "@babel/preset-env": "npm:^7.25.3" "@babel/runtime": "npm:^7.25.0" + "@polygonlabs/oms-wallet-react-native": "workspace:*" "@react-native-community/cli": "npm:20.1.3" "@react-native-community/cli-platform-android": "npm:20.1.3" "@react-native-community/cli-platform-ios": "npm:20.1.3" @@ -10140,12 +10140,12 @@ __metadata: resolution: "oms-client-react-native-sdk-trails-actions-example@workspace:examples/trails-actions-example" dependencies: 0xtrails: "npm:0.16.2" - "@0xsequence/oms-react-native-sdk": "workspace:*" "@0xtrails/api": "npm:0.16.2" "@babel/core": "npm:^7.25.2" "@babel/plugin-transform-export-namespace-from": "npm:^7.27.1" "@babel/preset-env": "npm:^7.25.3" "@babel/runtime": "npm:^7.25.0" + "@polygonlabs/oms-wallet-react-native": "workspace:*" "@react-native-community/cli": "npm:20.1.3" "@react-native-community/cli-platform-android": "npm:20.1.3" "@react-native-community/cli-platform-ios": "npm:20.1.3"