Skip to content

Commit b047936

Browse files
Juanita-Dashclaude
andcommitted
Rename Checkout Sheet Kit to Checkout Kit (React Native)
Renames the React Native bridge surface (npm package, RN module name, TS API, source files, internal symbols) from "Checkout Sheet Kit" to "Checkout Kit". Upstream native dependencies (`ShopifyCheckoutSheetKit` iOS pod and `com.shopify:checkout-sheet-kit` Android Maven artifact) are intentionally left on their current names since those artifacts have not been republished under the new name yet — that's tracked as a follow-up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d0cd665 commit b047936

75 files changed

Lines changed: 489 additions & 490 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ and subsequently closed after a further 7 days of inactivity.
4949
Open a pull request with the following changes:
5050

5151
1. Bump the
52-
[package version](https://github.com/Shopify/checkout-sheet-kit-react-native/blob/main/modules/%40shopify/checkout-sheet-kit/package.json#L4)
53-
of the `@shopify/checkout-sheet-kit` module.
52+
[package version](https://github.com/Shopify/checkout-kit/blob/main/modules/%40shopify/checkout-kit/package.json#L4)
53+
of the `@shopify/checkout-kit` module.
5454
2. Add an entry to the top of the [CHANGELOG](../CHANGELOG.md)
5555

5656
Once you have merged a pull request with these changes, you will be ready to
5757
publish a new version.
5858

5959
To do so, navigate to
60-
<https://github.com/Shopify/checkout-sheet-kit-react-native/releases> and click
60+
<https://github.com/Shopify/checkout-kit/releases> and click
6161
"Draft a new release" then complete the following steps:
6262

6363
1. Create a tag for the new version
@@ -66,5 +66,5 @@ To do so, navigate to
6666
pull requests where applicable, in the description box.
6767
4. Check "Set as the latest release".
6868
5. When ready, click "Publish release". This will kickstart the
69-
[CI process](https://github.com/Shopify/checkout-sheet-kit-react-native/actions/workflows/publish.yml)
69+
[CI process](https://github.com/Shopify/checkout-kit/actions/workflows/publish.yml)
7070
to publish a new version of the NPM package.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ body:
3434

3535
- type: input
3636
attributes:
37-
label: What version of `@shopify/checkout-sheet-kit` are you using?
37+
label: What version of `@shopify/checkout-kit` are you using?
3838
description:
3939
Please list the package version and device you are testing with.
4040
validations:

.github/actions/install-cocoapods/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
with:
1818
path: |
1919
sample/ios/Pods
20-
key: ${{ runner.os }}-cocoapods-${{ hashFiles('sample/ios/Podfile.lock', 'sample/Gemfile.lock', 'sample/Gemfile', 'package.json', 'sample/package.json', 'modules/@shopify/checkout-sheet-kit/package.json', 'pnpm-lock.yaml') }}
20+
key: ${{ runner.os }}-cocoapods-${{ hashFiles('sample/ios/Podfile.lock', 'sample/Gemfile.lock', 'sample/Gemfile', 'package.json', 'sample/package.json', 'modules/@shopify/checkout-kit/package.json', 'pnpm-lock.yaml') }}
2121

2222
- name: Install cocoapods
2323
shell: bash

.github/pull_request_template.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
> [!IMPORTANT]
1010
>
1111
> - [ ] I've added tests to support my implementation
12-
> - [ ] I have read and agree with the [Contribution Guidelines](https://github.com/shopify/checkout-sheet-kit-react-native/blob/main/.github/CONTRIBUTING.md).
13-
> - [ ] I have read and agree with the [Code of Conduct](https://github.com/shopify/checkout-sheet-kit-react-native/blob/main/.github/CODE_OF_CONDUCT.md).
14-
> - [ ] I've updated the [README](https://github.com/shopify/checkout-sheet-kit-react-native).
12+
> - [ ] I have read and agree with the [Contribution Guidelines](https://github.com/Shopify/checkout-kit/blob/main/.github/CONTRIBUTING.md).
13+
> - [ ] I have read and agree with the [Code of Conduct](https://github.com/Shopify/checkout-kit/blob/main/.github/CODE_OF_CONDUCT.md).
14+
> - [ ] I've updated the [README](https://github.com/Shopify/checkout-kit).
1515
>
1616
> _Releasing a new version of the kit?_
1717
>
18-
> - [ ] I have bumped the version number in the [`package.json` file](https://github.com/Shopify/checkout-sheet-kit-react-native/blob/main/modules/%40shopify/checkout-sheet-kit/package.json#L4).
18+
> - [ ] I have bumped the version number in the [`package.json` file](https://github.com/Shopify/checkout-kit/blob/main/modules/%40shopify/checkout-kit/package.json#L4).
1919
2020
---
2121

2222
> [!TIP]
23-
> See the [Contributing documentation](https://github.com/shopify/checkout-sheet-kit-react-native/blob/main/.github/CONTRIBUTING.md#releasing-a-new-version) for instructions on how to publish a new version of the library.
23+
> See the [Contributing documentation](https://github.com/Shopify/checkout-kit/blob/main/.github/CONTRIBUTING.md#releasing-a-new-version) for instructions on how to publish a new version of the library.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171

7272
- run:
7373
pnpm test --coverage
74-
--testPathPatterns="modules/@shopify/checkout-sheet-kit/tests"
74+
--testPathPatterns="modules/@shopify/checkout-kit/tests"
7575
--coverageReporters=json-summary
7676

7777
- name: Coverage comment

.github/workflows/deprecate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Deprecate
1818
run: |
1919
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
20-
npm deprecate @shopify/checkout-sheet-kit@"${{ env.VERSIONS }}" "This version is deprecated. Please upgrade to the latest version of @shopify/checkout-sheet-kit."
20+
npm deprecate @shopify/checkout-kit@"${{ env.VERSIONS }}" "This version is deprecated. Please upgrade to the latest version of @shopify/checkout-kit."
2121
env:
2222
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2323
VERSIONS: '< 2.0.1'

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
id: npm-tag
2525
run: |
2626
# Read the version from package.json
27-
VERSION=$(node -p "require('./modules/@shopify/checkout-sheet-kit/package.json').version")
27+
VERSION=$(node -p "require('./modules/@shopify/checkout-kit/package.json').version")
2828
2929
# Check if it's a "beta" or "rc" version
3030
if [[ "$VERSION" == *"-beta"* ]] || [[ "$VERSION" == *"-rc"* ]]; then
@@ -37,10 +37,10 @@ jobs:
3737
3838
- name: Prepare release
3939
run: |
40-
cp README.md modules/@shopify/checkout-sheet-kit
40+
cp README.md modules/@shopify/checkout-kit
4141
pnpm module clean
4242
pnpm module build
43-
cd modules/@shopify/checkout-sheet-kit
43+
cd modules/@shopify/checkout-kit
4444
npm publish --access public --tag ${{ steps.npm-tag.outputs.tag }}
4545
env:
4646
NPM_TOKEN: '' # Empty string forces OIDC

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ see [guidelines and instructions](.github/CONTRIBUTING.md).
77

88
This repo is subdivided into 3 parts using pnpm workspaces:
99

10-
- The base repo (workspace name = `checkout-sheet-kit-react-native`)
11-
- The `@shopify/checkout-sheet-kit` Native Module (workspace name = `module`)
10+
- The base repo (workspace name = `checkout-kit-react-native`)
11+
- The `@shopify/checkout-kit` Native Module (workspace name = `module`)
1212
- The sample application (workspace name = `sample`)
1313

1414
Each of the workspaces contains a separate `package.json` to manage tasks
@@ -75,7 +75,7 @@ SCCACHE=false pnpm sample android
7575
## Making changes to the Native Module
7676

7777
If your intentions are to modify the TS code for the Native Module under
78-
`modules/@shopify/checkout-sheet-kit`, note that you will not need to rebuild to
78+
`modules/@shopify/checkout-kit`, note that you will not need to rebuild to
7979
observe your changes in the sample app. This is because the sample app is
8080
importing the TS files directly from the module directory (through symlinking).
8181

@@ -118,7 +118,7 @@ There are 3 types of tests in this repo: Typescript, Swift and Java - each for
118118
testing the Native Module.
119119

120120
```sh
121-
# Run Jest tests for "modules/@shopify/checkout-sheet-kit/src/**/*.tsx"
121+
# Run Jest tests for "modules/@shopify/checkout-kit/src/**/*.tsx"
122122
pnpm test
123123

124124
# Run swift tests for the Native Module

0 commit comments

Comments
 (0)