Skip to content

chore(deps): update dependency pegjs to ^0.10.0 #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 19, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pegjs (source) ^0.9.0 -> ^0.10.0 age adoption passing confidence

Release Notes

pegjs/pegjs (pegjs)

v0.10.0: 0.10.0

Compare Source

Major Changes
  • Parsers can be generated in multiple module formats. The available
    formats are: CommonJS (the default), AMD, UMD, globals, and bare (not
    available from the command-line).

    The format can be specified using the format option of the peg.generate
    function or the --format option on the command-line.

    It is also possible to specify parser dependencies using the dependencies
    option of the peg.generate function or the --dependency/-d option on
    the command-line. This is mainly useful for the UMD format, where the
    dependencies are translated into both AMD dependencies and CommonJS
    require calls.

  • Browser version of PEG.js is now in the UMD format. This means it will try
    to detect AMD or Node.js/CommonJS module loader and define itself as a
    module. If no loader is found, it will export itself using a global
    variable.

  • API polishing. The peg.buildParser function was renamed to
    peg.generate. The global variable the browser version of PEG.js is
    available in when no loader is detected was renamed from PEG to peg.

  • CLI improvements. There is new --output/-o command-line option which
    allows to specify the output file. The old way of specifying the output file
    using a second argument was removed. To make room for the new -o option
    the old one (a shortcut for --optimize) was renamed to -O. All these
    changes make PEG.js conform to traditional compiler command-line interface.

    It is now also possible to use - as a file name on the command-line (with
    the usual meaning of standard input/output).

  • Improved error messages. Both messages produced by PEG.js and generated
    parsers were improved.

  • Duplicate rule definitions are reported as errors.

  • Duplicate labels are reported as errors.

Minor Changes
  • Exposed the AST node visitor builder as peg.compiler.visitor. This is
    useful mainly for plugins which manipulate the AST.
  • Exposed the function which builds messages of exceptions produced by
    generated parsers as SyntaxError.buildMessage. This is useful mainly for
    customizing these error messages.
  • The error and expected functions now accept an optional location
    parameter. This allows to customize the location in which the resulting
    syntax error is reported.
  • Refactored expectations reported in the expected property of exceptions
    produced by generated parsers. They are no longer de-duplicated and sorted,
    their format changed to be more machine-readable, and they no longer contain
    human-readable descriptions.
  • The found property of exceptions produced by the error function is now
    set to null.
  • Removed access to the parser object in parser code via the parser
    variable.
  • Made handling of optional parameters consistent with ES 2015. Specifically,
    passing undefined as a parameter value is now equivalent to not passing
    the parameter at all.
  • Renamed several compiler passes.
  • Generated parsers no longer consider \r, \u2028, and \u2029 as
    newlines (only \n and \r\n).
  • Simplified the arithmetics example grammar.
  • Switched from first/rest to head/tail in PEG.js grammar and example
    grammars.
  • Started using ESLint instead of JSHint and fixed various problems it found.
  • Added contribution
    guidelines
    .
  • Removed support for io.js.
Bug Fixes
  • Fixed bin/pegjs so that invoking it with one non-option argument which is
    an extension-less file doesn’t cause that file to be overwritten.
  • Fixed label scoping so that labels in expressions like (a:"a") or (a:"a" b:"b" c:"c") aren’t visible from the outside.
  • Fixed escaping of generated JavaScript strings & regexps to also escape DEL
    (U+007F).
  • Fixed the JSON example grammar to correctly handle characters with code
    points above U+10FF in strings.
  • Fixed multiple compatibility issues of tools/impact on OS X.
  • Fixed slow deduplication of expectation descriptions.

Complete set of changes


Configuration

📅 Schedule: Branch creation - "* 5 */14 * *" in timezone Europe/Stockholm, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 force-pushed the renovate/pegjs-0.x branch from f1ff736 to 61a14cb Compare June 16, 2022 23:07
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from 61a14cb to 6c2940c Compare August 9, 2022 00:49
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from 6c2940c to a63988f Compare October 18, 2022 00:47
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from a63988f to 4cb880f Compare May 11, 2023 22:40
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from 4cb880f to 7450776 Compare May 30, 2023 10:53
Repository owner deleted a comment from socket-security bot Jul 25, 2023
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from 7450776 to b9b991f Compare July 31, 2023 22:38
@renovate renovate bot changed the title Update dependency pegjs to ^0.10.0 chore(deps): update dependency pegjs to ^0.10.0 Jun 7, 2024
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from b9b991f to 76038a0 Compare June 7, 2024 12:39
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from 76038a0 to 405928d Compare June 14, 2024 20:50
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from 405928d to ce3c817 Compare August 15, 2024 03:31
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from ce3c817 to ef708e4 Compare September 15, 2024 03:03
@renovate renovate bot force-pushed the renovate/pegjs-0.x branch from ef708e4 to 5969999 Compare March 15, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants