Skip to content

Commit 019c669

Browse files
committed
merge main and resolve conflicts
Resolve conflicts in fastify proxy support files with main branch. Take main's simpler proxyUrl resolution approach (path-only instead of full URL derivation) and cleaner JSDoc style.
2 parents c056d3a + e22fa1c commit 019c669

282 files changed

Lines changed: 10248 additions & 2227 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.

.changeset/breezy-stingrays-give.md

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

.changeset/tame-moments-grin.md

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

.cursor/rules/development.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Release Process
113113
Local Development Tips
114114
- Use playground applications to test changes quickly
115115
- Set up multiple test environments for different scenarios
116-
- Use Verdaccio for local npm registry testing
116+
- Use pkglab for local npm registry testing (`pkglab pub` to publish, `pkglab add` to install)
117117
- Leverage hot reloading for faster development cycles
118118
- Use proper IDE setup with TypeScript support
119119

.cursor/rules/monorepo.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Environment Configuration
7575

7676
- Supports multiple Clerk environment variables (CLERK*\*, NEXT_PUBLIC_CLERK*\*, etc.)
7777
- Development, staging, and production configurations
78-
- Verdaccio for local npm registry testing
78+
- pkglab for local npm registry testing
7979
- Docker support for integration testing
8080
- CI/CD with GitHub Actions
8181

.github/actions/init-blacksmith/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ runs:
8888
)
8989
9090
if (ENABLED === 'true') {
91+
if (!TEAM) {
92+
throw new Error('turbo-team input is required and must not be empty')
93+
}
94+
if (!TOKEN) {
95+
throw new Error('turbo-token input is required and must not be empty')
96+
}
9197
core.exportVariable('TURBO_CACHE', CACHE)
9298
core.exportVariable('TURBO_TEAM', TEAM)
9399
core.exportVariable('TURBO_TOKEN', TOKEN)
@@ -119,6 +125,10 @@ runs:
119125
run: pnpm install
120126
shell: bash
121127

128+
- name: Add node_modules/.bin to PATH
129+
run: echo "${{ github.workspace }}/node_modules/.bin" >> $GITHUB_PATH
130+
shell: bash
131+
122132
- name: Get Playwright Version
123133
if: inputs.playwright-enabled == 'true'
124134
shell: bash

.github/actions/init/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ runs:
8888
)
8989
9090
if (ENABLED === 'true') {
91+
if (!TEAM) {
92+
throw new Error('turbo-team input is required and must not be empty')
93+
}
94+
if (!TOKEN) {
95+
throw new Error('turbo-token input is required and must not be empty')
96+
}
9197
core.exportVariable('TURBO_CACHE', CACHE)
9298
core.exportVariable('TURBO_TEAM', TEAM)
9399
core.exportVariable('TURBO_TOKEN', TOKEN)
@@ -119,6 +125,10 @@ runs:
119125
run: pnpm install
120126
shell: bash
121127

128+
- name: Add node_modules/.bin to PATH
129+
run: echo "${{ github.workspace }}/node_modules/.bin" >> $GITHUB_PATH
130+
shell: bash
131+
122132
- name: Get Playwright Version
123133
if: inputs.playwright-enabled == 'true'
124134
shell: bash

.github/actions/verdaccio/action.yml

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

.github/workflows/ci.yml

Lines changed: 33 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ jobs:
6969
- name: Setup
7070
id: config
7171
uses: ./.github/actions/init-blacksmith
72-
# with:
73-
# turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
74-
# turbo-team: ${{ vars.TURBO_TEAM }}
75-
# turbo-token: ${{ secrets.TURBO_TOKEN }}
72+
with:
73+
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
74+
turbo-team: ${{ vars.TURBO_TEAM }}
75+
turbo-token: ${{ secrets.TURBO_TOKEN }}
7676

7777
- name: Verify lockfile is deduped
7878
run: pnpm dedupe --check
@@ -117,11 +117,11 @@ jobs:
117117
- name: Setup
118118
id: config
119119
uses: ./.github/actions/init-blacksmith
120-
# with:
121-
# turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
122-
# turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
123-
# turbo-team: ${{ vars.TURBO_TEAM }}
124-
# turbo-token: ${{ secrets.TURBO_TOKEN }}
120+
with:
121+
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
122+
turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
123+
turbo-team: ${{ vars.TURBO_TEAM }}
124+
turbo-token: ${{ secrets.TURBO_TOKEN }}
125125

126126
- name: Turbo Build
127127
run: pnpm turbo build $TURBO_ARGS --only
@@ -163,11 +163,11 @@ jobs:
163163
- name: Setup
164164
id: config
165165
uses: ./.github/actions/init-blacksmith
166-
# with:
167-
# turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
168-
# turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
169-
# turbo-team: ${{ vars.TURBO_TEAM }}
170-
# turbo-token: ${{ secrets.TURBO_TOKEN }}
166+
with:
167+
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
168+
turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
169+
turbo-team: ${{ vars.TURBO_TEAM }}
170+
turbo-token: ${{ secrets.TURBO_TOKEN }}
171171

172172
- name: Check size using bundlewatch
173173
continue-on-error: true
@@ -237,10 +237,10 @@ jobs:
237237
with:
238238
# Ensures that all builds are cached appropriately with a consistent run name `Unit Tests (20)`.
239239
node-version: ${{ matrix.node-version }}
240-
# turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
241-
# turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
242-
# turbo-team: ${{ vars.TURBO_TEAM }}
243-
# turbo-token: ${{ secrets.TURBO_TOKEN }}
240+
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
241+
turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
242+
turbo-team: ${{ vars.TURBO_TEAM }}
243+
turbo-token: ${{ secrets.TURBO_TOKEN }}
244244

245245
- name: Run tests in packages
246246
run: |
@@ -273,8 +273,7 @@ jobs:
273273
retention-days: 5
274274

275275
integration-tests:
276-
# needs: [check-permissions, build-packages]
277-
needs: [check-permissions]
276+
needs: [check-permissions, build-packages]
278277
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
279278
name: Integration Tests (${{ matrix.test-name }}, ${{ matrix.test-project }}${{ matrix.next-version && format(', {0}', matrix.next-version) || '' }})
280279
permissions:
@@ -305,6 +304,7 @@ jobs:
305304
"nuxt",
306305
"react-router",
307306
"custom",
307+
"hono",
308308
]
309309
test-project: ["chrome"]
310310
include:
@@ -341,9 +341,9 @@ jobs:
341341
id: config
342342
uses: ./.github/actions/init-blacksmith
343343
with:
344-
# turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
345-
# turbo-team: ${{ vars.TURBO_TEAM }}
346-
# turbo-token: ${{ secrets.TURBO_TOKEN }}
344+
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
345+
turbo-team: ${{ vars.TURBO_TEAM }}
346+
turbo-token: ${{ secrets.TURBO_TOKEN }}
347347
playwright-enabled: true
348348

