') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); chore(repo): Enter changesets Pre mode (for v5) by dimkl · Pull Request #1970 · clerk/javascript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .changeset/friendly-vans-develop.md
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
---
'gatsby-plugin-clerk': patch
'@clerk/clerk-js': patch
'@clerk/clerk-sdk-node': patch
'@clerk/backend': patch
'@clerk/fastify': patch
'@clerk/nextjs': patch
'@clerk/shared': patch
'@clerk/clerk-expo': patch
'gatsby-plugin-clerk': major
'@clerk/clerk-js': major
'@clerk/clerk-sdk-node': major
'@clerk/backend': major
'@clerk/fastify': major
'@clerk/nextjs': major
'@clerk/shared': major
'@clerk/clerk-expo': major
---

Internal update default apiUrl domain from clerk.dev to clerk.com
22 changes: 22 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
{
"mode": "pre",
"tag": "alpha-v5",
"initialVersions": {
"@clerk/backend": "0.31.3",
"@clerk/chrome-extension": "0.4.10",
"@clerk/clerk-js": "4.63.0",
"eslint-config-custom": "0.3.0",
"@clerk/clerk-expo": "0.19.12",
"@clerk/fastify": "0.6.17",
"gatsby-plugin-clerk": "4.4.18",
"@clerk/localizations": "1.26.7",
"@clerk/nextjs": "4.25.7",
"@clerk/clerk-react": "4.27.0",
"@clerk/remix": "3.1.0",
"@clerk/clerk-sdk-node": "4.12.16",
"@clerk/shared": "1.0.0",
"@clerk/themes": "1.7.9",
"@clerk/types": "3.57.0"
},
"changesets": []
}
2 changes: 1 addition & 1 deletion .changeset/thin-phones-drop.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
---
'@clerk/nextjs': patch
'@clerk/nextjs': major
---

Drop `user`, `session`, and `organization` resources from the returned value of `auth()`.
4 changes: 2 additions & 2 deletions .changeset/tough-roses-hunt.md
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
---
'@clerk/clerk-js': patch
'@clerk/types': patch
'@clerk/clerk-js': major
'@clerk/types': major
---

Avatar Shimmer will be enabled by default for `<UserButton/>` and `<OrganizationSwitcher/>`.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@ on:
pull_request:
branches:
- main
- main-v4
- release/v4
- ci-updates

concurrency:
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/release-canary.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/release-prod.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,8 @@ run-name: Production release PR
on:
push:
branches:
- main-v4
- main
Comment thread
LekoArts marked this conversation as resolved.
- release/v4

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand DownExpand Up@@ -39,8 +40,6 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
title: Version Packages
commit: "chore(repo): Version packages"
Comment thread
dimkl marked this conversation as resolved.
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.CLERK_COOKIE_PAT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-staging.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@ run-name: Staging release from ${{ github.ref_name }}
on:
push:
branches:
- main-v4
- release/v4

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions docs/PUBLISH.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -50,7 +50,7 @@ If a PR got merged into `main` that should also be released in older versions (e
Duplicate the `.env.example` file inside `scripts` and rename it to `.env`. Fill out the `GITHUB_ACCESS_TOKEN` variable. Afterwards, you'll be able to run the CLI like so:

```shell
node backports.mjs main-v4 1234
node backports.mjs release/v4 1234
```

The command above will backport the PR `1234` to the branch `main-v4`.
The command above will backport the PR `1234` to the branch `release/v4`.
2 changes: 0 additions & 2 deletions package.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,7 +25,6 @@
"nuke": "./scripts/nuke.sh",
"prepare": "husky install",
"release": "TURBO_FORCE=true FORCE_COLOR=1 npm run build -- --force && changeset publish && git push --follow-tags",
"release:canary": "TURBO_FORCE=true FORCE_COLOR=1 npm run build && changeset publish --tag canary --no-git-tag",
"release:snapshot": "TURBO_FORCE=true FORCE_COLOR=1 npm run build && changeset publish --tag snapshot --no-git-tag",
"release:staging": "TURBO_FORCE=true FORCE_COLOR=1 npm run build && changeset publish --tag staging --no-git-tag",
"test": "FORCE_COLOR=1 turbo test --concurrency=${TURBO_CONCURRENCY:-80%}",
Expand All@@ -38,7 +37,6 @@
"turbo:clean": "turbo daemon clean",
"update:lockfile": "npm run nuke && npm install -D --arch=x64 --platform=linux turbo && npm install -D --arch=arm64 --platform=darwin turbo",
"version": "changeset version && ./scripts/version-info.sh",
"version:canary": "./scripts/canary.mjs",
"version:snapshot": "./scripts/snapshot.mjs",
"version:staging": "./scripts/staging.mjs",
"yalc:all": "for d in packages/*/; do echo $d; cd $d; yalc push --replace --sig; cd '../../'; done"
Expand Down
18 changes: 0 additions & 18 deletions scripts/canary.mjs

This file was deleted.