Skip to content

Conversation

@kuttysoftmy
Copy link
Owner

@kuttysoftmy kuttysoftmy commented Dec 28, 2024

snyk-top-banner

Snyk has created this PR to upgrade acorn from 8.7.1 to 8.14.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 13 versions ahead of your current version.

  • The recommended version was released 2 months ago.

Release notes
Package name: acorn
  • 8.14.0 - 2024-10-27

    New features

    Support ES2025 import attributes.

    Support ES2025 RegExp modifiers.

    Bug fixes

    Support some missing Unicode properties.

  • 8.13.0 - 2024-10-16

    New features

    Upgrade to Unicode 16.0.

  • 8.12.1 - 2024-07-03

    Bug fixes

    Fix a regression that caused Acorn to no longer run on Node versions <8.10.

  • 8.12.0 - 2024-06-14

    New features

    Support ES2025 duplicate capture group names in regular expressions.

    Bug fixes

    Include VariableDeclarator in the AnyNode type so that walker objects can refer to it without getting a type error.

    Properly raise a parse error for invalid for/of statements using async as binding name.

    Properly recognize "use strict" when preceded by a string with an escaped newline.

    Mark the Parser constructor as protected, not private, so plugins can extend it without type errors.

    Fix a bug where some invalid delete expressions were let through when the operand was parenthesized and preserveParens was enabled.

    Properly normalize line endings in raw strings of invalid template tokens.

    Properly track line numbers for escaped newlines in strings.

    Fix a bug that broke line number accounting after a template literal with invalid escape sequences.

  • 8.11.3 - 2023-12-29

    Bug fixes

    Add Function and Class to the AggregateType type, so that they can be used in walkers without raising a type error.

    Make sure onToken get an import keyword token when parsing import.meta.

    Fix a bug where .loc.start could be undefined for new.target meta nodes.

  • 8.11.2 - 2023-10-27

    Bug fixes

    Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.

  • 8.11.1 - 2023-10-26

    Bug fixes

    Fix a regression where onToken would receive 'name' tokens for 'new' keyword tokens.

  • 8.11.0 - 2023-10-26

    Bug fixes

    Fix an issue where tokenizing (without parsing) an object literal with a property named class or function could, in some circumstance, put the tokenizer into an invalid state.

    Fix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression.

    New features

    Upgrade to Unicode 15.1.

    Use a set of new, much more precise, TypeScript types.

  • 8.10.0 - 2023-07-05

    New features

    Add a checkPrivateFields option that disables strict checking of private property use.

  • 8.9.0 - 2023-06-16

    Bug fixes

    Forbid dynamic import after new, even when part of a member expression.

    New features

    Add Unicode properties for ES2023.

    Add support for the v flag to regular expressions.

  • 8.8.2 - 2023-01-23
  • 8.8.1 - 2022-10-24
  • 8.8.0 - 2022-07-21
  • 8.7.1 - 2022-04-26
from acorn GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Enhancements:

  • Upgrade the Acorn dependency to version 8.14.0, which includes support for ES2025 import attributes and RegExp modifiers, along with various bug fixes.

Snyk has created this PR to upgrade acorn from 8.7.1 to 8.14.0.

See this package in npm:
acorn

See this project in Snyk:
https://app.snyk.io/org/softgamingkutty/project/36b1c85f-6d0c-4530-9c27-c809b7f2758d?utm_source=github&utm_medium=referral&page=upgrade-pr
@sourcery-ai
Copy link

sourcery-ai bot commented Dec 28, 2024

Reviewer's Guide by Sourcery

This PR upgrades the acorn npm package from version 8.7.1 to 8.14.0. This addresses several CVEs and updates the Unicode version to 16. Several bug fixes related to private class fields and regular expression parsing are included. Support for ES2025 features such as import attributes and RegExp modifiers has also been added.

State diagram for acorn package version upgrade

stateDiagram-v2
    [*] --> v8.7.1: Initial State
    v8.7.1 --> v8.14.0: Upgrade
    state v8.14.0 {
        state "New Features" as nf
        state "Bug Fixes" as bf
        nf: ES2025 Import Attributes
        nf: ES2025 RegExp Modifiers
        nf: Unicode 16.0 Support
        bf: Fixed Unicode Properties
        bf: Private Fields Handling
        bf: RegExp Parsing
    }
    v8.14.0 --> [*]
Loading

File-Level Changes

Change Details Files
Upgrade acorn package
  • Updated the acorn dependency version from 8.7.1 to 8.14.0 in package.json.
  • Regenerated package-lock.json to reflect the updated dependency and sub-dependencies of acorn.
package.json
package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!

@gitauto-ai gitauto-ai bot added the gitauto label Feb 7, 2025
@coderabbitai
Copy link

coderabbitai bot commented Feb 7, 2025

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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.

3 participants