Update dependency peggy to v4 (main) (#212280)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [peggy](https://peggyjs.org/)
([source](https://redirect.github.com/peggyjs/peggy)) | devDependencies
| major | [`^1.2.0` ->
`^4.2.0`](https://renovatebot.com/diffs/npm/peggy/1.2.0/4.2.0) |

---

### Release Notes

<details>
<summary>peggyjs/peggy (peggy)</summary>

###
[`v4.2.0`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#420)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v4.1.1...v4.2.0)

Released: 2024-11-19

##### New features

- [#&#8203;568](https://redirect.github.com/peggyjs/peggy/pull/568)
Upgrading to TypeScript 5.6 allowed for generating `parser.d.ts`, which
should may help people that use Peggy programmatically in nonstandard
ways.

##### Bug fixes

- [#&#8203;567](https://redirect.github.com/peggyjs/peggy/issues/567)
Load config files and plugins correctly on Windows by using file: URIs
in import().

##### Documentation

- [#&#8203;566](https://redirect.github.com/peggyjs/peggy/pull/566)
Slight tweaks to document generation.

###
[`v4.1.1`](https://redirect.github.com/peggyjs/peggy/releases/tag/v4.1.1)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v4.0.3...v4.1.1)

v4.1.0 did not actually get published due to a workflow issue that
should
be sorted out now.

##### New features

- [#&#8203;477](https://redirect.github.com/peggyjs/peggy/issues/477)
Option to output .d.ts files next to .js from CLI.
- [#&#8203;530](https://redirect.github.com/peggyjs/peggy/issues/531)
Allow es6 plugins from CLI
- [#&#8203;532](https://redirect.github.com/peggyjs/peggy/issues/532)
Allow es6 options files from the CLI

##### Bug fixes

- [#&#8203;531](https://redirect.github.com/peggyjs/peggy/issues/531)
Clean up rollup hacks from CLI code.
- [#&#8203;514](https://redirect.github.com/peggyjs/peggy/issues/514)
Allow execution of the `peggy` binary on Windows by handling node
runtime flags manually, executing a sub-instance of node to actually run
`peggy`.
- [#&#8203;538](https://redirect.github.com/peggyjs/peggy/pull/509)
Fixed error in TS types for `peg$maxFailExpected` and `peg$maxFailPos`.
- [#&#8203;551](https://redirect.github.com/peggyjs/peggy/pull/551)
Moved to package-extract instead of a custom script for version file
generation.

###
[`v4.0.3`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#403)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v4.0.2...v4.0.3)

Released: 2024-06-19

##### New features

- [#&#8203;509](https://redirect.github.com/peggyjs/peggy/pull/509) Add
and implement ES6 export button

##### Bug fixes

- [#&#8203;493](https://redirect.github.com/peggyjs/peggy/issues/493)
Allow use of an empty
    array, null, or undefined as allowedStartRules option
- [#&#8203;505](https://redirect.github.com/peggyjs/peggy/pull/505) Fix
vscode-eslint settings
    to work with eslint flat config
- [#&#8203;507](https://redirect.github.com/peggyjs/peggy/pull/507)
Remove stray semicolon in CSS
- [#&#8203;508](https://redirect.github.com/peggyjs/peggy/pull/508) Fix
broken text input in
    web version
- [#&#8203;512](https://redirect.github.com/peggyjs/peggy/issues/512)
Add "StartRules" to peg.d.ts
- [#&#8203;513](https://redirect.github.com/peggyjs/peggy/issues/513)
Allow whitespace between
    plucked word and its pattern.
- [#&#8203;520](https://redirect.github.com/peggyjs/peggy/issues/520)
Grammar with token "constructor" fails to generate
- [#&#8203;522](https://redirect.github.com/peggyjs/peggy/issues/522)
Switched from puppeteer
    to playwright for web tests, and added them to CI.

##### Documentation

- [#&#8203;506](https://redirect.github.com/peggyjs/peggy/pull/506)
Added END OF INPUT (`!.`).

###
[`v4.0.2`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#402)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v4.0.1...v4.0.2)

Released: 2024-02-26

##### Bug fixes

- [#&#8203;490](https://redirect.github.com/peggyjs/peggy/issues/490)
Throw error when imports are used in unsupported formats. Supported
formats are now only "es" and "commonjs".
- [#&#8203;494](https://redirect.github.com/peggyjs/peggy/pull/494)
Updated docs to make `--allowedRules *` more clear
- [#&#8203;495](https://redirect.github.com/peggyjs/peggy/issues/495)
from-mem inadvertantly
made the minimum supported node version v20.8. Updated to latest
from-mem.

###
[`v4.0.1`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#401)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v4.0.0...v4.0.1)

Released: 2024-02-23

##### Bug fixes

- [#&#8203;478](https://redirect.github.com/peggyjs/peggy/issues/478)
Add "npx" to some doc
    examples.
-   [#&#8203;479](https://redirect.github.com/peggyjs/peggy/issues/479)
    Refactor `cli/fromMem.js` into separate project
    [from-mem](https://redirect.github.com/peggyjs/from-mem/).
- [#&#8203;481](https://redirect.github.com/peggyjs/peggy/issues/481)
Add CLI test for
    \--library
- [#&#8203;483](https://redirect.github.com/peggyjs/peggy/issues/483)
fix errors in
    typescript file.

###
[`v4.0.0`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#400)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v3.0.2...v4.0.0)

Released: 2024-02-13

##### Major Changes

- [#&#8203;379](https://redirect.github.com/peggyjs/peggy/issues/379)
Fix infinite recursion
issue by moving reportInfiniteRecursion to the new prepare pass, and
having
it fail after finding the first issue. This will require plugin authors
    to ensure that reportInfiniteRecursion is in the new pass correctly.
- [#&#8203;417](https://redirect.github.com/peggyjs/peggy/pull/417)
BREAKING: change to AST to
allow topLevelInitializer and initializer to be arrays, in support of
multi-file inputs. This will require plugin updates. The CLI and API now
take multiple files as input, where the first file is your main library,
and
subsequent files consist of a library of other rules. The CLI can take
file
names of the form `npm:<package-name>/<filename>` to load library rules
from
an NPM package that is installed relative to the previous non-npm file
name,
    or to the current working directory if this is the first file name.
- [#&#8203;420](https://redirect.github.com/peggyjs/peggy/pull/420)
BREAKING: Node v16+ is now
required for running the CLI or using Peggy as a library. Generated code
    still targets older runtimes.
- [#&#8203;456](https://redirect.github.com/peggyjs/peggy/pull/456)
BREAKING: Allow imports
from external compiled grammars inside a source grammar, using `import
{rule} from "external.js"`. Note that this syntax will generate either
`import` or `require` in the JavaScript output, depending on the value
of
    the `format` parameter.  This will need explicit support from
    plugins, with a few new AST node types and a few visitor changes.
- [#&#8203;463](https://redirect.github.com/peggyjs/peggy/issues/463)
Drop support for
Internet Explorer. Move to eslint flat configs in order to lint
minimized
    browser code for compatibility with
    `defaults, maintained node versions, not op_mini all`.

##### Minor Changes

- [#&#8203;400](https://redirect.github.com/peggyjs/peggy/pull/400) Use
`@generated` in generated
    code
- [#&#8203;404](https://redirect.github.com/peggyjs/peggy/issues/404)
Add support for -w/--watch
    to the command line interface.
- [#&#8203;415](https://redirect.github.com/peggyjs/peggy/issues/415)
Added `browser` key to package.json, pointing to Webpack output.
- [#&#8203;420](https://redirect.github.com/peggyjs/peggy/pull/420)
Updated dependencies to
    avoid audit warnings.
- [#&#8203;425](https://redirect.github.com/peggyjs/peggy/pull/425) Add
a pass to simplify single-character choices
- [#&#8203;427](https://redirect.github.com/peggyjs/peggy/pull/427)
Avoid double extraction of
    substrings in various MATCH\_ bytecodes
- [#&#8203;430](https://redirect.github.com/peggyjs/peggy/pull/430) Make
generate-js.js ts clean
- [#&#8203;432](https://redirect.github.com/peggyjs/peggy/pull/432) Add
peggy.code-workspace
- [#&#8203;435](https://redirect.github.com/peggyjs/peggy/pull/435)
Setup tsconfig to detect use of library functions from es6 or later
- [#&#8203;436](https://redirect.github.com/peggyjs/peggy/pull/436) Get
rid of tsd
- [#&#8203;437](https://redirect.github.com/peggyjs/peggy/pull/437)
Better type checking for visitor
- [#&#8203;438](https://redirect.github.com/peggyjs/peggy/pull/438) Make
test build deterministic
- [#&#8203;439](https://redirect.github.com/peggyjs/peggy/pull/439) Make
peg$computePosDetails a little faster
- [#&#8203;440](https://redirect.github.com/peggyjs/peggy/issues/440)
Create directories for
    output and source-map if they do not exist, rather than erroring.
- [#&#8203;446](https://redirect.github.com/peggyjs/peggy/pull/446) Add
a right-associative `ExponentiationExpression` rule (operator `**`) to
`javascript.pegjs` example grammar.
- [#&#8203;451](https://redirect.github.com/peggyjs/peggy/pull/451) Make
stack.js ts clean
- [#&#8203;452](https://redirect.github.com/peggyjs/peggy/pull/452)
Fixes to prepare generate-bytecode.js for ts-check
- [#&#8203;453](https://redirect.github.com/peggyjs/peggy/pull/453) Make
generate-bytecode.js ts-clean
- [#&#8203;460](https://redirect.github.com/peggyjs/peggy/pull/453)
Allow `-t` and `-T` testing
    from the CLI with `--format es`.

##### Bug Fixes

- [#&#8203;405](https://redirect.github.com/peggyjs/peggy/pull/405) Doc
example doesn't correspond to code example. From
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;415](https://redirect.github.com/peggyjs/peggy/issues/415)
Make docs match reality with `import`.
- [#&#8203;426](https://redirect.github.com/peggyjs/peggy/pull/426) Fix
typo in XML example.
- [#&#8203;434](https://redirect.github.com/peggyjs/peggy/issues/434)
Fixed bad example in docs.
- [#&#8203;445](https://redirect.github.com/peggyjs/peggy/issues/415)
Fix indentation in `examples/javascript.pegjs`.
- [#&#8203;450](https://redirect.github.com/peggyjs/peggy/issues/450)
Fixed misleading documentation.
- [#&#8203;466](https://redirect.github.com/peggyjs/peggy/issues/466)
Add docs for developers.

###
[`v3.0.2`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#302)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v3.0.1...v3.0.2)

Released: 2023-03-21

##### Minor Changes

- [#&#8203;392](https://redirect.github.com/peggyjs/peggy/issues/392)
Removed the --optimize
command line argument, which has been invalid since v1.2. From
[@&#8203;hildjj](https://redirect.github.com/hildjj).

##### Bug Fixes

- [#&#8203;371](https://redirect.github.com/peggyjs/peggy/issues/371)
Error using online Peggy - "Can't find variable: util". From
[@&#8203;hildjj](https://redirect.github.com/hildjj).
- [#&#8203;374](https://redirect.github.com/peggyjs/peggy/issues/374)
CLI throws exception
on grammar errors. From
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;381](https://redirect.github.com/peggyjs/peggy/issues/381)
Repetitions with code blocks
for min or max not handling non-integer returns correctly. From
[@&#8203;hildjj](https://redirect.github.com/hildjj).
- [#&#8203;382](https://redirect.github.com/peggyjs/peggy/pull/382)
Update grammarSource
documentation. From
[@&#8203;AndrewRayCode](https://redirect.github.com/AndrewRayCode).
- [#&#8203;384](https://redirect.github.com/peggyjs/peggy/issues/384)
Improve the error.format()
documentation. From
[@&#8203;AndrewRayCode](https://redirect.github.com/AndrewRayCode).
- [#&#8203;386](https://redirect.github.com/peggyjs/peggy/issues/386)
Ensure '\*' as
allowed-start-rule is documented for CLI. From
[@&#8203;hildjj](https://redirect.github.com/hildjj).

###
[`v3.0.1`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#301)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v3.0.0...v3.0.1)

Released: 2022-03-05

##### Minor Changes

- [#&#8203;329](https://redirect.github.com/peggyjs/peggy/issues/329)
Allow plugin options in
generate. This change loosens type checking strictness to allow for
options
unknown to Peggy, but used by plugins such as ts-pegjs. From
[@&#8203;hildjj](https://redirect.github.com/hildjj).

##### Bug Fixes

- [#&#8203;329](https://redirect.github.com/peggyjs/peggy/issues/329)
Allow type definition for ParserBuildOptions to include plugin options.
From [@&#8203;hildjj](https://redirect.github.com/hildjj).
- [#&#8203;346](https://redirect.github.com/peggyjs/peggy/issues/346)
Allow extra semicolons
between rules. From
[@&#8203;hildjj](https://redirect.github.com/hildjj).
- [#&#8203;347](https://redirect.github.com/peggyjs/peggy/issues/347)
Disallow '$' as an initial
character in identifiers. This is not a breaking change because no
grammar
could have successfully used these in the past. From
[@&#8203;hildjj](https://redirect.github.com/hildjj).
- [#&#8203;354](https://redirect.github.com/peggyjs/peggy/pull/354)
Various minor nits in the
docs, including indentation and ensuring that the CNAME file is correct.
- [#&#8203;357](https://redirect.github.com/peggyjs/peggy/issues/357)
Fix infinite recursion
possibility in repetition delimeters. From
[@&#8203;hildjj](https://redirect.github.com/hildjj) and
[@&#8203;Mingun](https://redirect.github.com/Mingun).
- [#&#8203;359](https://redirect.github.com/peggyjs/peggy/issues/359) Do
not treat as many
words as reserved. Clarify the documentation about identifiers. Ensure
that it is more clear that the target language being generated
determines
what words are reserved. Clarify that reserved word checking is only
done for labels. From [@&#8203;nene](https://redirect.github.com/nene).
- [#&#8203;364](https://redirect.github.com/peggyjs/peggy/issues/364)
Fix passing an incorrect
external label to the expression inside the `repeated` node. From
[@&#8203;Mingun](https://redirect.github.com/Mingun).

###
[`v3.0.0`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#300)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v2.0.1...v3.0.0)

Released: 2023-02-21

##### Major Changes

- [#&#8203;280](https://redirect.github.com/peggyjs/peggy/issues/280)
Add inline examples to
the documentation, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;240](https://redirect.github.com/peggyjs/peggy/issues/240)
Generate SourceNodes for
    bytecode, from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;338](https://redirect.github.com/peggyjs/peggy/pull/338)
BREAKING CHANGE. Update
dependencies, causing minimum supported version of node.js to move to
14.
Generated grammar source should still work on older node versions and
some
older browsers, but testing is currently manual for those. from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;291](https://redirect.github.com/peggyjs/peggy/pull/291): Add
support for
repetition operator `expression|min .. max, delimiter|`, from
[@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;339](https://redirect.github.com/peggyjs/peggy/pull/339):
BREAKING CHANGE. Updated
the list of JavaScript reserved words. This will break existing grammars
that use any of the new words in their rule or label names. from
[@&#8203;hildjj](https://redirect.github.com/hildjj)

Important information for plug-in authors: PR
[#&#8203;291](https://redirect.github.com/peggyjs/peggy/issues/291)
added 4 new opcodes to the bytecode:

-   `IF_LT`
-   `IF_GE`
-   `IF_LT_DYNAMIC`
-   `IF_GE_DYNAMIC`

and added a new AST node and a visitor method `repeated`. Do not forget
to update your plug-ins.

Important information for grammar authors: the following words, which
used to
be valid identifiers for rules and labels, are now treated as JavaScript
reserved words, and will cause errors at compile time if you are using
them:

-   abstract
-   arguments
-   as
-   async
-   boolean
-   byte
-   char
-   double
-   eval
-   final
-   float
-   from
-   get
-   goto
-   int
-   long
-   native
-   of
-   set
-   short
-   synchronized
-   throws
-   transient
-   volatile

##### Minor Changes

- [#&#8203;274](https://redirect.github.com/peggyjs/peggy/issues/274)
`"*"` is now a valid `allowedStartRule`, which means all rules are
allowed, from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;229](https://redirect.github.com/peggyjs/peggy/issues/229)
new CLI option
`-S <rule>` or `--start-rule <rule>` to specify the start rule when
testing,
    from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;236](https://redirect.github.com/peggyjs/peggy/issues/236)
Website: show line numbers
in parser input textarea, from
[@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;280](https://redirect.github.com/peggyjs/peggy/issues/280)
new output type
`source-with-inline-map`, which generates source text with an inline
map,
    from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;285](https://redirect.github.com/peggyjs/peggy/issues/285)
Require that a non-empty
string be given as a grammarSource if you are generating a source map,
from
    [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;206](https://redirect.github.com/peggyjs/peggy/pull/206): New
output type `ast` and
an `--ast` flag for the CLI to get an internal grammar AST for
investigation
(can be useful for plugin writers), from
[@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;294](https://redirect.github.com/peggyjs/peggy/pull/294)
Website: show errors in the
    editors, from [@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;297](https://redirect.github.com/peggyjs/peggy/pull/297)
Website: add Discord widget,
    from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;299](https://redirect.github.com/peggyjs/peggy/issues/299)
Add example grammar for a
[SemVer.org](https://semver.org) semantic version string, from
[@&#8203;dselman](https://redirect.github.com/dselman)
- [#&#8203;307](https://redirect.github.com/peggyjs/peggy/issues/307)
Allow grammars to have
relative offsets into their source files (e.g. if embedded in another
doc),
    from [@&#8203;hildjj](https://redirect.github.com/hildjj).
- [#&#8203;308](https://redirect.github.com/peggyjs/peggy/pull/308) Add
support for reading test
data from stdin using `-T -`, from
[@&#8203;hildjj](https://redirect.github.com/hildjj).
- [#&#8203;313](https://redirect.github.com/peggyjs/peggy/pull/313)
Create the website using
eleventy, from
[@&#8203;camcherry](https://redirect.github.com/camcherry)

##### Bug Fixes

- [#&#8203;283](https://redirect.github.com/peggyjs/peggy/issues/283)
Fix incorrect type
information for DiagnosticCallback, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;287](https://redirect.github.com/peggyjs/peggy/issues/287)
Allow large outputs
to be received without blocking on the CLI tests, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)

###
[`v2.0.1`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#201)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v2.0.0...v2.0.1)

Released: 2022-01-01

##### Major Changes

-   None

##### Minor Changes

- [#&#8203;261](https://redirect.github.com/peggyjs/peggy/pull/261):
Remove documentation from
README.md, instead linking to the HTML documentation. HTML documentation
on
<https://peggyjs.org> is now served from the `docs` branch, so that it
won't
update as we change the `main` branch. `main` must be merged onto `docs`
as
    a part of the release process going forward.
- [#&#8203;266](https://redirect.github.com/peggyjs/peggy/issues/266):
Expose the private
field `problems` in the `Session` class, from
[@&#8203;hildjj](https://redirect.github.com/hildjj).

##### Bug Fixes

- [#&#8203;263](https://redirect.github.com/peggyjs/peggy/issues/263):
Broken link to unpkg.
This bug was a symptom of a relatively bad issue in the 2.0.0 release,
where
the web version of peggy was put in the wrong place, and therefore not
tested in the release process. From
[@&#8203;hildjj](https://redirect.github.com/hildjj).

###
[`v2.0.0`](https://redirect.github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#200)

[Compare
Source](https://redirect.github.com/peggyjs/peggy/compare/v1.2.0...v2.0.0)

Released: 2022-05-28

##### Major Changes

- [#&#8203;163](https://redirect.github.com/peggyjs/peggy/pull/163): Add
support for
generating source maps, from
[@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;160](https://redirect.github.com/peggyjs/peggy/pull/160):
Introduce an API for
reporting errors, warnings and information messages from passes. New API
allows reporting several diagnostics at once with intermediate results
checking after each compilation stage, from
[@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;218](https://redirect.github.com/peggyjs/peggy/pull/218): Add
a `sourceMappingURL`
to the generated code, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;248](https://redirect.github.com/peggyjs/peggy/pull/248):
Remove support for
Node.js version 10. When updating dependencies, too many of the tools we
use no longer work on the Node 10, which went out of security
maintenance
more than a year ago. Added support for Node.js version 18, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;251](https://redirect.github.com/peggyjs/peggy/pull/251):
Make `commander` and
`source-map-generator` full dependencies. These are not needed for the
pre-packaged web build, but will be used by Node or people that are
doing
their own packaging for the web, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)

##### Minor Changes

- [#&#8203;167](https://redirect.github.com/peggyjs/peggy/pull/167): New
CLI, from [@&#8203;hildjj](https://redirect.github.com/hildjj)
    -   Backward compatible with the previous
- New -t/--test and -T/--testfile flags to directly test the generated
grammar
- [#&#8203;169](https://redirect.github.com/peggyjs/peggy/issues/169):
Expose string escape
functions, `stringEscape()` and `regexpClassEscape()`, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;175](https://redirect.github.com/peggyjs/peggy/pull/175):
Check allowedStartRules
for validity, from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;185](https://redirect.github.com/peggyjs/peggy/pull/185):
Updated eslint rules,
    from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;196](https://redirect.github.com/peggyjs/peggy/pull/196): Add
example grammars for
XML and source-mapping, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;204](https://redirect.github.com/peggyjs/peggy/pull/204):
Increase coverage for the
    tests, from [@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;210](https://redirect.github.com/peggyjs/peggy/pull/210):
Refactor CLI testing,
    from [@&#8203;hildjj](https://redirect.github.com/hildjj)

##### Bug fixes

- [#&#8203;164](https://redirect.github.com/peggyjs/peggy/pull/164): Fix
some errors in the
typescript definitions, from
[@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;170](https://redirect.github.com/peggyjs/peggy/issues/170):
Add
missing argument in function call, from
[@&#8203;darlanalves](https://redirect.github.com/darlanalves)
- [#&#8203;182](https://redirect.github.com/peggyjs/peggy/issues/182):
Fix typo in
documentation, from
[@&#8203;zargold](https://redirect.github.com/zargold)
- [#&#8203;197](https://redirect.github.com/peggyjs/peggy/pull/197): Fix
a regression of
redundant commas in the character classes in the error messages,
introduced
in
[`fad4ab7`](fad4ab74d1),
from [@&#8203;Mingun](https://redirect.github.com/Mingun)
- [#&#8203;198](https://redirect.github.com/peggyjs/peggy/pull/198):
Make all build scripts
run on Windows, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;199](https://redirect.github.com/peggyjs/peggy/pull/199):
Test web version locally,
using puppeteer, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
-
[#&#8203;211](https://redirect.github.com/peggyjs/peggy/pull/211):Command-line
-t requires
from wrong directory, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;212](https://redirect.github.com/peggyjs/peggy/pull/212):
Parse errors with zero
length give badly-formatted errors, from
[@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;214](https://redirect.github.com/peggyjs/peggy/pull/214):
Failing tests don't
    format errors
- [#&#8203;216](https://redirect.github.com/peggyjs/peggy/issues/216):
Fix typescript
definition of SyntaxError, from
[@&#8203;cmfcmf](https://redirect.github.com/cmfcmf)
- [#&#8203;220](https://redirect.github.com/peggyjs/peggy/issues/220):
Fix rollup warnings,
    from [@&#8203;hildjj](https://redirect.github.com/hildjj)
- [#&#8203;285](https://redirect.github.com/peggyjs/peggy/issues/285):
Work around source-map
bug by throwing an exception if no grammarSource is given when
generating
source maps, from [@&#8203;hildjj](https://redirect.github.com/hildjj).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJiYWNrcG9ydDphbGwtb3BlbiIsInJlbGVhc2Vfbm90ZTpza2lwIl19-->

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Lukas Olson <lukas@elastic.co>
This commit is contained in:
elastic-renovate-prod[bot] 2025-03-11 14:02:49 -07:00 committed by GitHub
parent e1bffa6a9b
commit 238324a198
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 8 deletions

View file

@ -1817,7 +1817,7 @@
"oboe": "^2.1.7",
"openapi-types": "^12.1.3",
"p-reflect": "2.1.0",
"peggy": "^1.2.0",
"peggy": "^4.2.0",
"picomatch": "^2.3.1",
"pirates": "^4.0.1",
"piscina": "^3.2.0",

View file

@ -253,8 +253,8 @@ describe('math(resp, panel, series)', () => {
series
)(await mathAgg(resp, panel, series)((results) => results))([]);
} catch (e) {
expect(e.message).toEqual(
'Failed to parse expression. Expected "*", "+", "-", "/", "<", "=", ">", end of input, or whitespace but "(" found.'
expect(e.message).toMatchInlineSnapshot(
`"Failed to parse expression. Expected \\"=\\", [*/], [+\\\\-], [<>], end of input, or whitespace but \\"(\\" found."`
);
}
});

View file

@ -20,7 +20,7 @@ Array [
/>
</p>
<p>
Error: Unable to parse expression: Expected "/*", "//", [ ,\\t,\\r,\\n], or function but "|" found.
Error: Unable to parse expression: Expected "/*", "//", [ \\t\\r\\n], or function but "|" found.
</p>
</React.Fragment>,
"severity": "error",

View file

@ -9223,6 +9223,13 @@
node-addon-api "^3.2.1"
node-gyp-build "^4.3.0"
"@peggyjs/from-mem@1.3.5":
version "1.3.5"
resolved "https://registry.yarnpkg.com/@peggyjs/from-mem/-/from-mem-1.3.5.tgz#d6294c588517728f73cc6c091706e147f8824be0"
integrity sha512-oRyzXE7nirAn+5yYjCdWQHg3EG2XXcYRoYNOK8Quqnmm+9FyK/2YWVunwudlYl++M3xY+gIAdf0vAYS+p0nKfQ==
dependencies:
semver "7.6.3"
"@pkgjs/parseargs@^0.11.0":
version "0.11.0"
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
@ -26961,10 +26968,14 @@ pdfmake@^0.2.15:
iconv-lite "^0.6.3"
xmldoc "^1.3.0"
peggy@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/peggy/-/peggy-1.2.0.tgz#657ba45900cbef1dc9f52356704bdbb193c2021c"
integrity sha512-PQ+NKpAobImfMprYQtc4Egmyi29bidRGEX0kKjCU5uuW09s0Cthwqhfy7mLkwcB4VcgacE5L/ZjruD/kOPCUUw==
peggy@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/peggy/-/peggy-4.2.0.tgz#9ce13fef2710357e881b57c41d426dbe90e9a001"
integrity sha512-ZjzyJYY8NqW8JOZr2PbS/J0UH/hnfGALxSDsBUVQg5Y/I+ZaPuGeBJ7EclUX2RvWjhlsi4pnuL1C/K/3u+cDeg==
dependencies:
"@peggyjs/from-mem" "1.3.5"
commander "^12.1.0"
source-map-generator "0.8.0"
pend@~1.2.0:
version "1.2.0"
@ -30084,6 +30095,11 @@ semver@7.5.4:
dependencies:
lru-cache "^6.0.0"
semver@7.6.3:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==
semver@^6.0.0, semver@^6.1.0, semver@^6.1.2, semver@^6.3.0, semver@^6.3.1:
version "6.3.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
@ -30665,6 +30681,11 @@ source-list-map@^2.0.0:
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==
source-map-generator@0.8.0:
version "0.8.0"
resolved "https://registry.yarnpkg.com/source-map-generator/-/source-map-generator-0.8.0.tgz#10d5ca0651e2c9302ea338739cbd4408849c5d00"
integrity sha512-psgxdGMwl5MZM9S3FWee4EgsEaIjahYV5AzGnwUvPhWeITz/j6rKpysQHlQ4USdxvINlb8lKfWGIXwfkrgtqkA==
source-map-js@^1.0.2, source-map-js@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"