Skip to content

Build(deps-dev): Bump @swc/core from 1.10.12 to 1.11.29 - #486

Open
dependabot[bot] wants to merge 1273 commits into
stablefrom
dependabot/npm_and_yarn/swc/core-1.11.29
Open

Build(deps-dev): Bump @swc/core from 1.10.12 to 1.11.29#486
dependabot[bot] wants to merge 1273 commits into
stablefrom
dependabot/npm_and_yarn/swc/core-1.11.29

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 21, 2025

Copy link
Copy Markdown

Bumps @swc/core from 1.10.12 to 1.11.29.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

featheredtoast and others added 30 commits September 5, 2023 18:21
Similar to panel-body-bottom but shows up outside the div, and
shows even during EmptyStateComponent is shown.
…#22992)

This function was previously expecting multiple services to be injected on any class that uses it. This kind of hidden requirement leads to some very difficult-to-debug situations, so this commit updates the function to lookup all its required services inline.
Previously, theme fields from components would be cached for each of
their parent themes.
Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
The hidden site setting max_drafts_per_user defaults to 10_000 drafts per user.
The longest key should be "topic_<MAX_BIG_INT>" which is 25 characters.
This commit adds limits to themes and theme components on the:

- file size of about.json and .discourse-compatibility
- file size of theme assets
- number of files in a theme
…course#23346)

Why this change?

As part of our ongoing efforts to security harden the Discourse
application, we are adding the `cross_origin_opener_policy_header` site setting
which allows the `Cross-Origin-Opener-Policy` response header to be set on requests
that preloads the Discourse application. In more technical terms, only
GET requests that are not json or xhr will have the response header set.

The `cross_origin_opener_policy_header` site setting is hidden for now
for testing purposes and will either be released as a public site
setting or be remove if we decide to be opinionated and ship a default
for the `Cross-Origin-Opener-Policy` response header.
User profiles, including the summary, should be private to anonymous
users if hide_user_profiles_from_public is enabled.
Why this change?

The `PostsController#create` action allows arbitrary topic custom fields
to be set by any user that can create a topic. Without any restrictions,
this opens us up to potential security issues where plugins may be using
topic custom fields in security sensitive areas.

What does this change do?

1. This change introduces the `register_editable_topic_custom_field` plugin
API which allows plugins to register topic custom fields that are
editable either by staff users only or all users. The registered
editable topic custom fields are stored in `DiscoursePluginRegistry` and
is called by a new method `Topic#editable_custom_fields` which is then
used in the `PostsController#create` controller action. When an unpermitted custom fields is present in the `meta_data` params,
a 400 response code is returned.

2. Removes all reference to `meta_data` on a topic as it is confusing
   since we actually mean topic custom fields instead.
This adds access controls for the `/polls/grouped_poll_results`
endpoint, such that only users with appropriate permissions can read
the grouped results of a given poll.
Why this change?

This ensures that malicious requests cannot end up causing the logs to
quickly fill up. The default chosen is sufficient for most legitimate
requests to the Discourse application.

When truncation happens, parsing of logs in supported format like
lograge may break down.
Ensure we escape the display names before passing it to the regexp used to update
quotes whenever a user change their display name.
Block redirects when making the final request in TopicEmbed to prevent Server Side Request Forgery (SSRF)
The use of triple-curlies on Mustache templates opens the possibility for HTML injections.
There is an edge case where the following occurs:

1. The user sets a bookmark reminder on a post/topic
2. The post/topic is changed to a PM before or after the reminder
   fires, and the notification remains unread by the user
3. The user opens their bookmark reminder notification list
   and they can still see the notification even though they cannot
   access the topic anymore

There is a very low chance for information leaking here, since
the only thing that could be exposed is the topic title if it
changes to something sensitive.

This commit filters the bookmark unread notifications by using
the bookmarkable can_see? methods and also prevents sending
reminder notifications for bookmarks the user can no longer see.
Ensures posts cannot have SVG or PRE elements that are too tall.
branquinhoaa and others added 22 commits March 17, 2025 22:07
…#31734) (discourse#31837)

- backport of discourse#31734 to stable branch

