') + ')', '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); } })(); })(); Version Packages - V4 by clerk-cookie · Pull Request #2018 · 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
6 changes: 0 additions & 6 deletions .changeset/blue-ghosts-float.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/chatty-boats-tease.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-vans-flash.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/clever-wasps-invite.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/curvy-mails-rhyme.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dry-students-reflect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dull-stingrays-fix.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/famous-forks-buy.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/new-eels-mix.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/orange-pumpkins-poke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-bottles-grow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/purple-rules-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/soft-birds-thank.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/spotty-apples-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-scissors-applaud.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thirty-doors-peel.md

This file was deleted.

14 changes: 14 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
# Change Log

## 0.34.0

### Minor Changes

- Experimental support for `<Gate/>` with role checks. ([#2051](https://github.com/clerk/javascript/pull/2051)) by [@panteliselef](https://github.com/panteliselef)

### Patch Changes

- Fix type inferance for auth helper. ([#2049](https://github.com/clerk/javascript/pull/2049)) by [@panteliselef](https://github.com/panteliselef)

- Updated dependencies [[`7fa8fbcf2`](https://github.com/clerk/javascript/commit/7fa8fbcf21df0d52d49168eae511c580c5c82977), [`068a9025c`](https://github.com/clerk/javascript/commit/068a9025c7d7fb7e7207674d4d43844964053ca3), [`4c3429010`](https://github.com/clerk/javascript/commit/4c342901072ec37c4f77916ccdf964c6eaf04e81), [`d7fe11ede`](https://github.com/clerk/javascript/commit/d7fe11ede1b23bacc5d811c50587bac251d560b8), [`f9d1bc758`](https://github.com/clerk/javascript/commit/f9d1bc758972328be7ddb7d61f66baea2aaf2c96), [`f652a5618`](https://github.com/clerk/javascript/commit/f652a5618b7019c916000f78ea3c1e4abf9a6c1b)]:
- @clerk/shared@1.1.0
- @clerk/types@3.58.0

## 0.33.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "0.33.0",
"version": "0.34.0",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand DownExpand Up@@ -55,8 +55,8 @@
"test:cloudflare-workerd": "tests/cloudflare-workerd/run.sh"
},
"dependencies": {
"@clerk/shared": "1.0.2",
"@clerk/types": "3.57.1",
"@clerk/shared": "1.1.0",
"@clerk/types": "3.58.0",
"@peculiar/webcrypto": "1.4.1",
"@types/node": "16.18.6",
"cookie": "0.5.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 0.5.0

### Minor Changes

- Experimental support for `<Gate/>` with role checks. ([#2051](https://github.com/clerk/javascript/pull/2051)) by [@panteliselef](https://github.com/panteliselef)

### Patch Changes

- Updated dependencies [[`068a9025c`](https://github.com/clerk/javascript/commit/068a9025c7d7fb7e7207674d4d43844964053ca3), [`068adedaf`](https://github.com/clerk/javascript/commit/068adedaf8e063a232a94fab1e5013307883ddaf), [`4c3429010`](https://github.com/clerk/javascript/commit/4c342901072ec37c4f77916ccdf964c6eaf04e81), [`906da4ffb`](https://github.com/clerk/javascript/commit/906da4ffb3d22fd185fcb7221f9435abb5db2127), [`7ed0f810a`](https://github.com/clerk/javascript/commit/7ed0f810af412a25bd86047681a292654a0fc41b), [`d7fe11ede`](https://github.com/clerk/javascript/commit/d7fe11ede1b23bacc5d811c50587bac251d560b8), [`f9d1bc758`](https://github.com/clerk/javascript/commit/f9d1bc758972328be7ddb7d61f66baea2aaf2c96), [`9a065cd2d`](https://github.com/clerk/javascript/commit/9a065cd2dd502e9fd2d384aa8521c79e299c9559), [`8ff6beff6`](https://github.com/clerk/javascript/commit/8ff6beff610b8ee8b2de60800a1afde93f7219b9), [`f652a5618`](https://github.com/clerk/javascript/commit/f652a5618b7019c916000f78ea3c1e4abf9a6c1b), [`26cb643d0`](https://github.com/clerk/javascript/commit/26cb643d00a118509075d8c3de24b5dfe2642323)]:
- @clerk/clerk-js@4.65.0
- @clerk/clerk-react@4.28.0

## 0.4.13

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "0.4.13",
"version": "0.5.0",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -45,8 +45,8 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "4.64.2",
"@clerk/clerk-react": "4.27.2"
"@clerk/clerk-js": "4.65.0",
"@clerk/clerk-react": "4.28.0"
},
"devDependencies": {
"@types/chrome": "*",
Expand Down
35 changes: 35 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
# Change Log

## 4.65.0

### Minor Changes

- Add support for custom roles in `<OrganizationProfile/>`. ([#2039](https://github.com/clerk/javascript/pull/2039)) by [@panteliselef](https://github.com/panteliselef)

The previous roles (`admin` and `basic_member`), are still kept as a fallback.

- Experimental support for `<Gate/>` with role checks. ([#2051](https://github.com/clerk/javascript/pull/2051)) by [@panteliselef](https://github.com/panteliselef)

- Handle user_locked error encountered in an oauth flow by redirecting to /sign-up or /sign-in ([#2071](https://github.com/clerk/javascript/pull/2071)) by [@clerk-cookie](https://github.com/clerk-cookie)

- Add a private \_\_navigateWithError util function to clerk for use in User Lockout scenarios ([#2074](https://github.com/clerk/javascript/pull/2074)) by [@clerk-cookie](https://github.com/clerk-cookie)

### Patch Changes

- Fix incorrect pagination counters in data tables inside `<OrganizationProfile/>`. ([#2067](https://github.com/clerk/javascript/pull/2067)) by [@clerk-cookie](https://github.com/clerk-cookie)

- Use strict equality operator to check for lockout errors in handleRedirectCallback ([#2075](https://github.com/clerk/javascript/pull/2075)) by [@clerk-cookie](https://github.com/clerk-cookie)

- Rename the @staging tag to @canary. Drop support for @next tag. ([#2066](https://github.com/clerk/javascript/pull/2066)) by [@anagstef](https://github.com/anagstef)

- Emit session when permissions or role of the active memberships change. ([#2081](https://github.com/clerk/javascript/pull/2081)) by [@clerk-cookie](https://github.com/clerk-cookie)

- Enhance `CreateOrganizationForm` by replacing `AvatarPreview` with an upload button to prevent layout shifts ([#2090](https://github.com/clerk/javascript/pull/2090)) by [@clerk-cookie](https://github.com/clerk-cookie)

- Re-initialize the Client to default values when is destroyed ([#2016](https://github.com/clerk/javascript/pull/2016)) by [@clerk-cookie](https://github.com/clerk-cookie)

- Refresh invited members upon revocation ([#2088](https://github.com/clerk/javascript/pull/2088)) by [@clerk-cookie](https://github.com/clerk-cookie)

- Updated dependencies [[`7fa8fbcf2`](https://github.com/clerk/javascript/commit/7fa8fbcf21df0d52d49168eae511c580c5c82977), [`068a9025c`](https://github.com/clerk/javascript/commit/068a9025c7d7fb7e7207674d4d43844964053ca3), [`4c3429010`](https://github.com/clerk/javascript/commit/4c342901072ec37c4f77916ccdf964c6eaf04e81), [`d7fe11ede`](https://github.com/clerk/javascript/commit/d7fe11ede1b23bacc5d811c50587bac251d560b8), [`f9d1bc758`](https://github.com/clerk/javascript/commit/f9d1bc758972328be7ddb7d61f66baea2aaf2c96), [`f652a5618`](https://github.com/clerk/javascript/commit/f652a5618b7019c916000f78ea3c1e4abf9a6c1b)]:
- @clerk/shared@1.1.0
- @clerk/types@3.58.0
- @clerk/localizations@1.26.9

## 4.64.2

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "4.64.2",
"version": "4.65.0",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand DownExpand Up@@ -50,9 +50,9 @@
},
"browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0",
"dependencies": {
"@clerk/localizations": "1.26.8",
"@clerk/shared": "1.0.2",
"@clerk/types": "3.57.1",
"@clerk/localizations": "1.26.9",
"@clerk/shared": "1.1.0",
"@clerk/types": "3.58.0",
"@emotion/cache": "11.11.0",
"@emotion/react": "11.11.1",
"@floating-ui/react": "0.25.4",
Expand Down
9 changes: 9 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
# Change Log

## 0.19.16

### Patch Changes

- Updated dependencies [[`7fa8fbcf2`](https://github.com/clerk/javascript/commit/7fa8fbcf21df0d52d49168eae511c580c5c82977), [`068a9025c`](https://github.com/clerk/javascript/commit/068a9025c7d7fb7e7207674d4d43844964053ca3), [`068adedaf`](https://github.com/clerk/javascript/commit/068adedaf8e063a232a94fab1e5013307883ddaf), [`4c3429010`](https://github.com/clerk/javascript/commit/4c342901072ec37c4f77916ccdf964c6eaf04e81), [`906da4ffb`](https://github.com/clerk/javascript/commit/906da4ffb3d22fd185fcb7221f9435abb5db2127), [`7ed0f810a`](https://github.com/clerk/javascript/commit/7ed0f810af412a25bd86047681a292654a0fc41b), [`d7fe11ede`](https://github.com/clerk/javascript/commit/d7fe11ede1b23bacc5d811c50587bac251d560b8), [`f9d1bc758`](https://github.com/clerk/javascript/commit/f9d1bc758972328be7ddb7d61f66baea2aaf2c96), [`9a065cd2d`](https://github.com/clerk/javascript/commit/9a065cd2dd502e9fd2d384aa8521c79e299c9559), [`8ff6beff6`](https://github.com/clerk/javascript/commit/8ff6beff610b8ee8b2de60800a1afde93f7219b9), [`f652a5618`](https://github.com/clerk/javascript/commit/f652a5618b7019c916000f78ea3c1e4abf9a6c1b), [`26cb643d0`](https://github.com/clerk/javascript/commit/26cb643d00a118509075d8c3de24b5dfe2642323)]:
- @clerk/shared@1.1.0
- @clerk/clerk-js@4.65.0
- @clerk/clerk-react@4.28.0

## 0.19.15

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/expo/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-expo",
"version": "0.19.15",
"version": "0.19.16",
"description": "Clerk React Native/Expo library",
"keywords": [
"react",
Expand DownExpand Up@@ -39,14 +39,14 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
"@clerk/clerk-js": "4.64.2",
"@clerk/clerk-react": "4.27.2",
"@clerk/shared": "1.0.2",
"@clerk/clerk-js": "4.65.0",
"@clerk/clerk-react": "4.28.0",
"@clerk/shared": "1.1.0",
"base-64": "1.0.0",
"react-native-url-polyfill": "2.0.0"
},
"devDependencies": {
"@clerk/types": "^3.57.1",
"@clerk/types": "^3.58.0",
"@types/base-64": "^1.0.0",
"@types/node": "^16.11.55",
"@types/react": "*",
Expand Down
9 changes: 9 additions & 0 deletions packages/fastify/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
# Change Log

## 0.6.21

### Patch Changes

- Updated dependencies [[`7fa8fbcf2`](https://github.com/clerk/javascript/commit/7fa8fbcf21df0d52d49168eae511c580c5c82977), [`068a9025c`](https://github.com/clerk/javascript/commit/068a9025c7d7fb7e7207674d4d43844964053ca3), [`4c3429010`](https://github.com/clerk/javascript/commit/4c342901072ec37c4f77916ccdf964c6eaf04e81), [`d7fe11ede`](https://github.com/clerk/javascript/commit/d7fe11ede1b23bacc5d811c50587bac251d560b8), [`20eab8365`](https://github.com/clerk/javascript/commit/20eab836569bba99bbc058d1dd599c5fcfc005de), [`f9d1bc758`](https://github.com/clerk/javascript/commit/f9d1bc758972328be7ddb7d61f66baea2aaf2c96), [`f652a5618`](https://github.com/clerk/javascript/commit/f652a5618b7019c916000f78ea3c1e4abf9a6c1b)]:
- @clerk/shared@1.1.0
- @clerk/types@3.58.0
- @clerk/backend@0.34.0

## 0.6.20

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/fastify/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/fastify",
"version": "0.6.20",
"version": "0.6.21",
"description": "Clerk SDK for Fastify",
"keywords": [
"auth",
Expand DownExpand Up@@ -40,9 +40,9 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
"@clerk/backend": "0.33.0",
"@clerk/shared": "1.0.2",
"@clerk/types": "3.57.1",
"@clerk/backend": "0.34.0",
"@clerk/shared": "1.1.0",
"@clerk/types": "3.58.0",
"cookies": "0.8.0"
},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions packages/gatsby-plugin-clerk/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
# Change Log

## 4.4.22

### Patch Changes

- Updated dependencies [[`d7fe11ede`](https://github.com/clerk/javascript/commit/d7fe11ede1b23bacc5d811c50587bac251d560b8), [`20eab8365`](https://github.com/clerk/javascript/commit/20eab836569bba99bbc058d1dd599c5fcfc005de), [`f9d1bc758`](https://github.com/clerk/javascript/commit/f9d1bc758972328be7ddb7d61f66baea2aaf2c96), [`4f9214aca`](https://github.com/clerk/javascript/commit/4f9214aca7b8a8d0685308893e5ff846685774ab)]:
- @clerk/types@3.58.0
- @clerk/backend@0.34.0
- @clerk/clerk-react@4.28.0
- @clerk/clerk-sdk-node@4.12.20

## 4.4.21

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/gatsby-plugin-clerk/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-clerk",
"version": "4.4.21",
"version": "4.4.22",
"description": "Clerk SDK for Gatsby",
"keywords": [
"clerk",
Expand DownExpand Up@@ -44,10 +44,10 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
"@clerk/backend": "0.33.0",
"@clerk/clerk-react": "4.27.2",
"@clerk/clerk-sdk-node": "4.12.19",
"@clerk/types": "3.57.1",
"@clerk/backend": "0.34.0",
"@clerk/clerk-react": "4.28.0",
"@clerk/clerk-sdk-node": "4.12.20",
"@clerk/types": "3.58.0",
"cookie": "0.5.0",
"tslib": "2.4.1"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/localizations/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.26.9

### Patch Changes

- Updated dependencies [[`d7fe11ede`](https://github.com/clerk/javascript/commit/d7fe11ede1b23bacc5d811c50587bac251d560b8), [`f9d1bc758`](https://github.com/clerk/javascript/commit/f9d1bc758972328be7ddb7d61f66baea2aaf2c96)]:
- @clerk/types@3.58.0

## 1.26.8

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/localizations/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/localizations",
"version": "1.26.8",
"version": "1.26.9",
"description": "Localizations for the Clerk components",
"keywords": [
"react",
Expand DownExpand Up@@ -38,7 +38,7 @@
"lint": "eslint src/"
},
"dependencies": {
"@clerk/types": "3.57.1"
"@clerk/types": "3.58.0"
},
"devDependencies": {
"tsup": "*",
Expand Down
Loading