349349
- name: Verify jq is installed
@@ -379,47 +379,32 @@ jobs:
379379
echo "affected=${AFFECTED}"
380380
echo "affected=${AFFECTED}" >> $GITHUB_OUTPUT
381381
382-
- name: Version packages for snapshot
382+
- name: Build packages
383383
if: ${{ steps.task-status.outputs.affected == '1' }}
384-
run: npm run version-packages:snapshot ci
384+
run: pnpm turbo build $TURBO_ARGS --only
385385

386-
- name: Verdaccio
386+
- name: Publish to local registry
387387
if: ${{ steps.task-status.outputs.affected == '1' }}
388-
uses: ./.github/actions/verdaccio
389-
with:
390-
publish-cmd: |
391-
if [ "$(pnpm config get registry)" = "https://registry.npmjs.org/" ]; then echo 'Error: Using default registry' && exit 1; else pnpm turbo build $TURBO_ARGS --only && pnpm changeset publish --no-git-tag --tag latest; fi
388+
run: pkglab pub --force
392389

393390
- name: Edit .npmrc [link-workspace-packages=false]
394391
run: sed -i -E 's/link-workspace-packages=(deep|true)/link-workspace-packages=false/' .npmrc
395392

396-
- name: Install @clerk/backend in /integration
397-
if: ${{ steps.task-status.outputs.affected == '1' }}
398-
working-directory: ./integration
399-
run: |
400-
pnpm init
401-
pnpm config set minimum-release-age-exclude @clerk/*
402-
pnpm add @clerk/backend
403-
404-
# Install published packages from Verdaccio to test against real npm install scenarios
405-
# rather than local monorepo builds. Validates package structure, dependencies, and entry points.
406393
- name: Install @clerk/clerk-js in os temp
407394
if: ${{ steps.task-status.outputs.affected == '1' }}
408395
working-directory: ${{runner.temp}}
409396
run: |
410397
mkdir clerk-js && cd clerk-js
411398
pnpm init
412-
pnpm config set minimum-release-age-exclude @clerk/*
413-
pnpm add @clerk/clerk-js
399+
pkglab add @clerk/clerk-js
414400
415401
- name: Install @clerk/ui in os temp
416402
if: ${{ steps.task-status.outputs.affected == '1' }}
417403
working-directory: ${{runner.temp}}
418404
run: |
419405
mkdir clerk-ui && cd clerk-ui
420406
pnpm init
421-
pnpm config set minimum-release-age-exclude @clerk/*
422-
pnpm add @clerk/ui
407+
pkglab add @clerk/ui
423408
424409
- name: Copy components @clerk/astro
425410
if: ${{ matrix.test-name == 'astro' }}
@@ -500,10 +485,10 @@ jobs:
500485
with:
501486
turbo-enabled: true
502487
node-version: 22
503-
# turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
504-
# turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
505-
# turbo-team: ${{ vars.TURBO_TEAM }}
506-
# turbo-token: ${{ secrets.TURBO_TOKEN }}
488+
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
489+
turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
490+
turbo-team: ${{ vars.TURBO_TEAM }}
491+
turbo-token: ${{ secrets.TURBO_TOKEN }}
507492

508493
- name: Publish with pkg-pr-new
509494
run: pnpm run build && pnpx pkg-pr-new@${{ vars.PKG_PR_NEW_VERSION || '0.0.49' }} publish --compact --pnpm './packages/*'

.github/workflows/e2e-cleanups.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,8 @@ jobs:
2727
turbo-token: ${{ secrets.TURBO_TOKEN }}
2828
playwright-enabled: true
2929

30-
- name: Verdaccio
31-
uses: ./.github/actions/verdaccio
32-
with:
33-
publish-cmd: |
34-
if [ "$(pnpm config get registry)" = "https://registry.npmjs.org/" ]; then echo 'Error: Using default registry' && exit 1; else pnpm turbo build $TURBO_ARGS --only && pnpm changeset publish --no-git-tag; fi
35-
36-
- name: Install @clerk/backend in /integration
37-
working-directory: ./integration
38-
run: pnpm init && pnpm add @clerk/backend
30+
- name: Build packages
31+
run: pnpm turbo build $TURBO_ARGS --only
3932

4033
- name: Run cleanup
4134
run: pnpm test:integration:cleanup

0 commit comments

Comments
 (0)