Skip to content

feat(remix)!: Drop support for Remix v1#14988

Merged
chargome merged 17 commits intodevelopfrom
cg/drop-remix1-support
Jan 17, 2025
Merged

feat(remix)!: Drop support for Remix v1#14988
chargome merged 17 commits intodevelopfrom
cg/drop-remix1-support

Conversation

@chargome
Copy link
Copy Markdown
Member

@chargome chargome commented Jan 13, 2025

  • Drops support for Remix v1.
  • Drops support for React <18 in Remix (Remix v2 depends on React 18)
  • Removes v1 integration tests
  • Removes v1 e2e tests

ref ##14263

@chargome chargome self-assigned this Jan 13, 2025
@chargome chargome marked this pull request as ready for review January 16, 2025 11:08
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 16, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
688 1 687 299
View the full list of 1 ❄️ flaky tests
tracing/request/fetch/test.ts should create spans for fetch requests

Flake rate in main: 7.69% (Passed 36 times, Failed 3 times)

Stack Traces | 10.1s run time
test.ts:7:11 should create spans for fetch requests

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@onurtemizkan onurtemizkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! Added a few minor comments.

TransactionEvent,
} from '@sentry/core';

export const envelopeUrlRegex = /\.sentry\.io\/api\/\d+\/envelope\//;

Check failure

Code scanning / CodeQL

Missing regular expression anchor

When this is used as a regular expression on a URL, it may match anywhere, and arbitrary hosts may come before or after it.

Copilot Autofix

AI about 1 year ago

To fix the problem, we need to add anchors to the regular expression to ensure it matches the expected part of the URL and not any arbitrary substring. Specifically, we should add the ^ anchor at the beginning to ensure the match starts at the beginning of the string and the $ anchor at the end to ensure the match ends at the end of the string.

  • Modify the regular expression on line 16 to include ^ at the beginning and $ at the end.
  • This change ensures that the regex will only match strings that exactly match the pattern, preventing unintended matches.
Suggested changeset 1
packages/remix/test/integration/test/client/utils/helpers.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/packages/remix/test/integration/test/client/utils/helpers.ts b/packages/remix/test/integration/test/client/utils/helpers.ts
--- a/packages/remix/test/integration/test/client/utils/helpers.ts
+++ b/packages/remix/test/integration/test/client/utils/helpers.ts
@@ -15,3 +15,3 @@
 
-export const envelopeUrlRegex = /\.sentry\.io\/api\/\d+\/envelope\//;
+export const envelopeUrlRegex = /^\.sentry\.io\/api\/\d+\/envelope\/$/;
 
EOF
@@ -15,3 +15,3 @@

export const envelopeUrlRegex = /\.sentry\.io\/api\/\d+\/envelope\//;
export const envelopeUrlRegex = /^\.sentry\.io\/api\/\d+\/envelope\/$/;

Copilot is powered by AI and may make mistakes. Always verify output.
@chargome chargome merged commit 56f82aa into develop Jan 17, 2025
@chargome chargome deleted the cg/drop-remix1-support branch January 17, 2025 12:10
chargome added a commit that referenced this pull request Jan 20, 2025
- Updates the label for remix integration tests.
- Updates client types for captureRemixServerException params 

Follow up to #14988

---------

Co-authored-by: Francesco Gringl-Novy <francesco.novy@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants