Skip to content

Commit

Permalink
Merge pull request #161 from rollup/sync-7c0b1f88
Browse files Browse the repository at this point in the history
docs(en): merge rollup/master into rollup-docs-cn/master @ 7c0b1f8
  • Loading branch information
waynzh authored Nov 22, 2024
2 parents 3ec09fe + 7b26e41 commit b768016
Show file tree
Hide file tree
Showing 29 changed files with 700 additions and 547 deletions.
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# rollup changelog

## 4.27.3

_2024-11-18_

### Bug Fixes

- Revert object property tree-shaking for now (#5736)

### Pull Requests

- [#5736](https://github.com/rollup/rollup/pull/5736): Revert object tree-shaking until some issues have been resolved (@lukastaegert)

## 4.27.2

_2024-11-15_

### Bug Fixes

- Ensure unused variables in patterns are always deconflicted if rendered (#5728)

### Pull Requests

- [#5728](https://github.com/rollup/rollup/pull/5728): Fix more variable deconflicting issues (@lukastaegert)

## 4.27.1

_2024-11-15_

### Bug Fixes

- Fix some situations where parameter declarations could put Rollup into an infinite loop (#5727)

### Pull Requests

- [#5727](https://github.com/rollup/rollup/pull/5727): Debug out-of-memory issues with Rollup v4.27.0 (@lukastaegert)

## 4.27.0

_2024-11-15_

### Features

- Tree-shake unused properties in object literals (#5420)

### Bug Fixes

- Change hash length limit to 21 to avoid inconsistent hash length (#5423)

### Pull Requests

- [#5420](https://github.com/rollup/rollup/pull/5420): feat: implement object tree-shaking (@TrickyPi, @lukastaegert)
- [#5723](https://github.com/rollup/rollup/pull/5723): Reduce max hash size to 21 (@lukastaegert)
- [#5724](https://github.com/rollup/rollup/pull/5724): fix(deps): update swc monorepo (major) (@renovate[bot])
- [#5725](https://github.com/rollup/rollup/pull/5725): chore(deps): lock file maintenance minor/patch updates (@renovate[bot])

## 4.26.0

_2024-11-13_
Expand Down
22 changes: 21 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI

# Licenses of bundled dependencies
The published Rollup artifact additionally contains code with the following licenses:
MIT, ISC
MIT, ISC, 0BSD

# Bundled dependencies:
## @jridgewell/sourcemap-codec
Expand Down Expand Up @@ -632,6 +632,26 @@ Repository: micromatch/to-regex-range
---------------------------------------

## tslib
License: 0BSD
By: Microsoft Corp.
Repository: https://github.com/Microsoft/tslib.git

> Copyright (c) Microsoft Corporation.
>
> Permission to use, copy, modify, and/or distribute this software for any
> purpose with or without fee is hereby granted.
>
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
> REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
> AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
> INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
> OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
> PERFORMANCE OF THIS SOFTWARE.
---------------------------------------

## yargs-parser
License: ISC
By: Ben Coe
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.26.0",
"version": "4.27.3",
"description": "Next-generation ES module bundler browser build",
"main": "dist/rollup.browser.js",
"module": "dist/es/rollup.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion docs/migration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Rollup 现在包含了自动安装(和删除)的原生代码,如果你的

面向浏览器的构建(NPM 上的 `@rollup/browser`)现在依赖于一个需要提供的 WASM 文件。如果你正在使用 Vite 的浏览器构建,你需要将 `"@rollup/browser"` 添加到 `optimizeDeps.exclude` 中,否则 `npm run dev` 将因为 `.wasm` 文件的无效路径而失败(请参阅 [vitejs #14609](https://github.com/vitejs/vite/issues/14609))。否则,它应该可以正常工作,无需任何特定的干预。

否则,一个明显的变化是 Rollup 现在在文件名中使用 url 安全的 base64 哈希,而不是旧的 base16 哈希。这提供了更多的哈希安全性,但意味着由于技术原因,哈希长度现在最多限制为 22 个字符。
另外,一个明显的变化是Rollup 现在在文件名中使用 URL 安全的 base64 哈希值,而不是旧的 base16 哈希值。这种方式提供了更高的哈希安全性,但由于技术原因,哈希长度现在最多限制为 21 个字符。

当打包 CLI 应用程序时,如果输出 [`format`](../configuration-options/index.md#output-format)`es``cjs`,Rollup 现在将自动保留入口文件中的 shebang 注释。以前,你需要通过插件添加注释。

Expand Down
Loading

0 comments on commit b768016

Please sign in to comment.