Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: Sync develop to master for 9.0.0 #15350

Merged
merged 18 commits into from
Feb 10, 2025
Merged

meta: Sync develop to master for 9.0.0 #15350

merged 18 commits into from
Feb 10, 2025

Conversation

lforst
Copy link
Member

@lforst lforst commented Feb 10, 2025

No description provided.

andreiborza and others added 18 commits February 6, 2025 11:39
Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
[Gitflow] Merge master into develop
#15333)

Refactors two flaky Node integration tests that made requests to
example.com. Now we just spin up our own test server instead.
Bumps
[@sentry/rollup-plugin](https://github.com/getsentry/sentry-javascript-bundler-plugins)
from 2.22.7 to 3.1.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/releases"><code>@​sentry/rollup-plugin</code>'s
releases</a>.</em></p>
<blockquote>
<h2>3.1.2</h2>
<ul>
<li>deps: Bump <code>@sentry/cli</code> to <code>2.41.1</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/671">#671</a>)</li>
</ul>
<h2>3.1.1</h2>
<ul>
<li>
<p>fix(core): Disable release creation and source maps upload in dev
mode (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/666">#666</a>)</p>
<p>This fix disables any external calls to the Sentry API for managing
releases or uploading source maps, when detecting that the plugin is
running in dev-mode. While this rarely actually happened,
it also polluted the dev server output with unnecessary logs about
missing auth tokens, which shouldn't
be required in dev mode.</p>
</li>
</ul>
<h2>3.1.0</h2>
<ul>
<li>feat(webpack): Gate forced process exit behind experimental flag (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/663">#663</a>)</li>
</ul>
<h2>3.0.0</h2>
<h3>Breaking Changes</h3>
<ul>
<li>
<p>Injected code will now use <code>let</code>, which was added in ES6
(ES2015).
This means that ES6 is the minimum JavaScript version that the Sentry
bundler plugins support.</p>
</li>
<li>
<p>Deprecated options have been removed:</p>
<ul>
<li><code>deleteFilesAfterUpload</code> - Use
<code>filesToDeleteAfterUpload</code> instead</li>
<li><code>bundleSizeOptimizations.excludePerformanceMonitoring</code> -
Use <code>bundleSizeOptimizations.excludeTracing</code> instead</li>
<li><code>_experiments.moduleMetadata</code> - Use
<code>moduleMetadata</code> instead</li>
<li><code>cleanArtifacts</code> - Did not do anything</li>
</ul>
</li>
</ul>
<h3>List of Changes</h3>
<ul>
<li>fix!: Wrap injected code in block-statement to contain scope (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/646">#646</a>)</li>
<li>chore!: Remove deprecated options (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/654">#654</a>)</li>
<li>feat(logger): Use console methods respective to log level (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/652">#652</a>)</li>
<li>fix(webpack): Ensure process exits when done (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/653">#653</a>)</li>
<li>fix: Use correct replacement matcher for
<code>bundleSizeOptimizations.excludeTracing</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/644">#644</a>)</li>
</ul>
<p>Work in this release contributed by <a
href="https://github.com/jdelStrother"><code>@​jdelStrother</code></a>.
Thank you for your contribution!</p>
<h2>2.23.0</h2>
<ul>
<li>chore(deps): bump nanoid from 3.3.6 to 3.3.8 (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/641">#641</a>)</li>
<li>feat(core): Detect Railway release name (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/639">#639</a>)</li>
<li>feat(core): Write module injections to <code>globalThis</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/636">#636</a>)</li>
<li>feat(react-component-annotate): Allow skipping annotations on
specified components (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/617">#617</a>)</li>
<li>ref(core): Rename release management plugin name (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/647">#647</a>)</li>
</ul>
<p>Work in this release contributed by <a
href="https://github.com/conor-ob"><code>@​conor-ob</code></a>. Thank
you for your contribution!</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md"><code>@​sentry/rollup-plugin</code>'s
changelog</a>.</em></p>
<blockquote>
<h2>3.1.2</h2>
<ul>
<li>deps: Bump <code>@sentry/cli</code> to <code>2.41.1</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/671">#671</a>)</li>
</ul>
<h2>3.1.1</h2>
<ul>
<li>
<p>fix(core): Disable release creation and source maps upload in dev
mode (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/666">#666</a>)</p>
<p>This fix disables any external calls to the Sentry API for managing
releases or uploading source maps, when detecting that the plugin is
running in dev-mode. While this rarely actually happened,
it also polluted the dev server output with unnecessary logs about
missing auth tokens, which shouldn't
be required in dev mode.</p>
</li>
</ul>
<h2>3.1.0</h2>
<ul>
<li>feat(webpack): Gate forced process exit behind experimental flag (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/663">#663</a>)</li>
</ul>
<h2>3.0.0</h2>
<h3>Breaking Changes</h3>
<ul>
<li>
<p>Injected code will now use <code>let</code>, which was added in ES6
(ES2015).
This means that ES6 is the minimum JavaScript version that the Sentry
bundler plugins support.</p>
</li>
<li>
<p>Deprecated options have been removed:</p>
<ul>
<li><code>deleteFilesAfterUpload</code> - Use
<code>filesToDeleteAfterUpload</code> instead</li>
<li><code>bundleSizeOptimizations.excludePerformanceMonitoring</code> -
Use <code>bundleSizeOptimizations.excludeTracing</code> instead</li>
<li><code>_experiments.moduleMetadata</code> - Use
<code>moduleMetadata</code> instead</li>
<li><code>cleanArtifacts</code> - Did not do anything</li>
</ul>
</li>
</ul>
<h3>List of Changes</h3>
<ul>
<li>fix!: Wrap injected code in block-statement to contain scope (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/646">#646</a>)</li>
<li>chore!: Remove deprecated options (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/654">#654</a>)</li>
<li>feat(logger): Use console methods respective to log level (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/652">#652</a>)</li>
<li>fix(webpack): Ensure process exits when done (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/653">#653</a>)</li>
<li>fix: Use correct replacement matcher for
<code>bundleSizeOptimizations.excludeTracing</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/644">#644</a>)</li>
</ul>
<p>Work in this release contributed by <a
href="https://github.com/jdelStrother"><code>@​jdelStrother</code></a>.
Thank you for your contribution!</p>
<h2>2.23.0</h2>
<ul>
<li>chore(deps): bump nanoid from 3.3.6 to 3.3.8 (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/641">#641</a>)</li>
<li>feat(core): Detect Railway release name (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/639">#639</a>)</li>
<li>feat(core): Write module injections to <code>globalThis</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/636">#636</a>)</li>
<li>feat(react-component-annotate): Allow skipping annotations on
specified components (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/617">#617</a>)</li>
<li>ref(core): Rename release management plugin name (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/647">#647</a>)</li>
</ul>
<p>Work in this release contributed by <a
href="https://github.com/conor-ob"><code>@​conor-ob</code></a>. Thank
you for your contribution!</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/900341064e20483c1dd4fd58a194544f2d2da14a"><code>9003410</code></a>
release: 3.1.2</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/1063e0a2cd1093a7a33446b3930e6e77a43d2c0c"><code>1063e0a</code></a>
meta: Update changelog for <code>3.1.2</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/672">#672</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/cfb6fcc12b9900398c9f2c2643bf3ea6969fdcc9"><code>cfb6fcc</code></a>
deps: Bump <code>@sentry/cli</code> to <code>2.41.1</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/671">#671</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/27626a3688c32d92b87583f89a6217ff55ed8f3f"><code>27626a3</code></a>
Merge branch 'release/3.1.1'</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/0db92f683ab0a4952e6d1b32e75a43d938c2d52b"><code>0db92f6</code></a>
release: 3.1.1</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/8cdc739c168e66c1e85d6155ad15eb8516a44c0a"><code>8cdc739</code></a>
meta: Add Changelog for 3.1.1 (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/668">#668</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/d39f50ebbcb9f2ea8743ce5aa13acf9c4a2dbbc6"><code>d39f50e</code></a>
fix(core): Check for dev mode via <code>process.env.NODE_ENV</code> (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/666">#666</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/071fd5cc0b2d46c977df30b2d4fa08a52694415a"><code>071fd5c</code></a>
Merge branch 'release/3.1.0'</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/b2f807b2192ab965747301a06b5ecf6948ee72ef"><code>b2f807b</code></a>
release: 3.1.0</li>
<li><a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/commit/d57886dc724863669cb5c951cd055495b4cc5cb5"><code>d57886d</code></a>
meta: Update changelog for 3.1.0 (<a
href="https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/issues/664">#664</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/2.22.7...3.1.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@sentry/rollup-plugin&package-manager=npm_and_yarn&previous-version=2.22.7&new-version=3.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
#15332)

Mostly we already add a route for this anyhow, but it can be confusing.
So let's just use a proper non-existing URL there to ensure we notice
issues earlier.
Export the previously missing `vercelAIIntegration`. It's
enabled by default but prior to this change, it couldn't be manually
added due to it not being exported by the Node SDK.

---------

Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
Ref https://develop.sentry.dev/sdk/expected-features/#feature-flags.
Adds an integration for tracking Statsig js-client flag evaluations,
specifically the `checkGate` method which is used for boolean release
flags.

Statsig references:
- https://docs.statsig.com/client/javascript-sdk
- https://docs.statsig.com/client/javascript-sdk#client-event-emitter
- [Event emitter types
definitions](https://github.com/statsig-io/js-client-monorepo/blob/main/packages/client-core/src/StatsigClientEventEmitter.ts)

Our current FF integrations only support boolean flag values so "dynamic
config", "experiments", and "layers" will not be tracked for now.

Closes getsentry/team-replay#539
meta(changelog): Update changelog for 9.0.0
@lforst lforst requested a review from a team as a code owner February 10, 2025 08:43
@lforst lforst requested a review from Lms24 February 10, 2025 08:44
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 22.9 KB added added
@sentry/browser - with treeshaking flags 22.69 KB added added
@sentry/browser (incl. Tracing) 35.78 KB added added
@sentry/browser (incl. Tracing, Replay) 72.59 KB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.06 KB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 76.83 KB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 89.57 KB added added
@sentry/browser (incl. Feedback) 39.85 KB added added
@sentry/browser (incl. sendFeedback) 27.53 KB added added
@sentry/browser (incl. FeedbackAsync) 32.32 KB added added
@sentry/react 24.74 KB added added
@sentry/react (incl. Tracing) 37.67 KB added added
@sentry/vue 27.1 KB added added
@sentry/vue (incl. Tracing) 37.48 KB added added
@sentry/svelte 22.94 KB added added
CDN Bundle 24.13 KB added added
CDN Bundle (incl. Tracing) 35.85 KB added added
CDN Bundle (incl. Tracing, Replay) 70.49 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 75.63 KB added added
CDN Bundle - uncompressed 70.59 KB added added
CDN Bundle (incl. Tracing) - uncompressed 106.47 KB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 217.33 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.89 KB added added
@sentry/nextjs (client) 38.64 KB added added
@sentry/sveltekit (client) 36.21 KB added added
@sentry/node 156.58 KB added added
@sentry/node - without tracing 97.58 KB added added
@sentry/aws-serverless 107.07 KB added added

@lforst lforst merged commit 0b706be into master Feb 10, 2025
288 checks passed
@lforst lforst deleted the prepare-release/9.0.0 branch February 10, 2025 08:55
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.

8 participants