---------

Co-authored-by: Sérgio Saquetim <1108771+megothss@users.noreply.github.com>
- Add these params directly to stable since main refactored the template
```
 Selenium::WebDriver::Error::WebDriverError:
       Could not find a valid devtools version; use a more recent version of selenium-devtools gem
```
…iscourse#32413)

This commit adds a new `--exclude-pattern` CLI option which supports
excluding files using unix style pattern matching.

This is to simplify a couple of situations:

1. Running `bin/turbo_rspec plugin/spec` but we want to exclude all
tests in the `plugin/spec/system` folder.

Example: `bin/turbo_rspec --exclude-pattern="*spec/system*" plugin/spec`

2. Running `bin/turbo_rspec plugin/*/spec/system` but we want to exclude
tests for a particular plugin.

Example: `bin/turbo_rspec --exclude-pattern="plugins/chat/*"
plugin/*/spec/system`
When adding people to a DM, the ones already in the channel weren’t
taken into account when checking whether the maximum limit was reached.
This patch adds a new shared example to be used as a smoke test in
plugins and themes.

A `skip_examples` argument is available to easily opt-out from a
category of tests.

Example:
```rb
RSpec.describe "Testing core features", type: :system do
  it_behaves_like "having working core features", skip_examples: %i[search login]
end
```
Some plugins are always enabled and don’t have a related site setting.
This patch takes this into account.
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.10.12 to 1.11.29.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](swc-project/swc@v1.10.12...v1.11.29)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.11.29
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 21, 2025
@github-actions

Copy link
Copy Markdown

PR body updated to plaintext for easier squash-merging. Original body content below:


Bumps @swc/core from 1.10.12 to 1.11.29.

Changelog

Sourced from @​swc/core's changelog.

[1.11.29] - 2025-05-21

Bug Fixes

  • (@​swc/types) Add transform.nativeClassProperties (#10418) (f3af44c)

  • (@​swc/types) Add resolveFully to BaseModuleConfig (#10426) (164cbaa)

  • (ci) Remove wasmer override (425eeb9)

  • (es/compat) Properly handle rest assignment in for-in/of head (#10489) (b9c0446)

  • (es/jest) Hoisting vars with names starting with mock (#10410) (a29eb29)

  • (es/jest) Revert #10410 (#10452) (bc756f8)

  • (es/minifier) Properly handle object shorthand syntax during compression (#10467) (bae4940)

  • (es/module) Handle __proto__ export name (#10420) (1b94c7a)

  • (es/optimization) Support decimal numbers in jsonify (#10424) (affdec2)

  • (es/react-compiler) Mark function components declared as a var interesting (#10437) (5eac076)

  • (es/renamer) Fix (broken) identifier preserving API (#10474) (06c64cf)

  • (ts/fast-dts) Emit readonly for Object getter prop (#10492) (6c03e20)

  • (ts/fast-dts) Align object getter/setter emit behavior with TypeScript (#10502) (78c754e)

Features

  • (common) Allow using build_sourcemap with multiple SourceMap (#10438) (2a07c8a)

... (truncated)

Commits
  • 8facaa9 chore: Publish 1.11.29 with swc_core v26.0.1
  • cf3096f chore: Update changelog
  • 24a69f2 chore: Publish 1.11.29-nightly-20250521.1 with swc_core v26.0.1
  • 9e372a5 chore: Publish crates with swc_core v26.0.1
  • de51be1 refactor(ecma/transform): cleanup rename analyzer (#10500)
  • 78c754e fix(ts/fast-dts): Align object getter/setter emit behavior with TypeScript (#...
  • f01d859 chore(ci): Fix ring build on aarch64 linux gnu (#10497)
  • 0f5d9c1 refactor(es/renamer): Inline get_unresolved (#10493)
  • 6c03e20 fix(ts/fast-dts): Emit readonly for Object getter prop (#10492)
  • d2468f1 chore: Drop unused crates (#10494)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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)

@dependabot @github

dependabot Bot commented on behalf of github May 1, 2026

Copy link
Copy Markdown
Author

A newer version of @​swc/core exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.