chore(deps): update dependency pegjs to ^0.10.0 #82
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.
This PR contains the following updates:
^0.9.0
->^0.10.0
Release Notes
pegjs/pegjs (pegjs)
v0.10.0
: 0.10.0Compare 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 thepeg.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 onthe 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 topeg.generate
. The global variable the browser version of PEG.js isavailable in when no loader is detected was renamed from
PEG
topeg
.CLI improvements. There is new
--output
/-o
command-line option whichallows 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
optionthe old one (a shortcut for
--optimize
) was renamed to-O
. All thesechanges 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 (withthe 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
peg.compiler.visitor
. This isuseful mainly for plugins which manipulate the AST.
generated parsers as
SyntaxError.buildMessage
. This is useful mainly forcustomizing these error messages.
error
andexpected
functions now accept an optionallocation
parameter. This allows to customize the location in which the resulting
syntax error is reported.
expected
property of exceptionsproduced 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.
found
property of exceptions produced by theerror
function is nowset to
null
.parser
variable.
passing
undefined
as a parameter value is now equivalent to not passingthe parameter at all.
\r
,\u2028
, and\u2029
asnewlines (only
\n
and\r\n
).first
/rest
tohead
/tail
in PEG.js grammar and examplegrammars.
guidelines.
Bug Fixes
bin/pegjs
so that invoking it with one non-option argument which isan extension-less file doesn’t cause that file to be overwritten.
(a:"a")
or(a:"a" b:"b" c:"c")
aren’t visible from the outside.(U+007F).
points above U+10FF in strings.
tools/impact
on OS X.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.
This PR was generated by Mend Renovate. View the repository job log.