[8.17] Update dependency peggy to v4 (main) (#212280)#215391
Closed
lukasolson wants to merge 3 commits intoelastic:8.17from
Closed
[8.17] Update dependency peggy to v4 (main) (#212280)#215391lukasolson wants to merge 3 commits intoelastic:8.17from
lukasolson wants to merge 3 commits intoelastic:8.17from
Conversation
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [peggy](https://peggyjs.org/) ([source](https://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://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#420) [Compare Source](https://github.com/peggyjs/peggy/compare/v4.1.1...v4.2.0) Released: 2024-11-19 ##### New features - [#&elastic#8203;568](https://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 - [#&elastic#8203;567](https://github.com/peggyjs/peggy/issues/567) Load config files and plugins correctly on Windows by using file: URIs in import(). ##### Documentation - [#&elastic#8203;566](https://github.com/peggyjs/peggy/pull/566) Slight tweaks to document generation. ### [`v4.1.1`](https://github.com/peggyjs/peggy/releases/tag/v4.1.1) [Compare Source](https://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 - [#&elastic#8203;477](https://github.com/peggyjs/peggy/issues/477) Option to output .d.ts files next to .js from CLI. - [#&elastic#8203;530](https://github.com/peggyjs/peggy/issues/531) Allow es6 plugins from CLI - [#&elastic#8203;532](https://github.com/peggyjs/peggy/issues/532) Allow es6 options files from the CLI ##### Bug fixes - [#&elastic#8203;531](https://github.com/peggyjs/peggy/issues/531) Clean up rollup hacks from CLI code. - [#&elastic#8203;514](https://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`. - [#&elastic#8203;538](https://github.com/peggyjs/peggy/pull/509) Fixed error in TS types for `peg$maxFailExpected` and `peg$maxFailPos`. - [#&elastic#8203;551](https://github.com/peggyjs/peggy/pull/551) Moved to package-extract instead of a custom script for version file generation. ### [`v4.0.3`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#403) [Compare Source](https://github.com/peggyjs/peggy/compare/v4.0.2...v4.0.3) Released: 2024-06-19 ##### New features - [#&elastic#8203;509](https://github.com/peggyjs/peggy/pull/509) Add and implement ES6 export button ##### Bug fixes - [#&elastic#8203;493](https://github.com/peggyjs/peggy/issues/493) Allow use of an empty array, null, or undefined as allowedStartRules option - [#&elastic#8203;505](https://github.com/peggyjs/peggy/pull/505) Fix vscode-eslint settings to work with eslint flat config - [#&elastic#8203;507](https://github.com/peggyjs/peggy/pull/507) Remove stray semicolon in CSS - [#&elastic#8203;508](https://github.com/peggyjs/peggy/pull/508) Fix broken text input in web version - [#&elastic#8203;512](https://github.com/peggyjs/peggy/issues/512) Add "StartRules" to peg.d.ts - [#&elastic#8203;513](https://github.com/peggyjs/peggy/issues/513) Allow whitespace between plucked word and its pattern. - [#&elastic#8203;520](https://github.com/peggyjs/peggy/issues/520) Grammar with token "constructor" fails to generate - [#&elastic#8203;522](https://github.com/peggyjs/peggy/issues/522) Switched from puppeteer to playwright for web tests, and added them to CI. ##### Documentation - [#&elastic#8203;506](https://github.com/peggyjs/peggy/pull/506) Added END OF INPUT (`!.`). ### [`v4.0.2`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#402) [Compare Source](https://github.com/peggyjs/peggy/compare/v4.0.1...v4.0.2) Released: 2024-02-26 ##### Bug fixes - [#&elastic#8203;490](https://github.com/peggyjs/peggy/issues/490) Throw error when imports are used in unsupported formats. Supported formats are now only "es" and "commonjs". - [#&elastic#8203;494](https://github.com/peggyjs/peggy/pull/494) Updated docs to make `--allowedRules *` more clear - [#&elastic#8203;495](https://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://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#401) [Compare Source](https://github.com/peggyjs/peggy/compare/v4.0.0...v4.0.1) Released: 2024-02-23 ##### Bug fixes - [#&elastic#8203;478](https://github.com/peggyjs/peggy/issues/478) Add "npx" to some doc examples. - [#&elastic#8203;479](https://github.com/peggyjs/peggy/issues/479) Refactor `cli/fromMem.js` into separate project [from-mem](https://github.com/peggyjs/from-mem/). - [#&elastic#8203;481](https://github.com/peggyjs/peggy/issues/481) Add CLI test for \--library - [#&elastic#8203;483](https://github.com/peggyjs/peggy/issues/483) fix errors in typescript file. ### [`v4.0.0`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#400) [Compare Source](https://github.com/peggyjs/peggy/compare/v3.0.2...v4.0.0) Released: 2024-02-13 ##### Major Changes - [#&elastic#8203;379](https://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. - [#&elastic#8203;417](https://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. - [#&elastic#8203;420](https://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. - [#&elastic#8203;456](https://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. - [#&elastic#8203;463](https://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 - [#&elastic#8203;400](https://github.com/peggyjs/peggy/pull/400) Use `@generated` in generated code - [#&elastic#8203;404](https://github.com/peggyjs/peggy/issues/404) Add support for -w/--watch to the command line interface. - [#&elastic#8203;415](https://github.com/peggyjs/peggy/issues/415) Added `browser` key to package.json, pointing to Webpack output. - [#&elastic#8203;420](https://github.com/peggyjs/peggy/pull/420) Updated dependencies to avoid audit warnings. - [#&elastic#8203;425](https://github.com/peggyjs/peggy/pull/425) Add a pass to simplify single-character choices - [#&elastic#8203;427](https://github.com/peggyjs/peggy/pull/427) Avoid double extraction of substrings in various MATCH\_ bytecodes - [#&elastic#8203;430](https://github.com/peggyjs/peggy/pull/430) Make generate-js.js ts clean - [#&elastic#8203;432](https://github.com/peggyjs/peggy/pull/432) Add peggy.code-workspace - [#&elastic#8203;435](https://github.com/peggyjs/peggy/pull/435) Setup tsconfig to detect use of library functions from es6 or later - [#&elastic#8203;436](https://github.com/peggyjs/peggy/pull/436) Get rid of tsd - [#&elastic#8203;437](https://github.com/peggyjs/peggy/pull/437) Better type checking for visitor - [#&elastic#8203;438](https://github.com/peggyjs/peggy/pull/438) Make test build deterministic - [#&elastic#8203;439](https://github.com/peggyjs/peggy/pull/439) Make peg$computePosDetails a little faster - [#&elastic#8203;440](https://github.com/peggyjs/peggy/issues/440) Create directories for output and source-map if they do not exist, rather than erroring. - [#&elastic#8203;446](https://github.com/peggyjs/peggy/pull/446) Add a right-associative `ExponentiationExpression` rule (operator `**`) to `javascript.pegjs` example grammar. - [#&elastic#8203;451](https://github.com/peggyjs/peggy/pull/451) Make stack.js ts clean - [#&elastic#8203;452](https://github.com/peggyjs/peggy/pull/452) Fixes to prepare generate-bytecode.js for ts-check - [#&elastic#8203;453](https://github.com/peggyjs/peggy/pull/453) Make generate-bytecode.js ts-clean - [#&elastic#8203;460](https://github.com/peggyjs/peggy/pull/453) Allow `-t` and `-T` testing from the CLI with `--format es`. ##### Bug Fixes - [#&elastic#8203;405](https://github.com/peggyjs/peggy/pull/405) Doc example doesn't correspond to code example. From [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;415](https://github.com/peggyjs/peggy/issues/415) Make docs match reality with `import`. - [#&elastic#8203;426](https://github.com/peggyjs/peggy/pull/426) Fix typo in XML example. - [#&elastic#8203;434](https://github.com/peggyjs/peggy/issues/434) Fixed bad example in docs. - [#&elastic#8203;445](https://github.com/peggyjs/peggy/issues/415) Fix indentation in `examples/javascript.pegjs`. - [#&elastic#8203;450](https://github.com/peggyjs/peggy/issues/450) Fixed misleading documentation. - [#&elastic#8203;466](https://github.com/peggyjs/peggy/issues/466) Add docs for developers. ### [`v3.0.2`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#302) [Compare Source](https://github.com/peggyjs/peggy/compare/v3.0.1...v3.0.2) Released: 2023-03-21 ##### Minor Changes - [#&elastic#8203;392](https://github.com/peggyjs/peggy/issues/392) Removed the --optimize command line argument, which has been invalid since v1.2. From [@&elastic#8203;hildjj](https://github.com/hildjj). ##### Bug Fixes - [#&elastic#8203;371](https://github.com/peggyjs/peggy/issues/371) Error using online Peggy - "Can't find variable: util". From [@&elastic#8203;hildjj](https://github.com/hildjj). - [#&elastic#8203;374](https://github.com/peggyjs/peggy/issues/374) CLI throws exception on grammar errors. From [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;381](https://github.com/peggyjs/peggy/issues/381) Repetitions with code blocks for min or max not handling non-integer returns correctly. From [@&elastic#8203;hildjj](https://github.com/hildjj). - [#&elastic#8203;382](https://github.com/peggyjs/peggy/pull/382) Update grammarSource documentation. From [@&elastic#8203;AndrewRayCode](https://github.com/AndrewRayCode). - [#&elastic#8203;384](https://github.com/peggyjs/peggy/issues/384) Improve the error.format() documentation. From [@&elastic#8203;AndrewRayCode](https://github.com/AndrewRayCode). - [#&elastic#8203;386](https://github.com/peggyjs/peggy/issues/386) Ensure '\*' as allowed-start-rule is documented for CLI. From [@&elastic#8203;hildjj](https://github.com/hildjj). ### [`v3.0.1`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#301) [Compare Source](https://github.com/peggyjs/peggy/compare/v3.0.0...v3.0.1) Released: 2022-03-05 ##### Minor Changes - [#&elastic#8203;329](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj). ##### Bug Fixes - [#&elastic#8203;329](https://github.com/peggyjs/peggy/issues/329) Allow type definition for ParserBuildOptions to include plugin options. From [@&elastic#8203;hildjj](https://github.com/hildjj). - [#&elastic#8203;346](https://github.com/peggyjs/peggy/issues/346) Allow extra semicolons between rules. From [@&elastic#8203;hildjj](https://github.com/hildjj). - [#&elastic#8203;347](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj). - [#&elastic#8203;354](https://github.com/peggyjs/peggy/pull/354) Various minor nits in the docs, including indentation and ensuring that the CNAME file is correct. - [#&elastic#8203;357](https://github.com/peggyjs/peggy/issues/357) Fix infinite recursion possibility in repetition delimeters. From [@&elastic#8203;hildjj](https://github.com/hildjj) and [@&elastic#8203;Mingun](https://github.com/Mingun). - [#&elastic#8203;359](https://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 [@&elastic#8203;nene](https://github.com/nene). - [#&elastic#8203;364](https://github.com/peggyjs/peggy/issues/364) Fix passing an incorrect external label to the expression inside the `repeated` node. From [@&elastic#8203;Mingun](https://github.com/Mingun). ### [`v3.0.0`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#300) [Compare Source](https://github.com/peggyjs/peggy/compare/v2.0.1...v3.0.0) Released: 2023-02-21 ##### Major Changes - [#&elastic#8203;280](https://github.com/peggyjs/peggy/issues/280) Add inline examples to the documentation, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;240](https://github.com/peggyjs/peggy/issues/240) Generate SourceNodes for bytecode, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;338](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;291](https://github.com/peggyjs/peggy/pull/291): Add support for repetition operator `expression|min .. max, delimiter|`, from [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;339](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj) Important information for plug-in authors: PR [#&elastic#8203;291](https://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 - [#&elastic#8203;274](https://github.com/peggyjs/peggy/issues/274) `"*"` is now a valid `allowedStartRule`, which means all rules are allowed, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;229](https://github.com/peggyjs/peggy/issues/229) new CLI option `-S <rule>` or `--start-rule <rule>` to specify the start rule when testing, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;236](https://github.com/peggyjs/peggy/issues/236) Website: show line numbers in parser input textarea, from [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;280](https://github.com/peggyjs/peggy/issues/280) new output type `source-with-inline-map`, which generates source text with an inline map, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;285](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;206](https://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 [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;294](https://github.com/peggyjs/peggy/pull/294) Website: show errors in the editors, from [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;297](https://github.com/peggyjs/peggy/pull/297) Website: add Discord widget, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;299](https://github.com/peggyjs/peggy/issues/299) Add example grammar for a [SemVer.org](https://semver.org) semantic version string, from [@&elastic#8203;dselman](https://github.com/dselman) - [#&elastic#8203;307](https://github.com/peggyjs/peggy/issues/307) Allow grammars to have relative offsets into their source files (e.g. if embedded in another doc), from [@&elastic#8203;hildjj](https://github.com/hildjj). - [#&elastic#8203;308](https://github.com/peggyjs/peggy/pull/308) Add support for reading test data from stdin using `-T -`, from [@&elastic#8203;hildjj](https://github.com/hildjj). - [#&elastic#8203;313](https://github.com/peggyjs/peggy/pull/313) Create the website using eleventy, from [@&elastic#8203;camcherry](https://github.com/camcherry) ##### Bug Fixes - [#&elastic#8203;283](https://github.com/peggyjs/peggy/issues/283) Fix incorrect type information for DiagnosticCallback, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;287](https://github.com/peggyjs/peggy/issues/287) Allow large outputs to be received without blocking on the CLI tests, from [@&elastic#8203;hildjj](https://github.com/hildjj) ### [`v2.0.1`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#201) [Compare Source](https://github.com/peggyjs/peggy/compare/v2.0.0...v2.0.1) Released: 2022-01-01 ##### Major Changes - None ##### Minor Changes - [#&elastic#8203;261](https://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. - [#&elastic#8203;266](https://github.com/peggyjs/peggy/issues/266): Expose the private field `problems` in the `Session` class, from [@&elastic#8203;hildjj](https://github.com/hildjj). ##### Bug Fixes - [#&elastic#8203;263](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj). ### [`v2.0.0`](https://github.com/peggyjs/peggy/blob/HEAD/CHANGELOG.md#200) [Compare Source](https://github.com/peggyjs/peggy/compare/v1.2.0...v2.0.0) Released: 2022-05-28 ##### Major Changes - [#&elastic#8203;163](https://github.com/peggyjs/peggy/pull/163): Add support for generating source maps, from [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;160](https://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 [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;218](https://github.com/peggyjs/peggy/pull/218): Add a `sourceMappingURL` to the generated code, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;248](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;251](https://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 [@&elastic#8203;hildjj](https://github.com/hildjj) ##### Minor Changes - [#&elastic#8203;167](https://github.com/peggyjs/peggy/pull/167): New CLI, from [@&elastic#8203;hildjj](https://github.com/hildjj) - Backward compatible with the previous - New -t/--test and -T/--testfile flags to directly test the generated grammar - [#&elastic#8203;169](https://github.com/peggyjs/peggy/issues/169): Expose string escape functions, `stringEscape()` and `regexpClassEscape()`, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;175](https://github.com/peggyjs/peggy/pull/175): Check allowedStartRules for validity, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;185](https://github.com/peggyjs/peggy/pull/185): Updated eslint rules, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;196](https://github.com/peggyjs/peggy/pull/196): Add example grammars for XML and source-mapping, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;204](https://github.com/peggyjs/peggy/pull/204): Increase coverage for the tests, from [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;210](https://github.com/peggyjs/peggy/pull/210): Refactor CLI testing, from [@&elastic#8203;hildjj](https://github.com/hildjj) ##### Bug fixes - [#&elastic#8203;164](https://github.com/peggyjs/peggy/pull/164): Fix some errors in the typescript definitions, from [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;170](https://github.com/peggyjs/peggy/issues/170): Add missing argument in function call, from [@&elastic#8203;darlanalves](https://github.com/darlanalves) - [#&elastic#8203;182](https://github.com/peggyjs/peggy/issues/182): Fix typo in documentation, from [@&elastic#8203;zargold](https://github.com/zargold) - [#&elastic#8203;197](https://github.com/peggyjs/peggy/pull/197): Fix a regression of redundant commas in the character classes in the error messages, introduced in [`fad4ab7`](https://github.com/peggyjs/peggy/commit/fad4ab74d1de67ef1902cd22d479c81ccab73224), from [@&elastic#8203;Mingun](https://github.com/Mingun) - [#&elastic#8203;198](https://github.com/peggyjs/peggy/pull/198): Make all build scripts run on Windows, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;199](https://github.com/peggyjs/peggy/pull/199): Test web version locally, using puppeteer, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;211](https://github.com/peggyjs/peggy/pull/211):Command-line -t requires from wrong directory, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;212](https://github.com/peggyjs/peggy/pull/212): Parse errors with zero length give badly-formatted errors, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;214](https://github.com/peggyjs/peggy/pull/214): Failing tests don't format errors - [#&elastic#8203;216](https://github.com/peggyjs/peggy/issues/216): Fix typescript definition of SyntaxError, from [@&elastic#8203;cmfcmf](https://github.com/cmfcmf) - [#&elastic#8203;220](https://github.com/peggyjs/peggy/issues/220): Fix rollup warnings, from [@&elastic#8203;hildjj](https://github.com/hildjj) - [#&elastic#8203;285](https://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 [@&elastic#8203;hildjj](https://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://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> (cherry picked from commit 238324a)
Contributor
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --update --no-serverless'
Contributor
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]
History
|
davismcphee
approved these changes
Mar 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.17: