Skip to content

Commit dd9750a

Browse files
authored
feat(SDK)!: v2 SDK Release (#2137)
1 parent a21106c commit dd9750a

File tree

785 files changed

+56967
-67058
lines changed

Some content is hidden

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

785 files changed

+56967
-67058
lines changed

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"extends": ["airbnb", "airbnb-typescript"],
44
"ignorePatterns": [
55
"jest.config.*",
6-
"rollup.config.*",
76
"node_modules/",
87
"dist/",
98
"**sample-app**/",
109
"**playground**/",
1110
"*.cjs",
12-
"tests/func-tests/"
11+
"tests/func-tests/",
12+
"tsup.*"
1313
],
1414
"parser": "@typescript-eslint/parser",
1515
"parserOptions": {

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* @immutable/passport
2+
package.json @immutable/passport
23
.github @immutable/security @immutable/passport
34
/.husky @immutable/passport
45
/.nvmrc @immutable/passport

.github/actions/setup-playwright/action.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,30 @@ runs:
77
- name: Playwright versions in sync check
88
shell: bash
99
run: |
10-
versions=$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')
10+
versions=$(pnpm ls -r --json --depth 0 @playwright/test | jq --raw-output '.[] | select(.devDependencies["@playwright/test"]) | .devDependencies["@playwright/test"].version')
1111
unique_versions=$(echo "$versions" | sort | uniq)
1212
if [ $(echo "$unique_versions" | wc -l) -ne 1 ]; then
1313
echo "Playwright versions are not in sync:"
1414
echo "$unique_versions"
1515
exit 1
1616
else
1717
echo "All Playwright versions are in sync."
18+
echo "PLAYWRIGHT_VERSION=$unique_versions" >> $GITHUB_ENV
1819
fi
19-
20-
- name: Get Playwright version
21-
shell: bash
22-
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('playwright/package.json').version)")" >> $GITHUB_ENV
23-
20+
2421
- name: Cache Playwright Browsers
2522
id: cache-playwright-browsers
26-
uses: actions/cache@v4
23+
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f
2724
with:
2825
path: ~/.cache/ms-playwright
2926
key: playwright-browsers-${{ runner.os }}-${{ env.PLAYWRIGHT_VERSION }}
3027

3128
- name: Install Playwright with dependencies
3229
shell: bash
3330
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
34-
run: yarn dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install --with-deps
31+
run: pnpm dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install --with-deps
3532

3633
- name: Install Playwright dependencies
3734
shell: bash
3835
if: steps.cache-playwright-browsers.outputs.cache-hit == 'true'
39-
run: yarn dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install-deps
36+
run: pnpm dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install-deps

.github/actions/setup/action.yaml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
name: "Setup"
2-
description: "Do necessary setup for NX, node, yarn cache and deps install"
2+
description: "Do necessary setup for NX, node, pnpm cache and deps install"
33

44
runs:
55
using: "composite"
66
steps:
77
- name: Derive appropriate SHAs for base and head for `nx affected` commands
8-
uses: nrwl/nx-set-shas@v3
8+
uses: nrwl/nx-set-shas@e2e6dc8bce4b0387a05eb687735c39c41580b792
9+
10+
- name: Setup pnpm
11+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
912

1013
- name: Use Node.js
11-
uses: actions/setup-node@v4
14+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
1215
with:
1316
node-version-file: ".nvmrc"
1417
registry-url: https://registry.npmjs.org/
15-
cache: "yarn"
16-
17-
- name: Restore cached node_modules
18-
id: restore-cache-node_modules
19-
uses: actions/cache@v4
20-
with:
21-
path: |
22-
**/node_modules
23-
.yarn/install-state.gz
24-
key: ${{ runner.os }}-build-cache-deps-${{ hashFiles('yarn.lock') }}
18+
cache: "pnpm"
2519

2620
- name: install dependencies
27-
if: steps.restore-cache-node_modules.outputs.cache-hit != 'true'
2821
shell: bash
29-
run: yarn install --immutable
22+
run: pnpm install --frozen-lockfile

.github/pull_request_template.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
### Hi👋, please prefix this PR's title with:
2-
<!-- This will give consistant Release changelog to the public -->
3-
- [ ] `breaking-change:` if you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities.
4-
- [ ] `feat:`, `fix:`, `refactor:`, `docs:`, or `chore:`.
1+
### Hi👋, please ensure the PR title follows the below standards:
2+
<!-- This will allow for auto-generated changelog entries in Github releases -->
3+
<!-- Valid types: feat, fix, refactor, style, test, docs, build, ops, chore -->
4+
<!-- refactor, style, test, docs, build, ops, chore types won't be included in changelogs -->
5+
- [ ] PR is titled with conventional commit style naming: `type(scope): message`. For example: `feat(passport): my new feature`
6+
- [ ] If you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities, add a `!` after the `type(scope)`, for example `feat(passport)!: my new breaking feature`
57

68
# Summary
79
<!-- Keep it short. This is publicly viewable as part of the Changelog / Releases. -->

.github/scripts/check-team-membership.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/scripts/delete-local-tags.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)