Visitar URL original
chore(deps): update dependency esbuild to v0.25.2 by renovate[bot] · Pull Request #203 · Kesin11/actions-timeline · GitHub
Skip to content

chore(deps): update dependency esbuild to v0.25.2 - #203

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/esbuild-0.x
Apr 5, 2025
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/esbuild-0.x

Conversation

@renovate

@renovate renovate Bot commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild 0.25.1 -> 0.25.2 age adoption passing confidence

Release Notes

evanw/esbuild (esbuild)

v0.25.2

Compare Source

  • Support flags in regular expressions for the API (#​4121)

    The JavaScript plugin API for esbuild takes JavaScript regular expression objects for the filter option. Internally these are translated into Go regular expressions. However, this translation previously ignored the flags property of the regular expression. With this release, esbuild will now translate JavaScript regular expression flags into Go regular expression flags. Specifically the JavaScript regular expression /\.[jt]sx?$/i is turned into the Go regular expression `(?i)\.[jt]sx?$` internally inside of esbuild's API. This should make it possible to use JavaScript regular expressions with the i flag. Note that JavaScript and Go don't support all of the same regular expression features, so this mapping is only approximate.

  • Fix node-specific annotations for string literal export names (#​4100)

    When node instantiates a CommonJS module, it scans the AST to look for names to expose via ESM named exports. This is a heuristic that looks for certain patterns such as exports.NAME = ... or module.exports = { ... }. This behavior is used by esbuild to "annotate" CommonJS code that was converted from ESM with the original ESM export names. For example, when converting the file export let foo, bar from ESM to CommonJS, esbuild appends this to the end of the file:

    // Annotate the CommonJS export names for ESM import in node:
    0 && (module.exports = {
      bar,
      foo
    });

    However, this feature previously didn't work correctly for export names that are not valid identifiers, which can be constructed using string literal export names. The generated code contained a syntax error. That problem is fixed in this release:

    // Original code
    let foo
    export { foo as "foo!" }
    
    // Old output (with --format=cjs --platform=node)
    ...
    0 && (module.exports = {
      "foo!"
    });
    
    // New output (with --format=cjs --platform=node)
    ...
    0 && (module.exports = {
      "foo!": null
    });
  • Basic support for index source maps (#​3439, #​4109)

    The source map specification has an optional mode called index source maps that makes it easier for tools to create an aggregate JavaScript file by concatenating many smaller JavaScript files with source maps, and then generate an aggregate source map by simply providing the original source maps along with some offset information. My understanding is that this is rarely used in practice. I'm only aware of two uses of it in the wild: ClojureScript and Turbopack.

    This release provides basic support for indexed source maps. However, the implementation has not been tested on a real app (just on very simple test input). If you are using index source maps in a real app, please try this out and report back if anything isn't working for you.

    Note that this is also not a complete implementation. For example, index source maps technically allows nesting source maps to an arbitrary depth, while esbuild's implementation in this release only supports a single level of nesting. It's unclear whether supporting more than one level of nesting is important or not given the lack of available test cases.

    This feature was contributed by @​clyfish.


Configuration

📅 Schedule: Branch creation - "* * * * 0,6" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the renovate label Apr 4, 2025
@github-actions

This comment has been minimized.

@renovate
renovate Bot force-pushed the renovate/esbuild-0.x branch from 1962c19 to 69a6724 Compare April 4, 2025 21:31
@github-actions

This comment has been minimized.

@renovate
renovate Bot force-pushed the renovate/esbuild-0.x branch from 69a6724 to af26a60 Compare April 5, 2025 01:21
@github-actions

github-actions Bot commented Apr 5, 2025

Copy link
Copy Markdown

dist_size

main (979ada3) #203 (0ee53fa) +/-
main.js 0.4KB 0.4KB 0KB
post.js 1574.3KB 1574.3KB 0KB

Reported by octocov

@renovate
renovate Bot merged commit f0af65b into main Apr 5, 2025
@renovate
renovate Bot deleted the renovate/esbuild-0.x branch April 5, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants