Skip to content

Commit

Permalink
chore(upgrade): A couple small regex fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalan committed Jan 8, 2024
1 parent 1be3066 commit 2776f08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/upgrade/source/util/generate-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ async function generate() {
for (let sdk in data) {
output += `### ${getSdkName(sdk)}\n\n---\n\n`;
data[sdk].map(entry => {
// Note: make sure to add a custom anchor link here to match the cli output
// anchor should be `entry.slug`
output += `<details>
<summary>${parseInline(entry.title)}</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: '`frontendApi` -> `publishableKey` as prop to `ClerkProvider`'
matcher: '<ClerkProvider.*?frontendApi=.*?>'
matcher: "<ClerkProvider[\\s\\S]*?frontendApi=[\\s\\S]*?>"
matcherFlags: 'm'
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: '`authMiddleware` deprecated'
matcher: 'authMiddleware'
matcher: "import\\s+{[\\s\\S]*?authMiddleware[\\s\\S]*?}\\s+from\\s+['\"]@clerk\\/nextjs['\"]"
---

`authMiddleware` is now deprecated, and we recommend instead using `clerkMiddleware`. Here’s how code could look before and after migration:
Expand Down

0 comments on commit 2776f08

Please sign in to comment.