Skip to content

Commit 32c0733

Browse files
committed
📝 Fix v7 package.json search and add vue/svelte to forwardErrorsToLogs search
1 parent 7f0dab7 commit 32c0733

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • .claude/skills/upgrade-browser-sdk-v7

‎.claude/skills/upgrade-browser-sdk-v7/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Then run your package manager (`npm install`, `yarn install`, etc.) and rebuild.
3333

3434
Also upgrade framework integrations to v7: `@datadog/browser-rum-react`, `@datadog/browser-rum-angular`, `@datadog/browser-rum-vue`, `@datadog/browser-rum-nextjs`.
3535

36-
Search: `grep -r "@datadog/browser-" package.json`
36+
Search: `grep -r "@datadog/browser-" --include="package.json" .`
3737

3838
## Step 2: Add `crossorigin="anonymous"` (CDN only)
3939

@@ -114,7 +114,7 @@ DD_LOGS.init({
114114

115115
Do **not** replace `forwardErrorsToLogs` with `forwardConsoleLogs` — they control different things.
116116

117-
Search for explicit config: `grep -rn "forwardErrorsToLogs" --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html"`
117+
Search for explicit config: `grep -rn "forwardErrorsToLogs" --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"`
118118

119119
Also search for Logs init calls that may be relying on the default (`forwardErrorsToLogs` defaults to `true` in v6, so omitting it still had the side effect): `grep -rn "DD_LOGS\.init\|datadogLogs\.init" --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"`
120120

0 commit comments

Comments
 (0)