Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rollup/rollup into sync-f…
Browse files Browse the repository at this point in the history
…1169525
  • Loading branch information
docschina-bot committed Dec 20, 2024
2 parents 73a50ee + f116952 commit 5ea4fed
Show file tree
Hide file tree
Showing 164 changed files with 794 additions and 896 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# rollup changelog

## 4.29.0

_2024-12-20_

### Features

- Treat objects as truthy and always check second argument to better simplify logical expressions (#5763)

### Pull Requests

- [#5759](https://github.com/rollup/rollup/pull/5759): docs: add utf-8 encoding to JSON file reading (@chouchouji)
- [#5760](https://github.com/rollup/rollup/pull/5760): fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
- [#5763](https://github.com/rollup/rollup/pull/5763): fix: introduce UnknownFalsyValue for enhancing if statement tree-shaking (@TrickyPi)
- [#5766](https://github.com/rollup/rollup/pull/5766): chore(deps): update dependency @rollup/plugin-node-resolve to v16 (@renovate[bot])
- [#5767](https://github.com/rollup/rollup/pull/5767): fix(deps): lock file maintenance minor/patch updates (@renovate[bot])

## 4.28.1

_2024-12-06_
Expand Down
2 changes: 1 addition & 1 deletion browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rollup/browser",
"version": "4.28.1",
"version": "4.29.0",
"description": "Next-generation ES module bundler browser build",
"main": "dist/rollup.browser.js",
"module": "dist/es/rollup.browser.js",
Expand Down
847 changes: 390 additions & 457 deletions package-lock.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rollup",
"version": "4.28.1",
"version": "4.29.0",
"description": "Next-generation ES module bundler",
"main": "dist/rollup.js",
"module": "dist/es/rollup.js",
Expand Down Expand Up @@ -120,27 +120,27 @@
"devDependencies": {
"@codemirror/commands": "^6.7.1",
"@codemirror/lang-javascript": "^6.2.2",
"@codemirror/language": "^6.10.6",
"@codemirror/language": "^6.10.7",
"@codemirror/search": "^6.5.8",
"@codemirror/state": "^6.5.0",
"@codemirror/view": "^6.35.3",
"@eslint/js": "^9.16.0",
"@codemirror/view": "^6.36.0",
"@eslint/js": "^9.17.0",
"@inquirer/prompts": "^7.2.0",
"@jridgewell/sourcemap-codec": "^1.5.0",
"@mermaid-js/mermaid-cli": "^11.4.2",
"@napi-rs/cli": "^2.18.4",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-buble": "^1.0.3",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@rollup/pluginutils": "^5.1.3",
"@shikijs/vitepress-twoslash": "^1.24.1",
"@rollup/plugin-typescript": "^12.1.2",
"@rollup/pluginutils": "^5.1.4",
"@shikijs/vitepress-twoslash": "^1.24.2",
"@types/mocha": "^10.0.10",
"@types/node": "^18.19.67",
"@types/node": "^18.19.68",
"@types/semver": "^7.5.8",
"@types/yargs-parser": "^21.0.3",
"@vue/language-server": "^2.1.10",
Expand All @@ -157,7 +157,7 @@
"date-time": "^4.0.0",
"es5-shim": "^4.6.7",
"es6-shim": "^0.35.8",
"eslint": "^9.16.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-unicorn": "^56.0.1",
Expand All @@ -169,11 +169,11 @@
"globals": "^15.13.0",
"husky": "^9.1.7",
"is-reference": "^3.0.3",
"lint-staged": "^15.2.10",
"lint-staged": "^15.2.11",
"locate-character": "^3.0.0",
"magic-string": "^0.30.14",
"magic-string": "^0.30.17",
"mocha": "^11.0.1",
"nodemon": "^3.1.7",
"nodemon": "^3.1.9",
"npm-audit-resolver": "^3.0.0-RC.0",
"nyc": "^17.1.0",
"pinia": "^2.3.0",
Expand All @@ -194,7 +194,7 @@
"terser": "^5.37.0",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.0",
"typescript-eslint": "^8.18.1",
"vite": "^6.0.3",
"vitepress": "^1.5.0",
"vue": "^3.5.13",
Expand Down
20 changes: 10 additions & 10 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/parse_ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ swc_atoms = "3.0.0"
swc_compiler_base = "7.0.0"
swc_common = { version = "5.0.0", features = ["ahash", "parking_lot"] }
swc_ecma_ast = "5.0.0"
swc_ecma_parser = "6.0.0"
swc_ecma_parser = "6.0.1"
parking_lot = "0.12.3"
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/array_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_array_expression(&mut self, array_literal: &ArrayLit) {
let end_position = self.add_type_and_start(
&TYPE_ARRAY_EXPRESSION,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/array_pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_array_pattern(&mut self, array_pattern: &ArrayPat) {
let end_position = self.add_type_and_start(
&TYPE_ARRAY_PATTERN,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/arrow_function_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::convert_ast::converter::ast_constants::{
use crate::convert_ast::converter::{convert_annotation, AstConverter};
use crate::store_arrow_function_expression_flags;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_arrow_function_expression(&mut self, arrow_expression: &ArrowExpr) {
let end_position = self.add_type_and_start(
&TYPE_ARROW_FUNCTION_EXPRESSION,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/assignment_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::convert_ast::converter::string_constants::{
use crate::convert_ast::converter::AstConverter;
use crate::store_assignment_expression;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_assignment_expression(&mut self, assignment_expression: &AssignExpr) {
store_assignment_expression!(
self,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/assignment_pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_assignment_pattern_and_get_left_position(
&mut self,
span: &Span,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/await_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::AwaitExpr;
use crate::convert_ast::converter::AstConverter;
use crate::store_await_expression;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_await_expression(&mut self, await_expression: &AwaitExpr) {
store_await_expression!(
self,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/binary_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::convert_ast::converter::string_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_binary_expression(&mut self, binary_expression: &BinExpr) {
let end_position = self.add_type_and_start(
match binary_expression.op {
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/block_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_block_statement(
&mut self,
block_statement: &BlockStmt,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/break_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::BreakStmt;
use crate::convert_ast::converter::AstConverter;
use crate::store_break_statement;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_break_statement(&mut self, break_statement: &BreakStmt) {
store_break_statement!(
self,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/call_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::convert_ast::converter::ast_constants::{
use crate::convert_ast::converter::{convert_annotation, AstConverter};
use crate::store_call_expression_flags;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_call_expression(
&mut self,
span: &Span,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/catch_clause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_catch_clause(&mut self, catch_clause: &CatchClause) {
let end_position = self.add_type_and_start(
&TYPE_CATCH_CLAUSE,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/chain_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_chain_expression(
&mut self,
optional_chain_expression: &OptChainExpr,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/class_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_class_body(&mut self, class_members: &[ClassMember], start: u32, end: u32) {
let end_position =
self.add_type_and_explicit_start(&TYPE_CLASS_BODY, start, CLASS_BODY_RESERVED_BYTES);
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/class_declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::ClassDecl;
use crate::convert_ast::converter::ast_constants::TYPE_CLASS_DECLARATION;
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_class_declaration(&mut self, class_declaration: &ClassDecl) {
self.store_class_node(
&TYPE_CLASS_DECLARATION,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/class_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use swc_ecma_ast::ClassExpr;

use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_class_expression(
&mut self,
class_expression: &ClassExpr,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/conditional_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::CondExpr;
use crate::convert_ast::converter::AstConverter;
use crate::store_conditional_expression;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_conditional_expression(&mut self, conditional_expression: &CondExpr) {
store_conditional_expression!(
self,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/continue_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::ContinueStmt;
use crate::convert_ast::converter::AstConverter;
use crate::store_continue_statement;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_continue_statement(&mut self, continue_statement: &ContinueStmt) {
store_continue_statement!(
self,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/debugger_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::DebuggerStmt;
use crate::convert_ast::converter::AstConverter;
use crate::store_debugger_statement;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_debugger_statement(&mut self, debugger_statement: &DebuggerStmt) {
store_debugger_statement!(self, span => debugger_statement.span);
}
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/decorator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::Decorator;
use crate::convert_ast::converter::AstConverter;
use crate::store_decorator;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_decorator(&mut self, decorator: &Decorator) {
store_decorator!(self, span => decorator.span, expression=>[decorator.expr, convert_expression]);
}
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use swc_ecma_ast::ExprStmt;
use crate::convert_ast::converter::AstConverter;
use crate::store_directive;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_directive(&mut self, expression_statement: &ExprStmt, directive: &JsWord) {
store_directive!(
self,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/do_while_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::DoWhileStmt;
use crate::convert_ast::converter::AstConverter;
use crate::store_do_while_statement;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_do_while_statement(&mut self, do_while_statement: &DoWhileStmt) {
store_do_while_statement!(
self,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/empty_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_ecma_ast::EmptyStmt;
use crate::convert_ast::converter::AstConverter;
use crate::store_empty_statement;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_empty_statement(&mut self, empty_statement: &EmptyStmt) {
store_empty_statement!(self, span => empty_statement.span);
}
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/export_all_declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_export_all_declaration(
&mut self,
span: &Span,
Expand Down
2 changes: 1 addition & 1 deletion rust/parse_ast/src/ast_nodes/export_default_declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::convert_ast::converter::ast_constants::{
};
use crate::convert_ast::converter::AstConverter;

impl<'a> AstConverter<'a> {
impl AstConverter<'_> {
pub(crate) fn store_export_default_declaration(
&mut self,
span: &Span,
Expand Down
Loading

0 comments on commit 5ea4fed

Please sign in to comment.