Skip to content

Commit 6c7c2dd

Browse files
committed
chore(release): release v10.4.2
1 parent b3633af commit 6c7c2dd

37 files changed

+121
-121
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ as any other pure code without requiring any new tools or processes.
3636
- `https://unpkg.com/chevrotain/lib_esm/chevrotain.mjs`
3737
- `https://unpkg.com/chevrotain/lib_esm/chevrotain.min.mjs`
3838
- Explicit version number:
39-
- `https://unpkg.com/[email protected].1/lib/chevrotain.js`
40-
- `https://unpkg.com/[email protected].1/lib/chevrotain.min.js`
41-
- `https://unpkg.com/[email protected].1/lib_esm/chevrotain.mjs`
42-
- `https://unpkg.com/[email protected].1/lib_esm/chevrotain.min.mjs`
39+
- `https://unpkg.com/[email protected].2/lib/chevrotain.js`
40+
- `https://unpkg.com/[email protected].2/lib/chevrotain.min.js`
41+
- `https://unpkg.com/[email protected].2/lib_esm/chevrotain.mjs`
42+
- `https://unpkg.com/[email protected].2/lib_esm/chevrotain.min.mjs`
4343

4444
## Documentation & Resources
4545

examples/grammars/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "chevrotain_examples_grammars",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"scripts": {
55
"ci": "pnpm run test",
66
"test": "mocha \"!(node_modules)/**/*spec.js\""
77
},
88
"dependencies": {
99
"acorn": "8.8.0",
10-
"chevrotain": "10.4.1",
10+
"chevrotain": "10.4.2",
1111
"xregexp": "5.1.1"
1212
},
1313
"private": true

examples/implementation_languages/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chevrotain_examples_implementation_languages",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"scripts": {
55
"ci": "pnpm run build test",
66
"build": "npm-run-all build:ts",
@@ -10,7 +10,7 @@
1010
"test:esm": "mocha \"*spec.mjs\""
1111
},
1212
"dependencies": {
13-
"chevrotain": "10.4.1"
13+
"chevrotain": "10.4.2"
1414
},
1515
"devDependencies": {
1616
"coffee-script": "^1.11.1",

examples/lexer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "chevrotain_examples_lexer",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"scripts": {
55
"ci": "pnpm run test",
66
"test": "mocha \"!(node_modules)/**/*spec.js\""
77
},
88
"dependencies": {
9-
"chevrotain": "10.4.1"
9+
"chevrotain": "10.4.2"
1010
},
1111
"private": true
1212
}

examples/parser/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "chevrotain_examples_parser",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"scripts": {
55
"ci": "pnpm run test",
66
"test": "mocha \"!(node_modules)/**/*spec.js\""
77
},
88
"dependencies": {
9-
"chevrotain": "10.4.1"
9+
"chevrotain": "10.4.2"
1010
},
1111
"private": true
1212
}

examples/tutorial/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "chevrotain_examples_tutorial",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"scripts": {
55
"ci": "pnpm run test",
66
"test": "mocha \"step*/*spec.js\""
77
},
88
"dependencies": {
9-
"chevrotain": "10.4.1"
9+
"chevrotain": "10.4.2"
1010
},
1111
"private": true
1212
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"exact": true
99
}
1010
},
11-
"version": "10.4.1"
11+
"version": "10.4.2"
1212
}

packages/chevrotain/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chevrotain",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"description": "Chevrotain is a high performance fault tolerant javascript parsing DSL for building recursive decent parsers",
55
"keywords": [
66
"parser",
@@ -73,10 +73,10 @@
7373
"bundle:esm:min": "esbuild ./lib/src/api.js --bundle --minify --format=esm --sourcemap --outfile=lib_esm/chevrotain.min.mjs"
7474
},
7575
"dependencies": {
76-
"@chevrotain/cst-dts-gen": "10.4.1",
77-
"@chevrotain/gast": "10.4.1",
78-
"@chevrotain/types": "10.4.1",
79-
"@chevrotain/utils": "10.4.1",
76+
"@chevrotain/cst-dts-gen": "10.4.2",
77+
"@chevrotain/gast": "10.4.2",
78+
"@chevrotain/types": "10.4.2",
79+
"@chevrotain/utils": "10.4.2",
8080
"lodash": "4.17.21",
8181
"regexp-to-ast": "0.5.0"
8282
},

packages/chevrotain/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// needs a separate module as this is required inside chevrotain productive code
22
// and also in the entry point for webpack(api.ts).
33
// A separate file avoids cyclic dependencies and webpack errors.
4-
export const VERSION = "10.4.1"
4+
export const VERSION = "10.4.2"

packages/cst-dts-gen-test/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chevrotain/cst-dts-gen-test",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"private": true,
55
"description": "tests for @chevrotain/cst-dts-gen",
66
"license": "Apache-2.0",
@@ -22,10 +22,10 @@
2222
"coverage": "nyc mocha"
2323
},
2424
"dependencies": {
25-
"@chevrotain/cst-dts-gen": "10.4.1",
26-
"@chevrotain/gast": "10.4.1",
27-
"@chevrotain/types": "10.4.1",
28-
"chevrotain": "10.4.1",
25+
"@chevrotain/cst-dts-gen": "10.4.2",
26+
"@chevrotain/gast": "10.4.2",
27+
"@chevrotain/types": "10.4.2",
28+
"chevrotain": "10.4.2",
2929
"lodash": "4.17.21"
3030
},
3131
"devDependencies": {

packages/cst-dts-gen/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chevrotain/cst-dts-gen",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"description": "Generates type definitions for chevrotain CST nodes",
55
"keywords": [],
66
"bugs": {
@@ -30,8 +30,8 @@
3030
"compile": "tsc"
3131
},
3232
"dependencies": {
33-
"@chevrotain/gast": "10.4.1",
34-
"@chevrotain/types": "10.4.1",
33+
"@chevrotain/gast": "10.4.2",
34+
"@chevrotain/types": "10.4.2",
3535
"lodash": "4.17.21"
3636
},
3737
"devDependencies": {

packages/gast/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chevrotain/gast",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"description": "Grammar AST structure for Chevrotain Parsers",
55
"keywords": [],
66
"bugs": {
@@ -34,7 +34,7 @@
3434
"coverage": "nyc mocha"
3535
},
3636
"dependencies": {
37-
"@chevrotain/types": "10.4.1",
37+
"@chevrotain/types": "10.4.2",
3838
"lodash": "4.17.21"
3939
},
4040
"devDependencies": {

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chevrotain/types",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"description": "Type Signatures and API Website for Chevrotain",
55
"keywords": [],
66
"bugs": {

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chevrotain/utils",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"description": "common utilities",
55
"keywords": [],
66
"bugs": {

packages/website/docs/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Special handling is no longer needed during WebPacking scenarios.
111111

112112
The first time a Chevrotain parser is initialized additional validations and computations are performed.
113113
Some of these can take a very long time under certain edge cases. Specifically the detection of ambiguous alternatives
114-
when the parser uses a larger than the default [maxLookahead](https://chevrotain.io/documentation/10_4_1/interfaces/IParserConfig.html)
114+
when the parser uses a larger than the default [maxLookahead](https://chevrotain.io/documentation/10_4_2/interfaces/IParserConfig.html)
115115
and there are many (thousands) of ambiguous paths.
116116

117117
To resolve this try reducing the maxLookahead and inspect the ambiguity errors to fix

packages/website/docs/changes/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## X.Y.Z (INSERT_DATE_HERE)
1+
## 10.4.2 (11-21-2022)
22

33
#### Bug Fixes
44

packages/website/docs/features/custom_errors.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Chevrotain allows users to customize both the parser and lexer error messages.
44
This can be accomplished by implementing the following interfaces:
55

6-
- [IParserErrorMessageProvider](https://chevrotain.io/documentation/10_4_1/interfaces/IParserErrorMessageProvider.html)
7-
- [ILexerErrorMessageProvider](https://chevrotain.io/documentation/10_4_1/interfaces/ILexerErrorMessageProvider.html)
6+
- [IParserErrorMessageProvider](https://chevrotain.io/documentation/10_4_2/interfaces/IParserErrorMessageProvider.html)
7+
- [ILexerErrorMessageProvider](https://chevrotain.io/documentation/10_4_2/interfaces/ILexerErrorMessageProvider.html)
88

99
See executable examples:
1010

@@ -25,7 +25,7 @@ $.RULE("myStatement", () => {
2525

2626
The **ERR_MSG** config property is available for the following DSL methods:
2727

28-
- [CONSUME](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html#CONSUME)
29-
- [OR](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html#OR)
30-
- [AT_LEAST_ONE](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html#AT_LEAST_ONE)
31-
- [AT_LEAST_ONE_SEP](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html#AT_LEAST_ONE_SEP)
28+
- [CONSUME](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html#CONSUME)
29+
- [OR](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html#OR)
30+
- [AT_LEAST_ONE](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html#AT_LEAST_ONE)
31+
- [AT_LEAST_ONE_SEP](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html#AT_LEAST_ONE_SEP)

packages/website/docs/features/gates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $.RULE("Value", (isConst) => {
2020
})
2121
```
2222

23-
Using the [Look Ahead](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html#LA) method is often helpful with the use of Gates to determine if a path should be followed or not, for example:
23+
Using the [Look Ahead](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html#LA) method is often helpful with the use of Gates to determine if a path should be followed or not, for example:
2424

2525
```javascript
2626
// SELECT LIMIT.ID FROM USER_LIMIT LIMIT

packages/website/docs/features/grammar_inheritance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Chevrotain supports Grammar Inheritance, This is useful to represent multiple va
44
for example a grammar for ECMAScript 6 **extends** an ECMAScript 5.1 grammar.
55

66
Chevrotain Grammars are JavaScript classes, so Grammar inheritance is simply JavaScript inheritance
7-
with the replacement of the [**RULE**](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html#RULE)
8-
DSL method with [**OVERRIDE_RULE**](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html#OVERRIDE_RULE) method when needed.
7+
with the replacement of the [**RULE**](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html#RULE)
8+
DSL method with [**OVERRIDE_RULE**](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html#OVERRIDE_RULE) method when needed.
99

1010
See [executable example](https://github.com/chevrotain/chevrotain/tree/master/examples/parser/inheritance)
1111
for further details.

packages/website/docs/features/position_tracking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ token_skipping
1010
- start and end lines.
1111
- start and end columns.
1212

13-
The level of position information tracking can be reduced by using the [**positionTracking**](https://chevrotain.io/documentation/10_4_1/interfaces/ILexerConfig.html#positionTracking) lexer config option.
13+
The level of position information tracking can be reduced by using the [**positionTracking**](https://chevrotain.io/documentation/10_4_2/interfaces/ILexerConfig.html#positionTracking) lexer config option.
1414
For example:
1515

1616
```javascript

packages/website/docs/features/token_grouping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Chevrotain lexers support grouping Tokens Types **separately** from the main token vector in the lexing result.
44
This is often useful to **collect** a specific set of Token Types for later processing, for example to collect comments tokens.
55

6-
To group a Token Type simply specify the [**group**](https://chevrotain.io/documentation/10_4_1/interfaces/ITokenConfig.html#group) property in its configuration.
6+
To group a Token Type simply specify the [**group**](https://chevrotain.io/documentation/10_4_2/interfaces/ITokenConfig.html#group) property in its configuration.
77
For example:
88

99
```javascript

packages/website/docs/guide/concrete_syntax_tree.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ There are two major differences.
2929

3030
How to enable CST output?
3131

32-
This feature is enabled when a parser extends the [CstParser class](https://chevrotain.io/documentation/10_4_1/classes/CstParser.html).
32+
This feature is enabled when a parser extends the [CstParser class](https://chevrotain.io/documentation/10_4_2/classes/CstParser.html).
3333

3434
```typescript
3535
import { CstParser } from "chevrotain"
@@ -45,7 +45,7 @@ class SelectParser extends CstParser {
4545

4646
The structure of the CST is very simple.
4747

48-
- See the full [CstNode type signature](https://chevrotain.io/documentation/10_4_1/interfaces/CstNode.html)
48+
- See the full [CstNode type signature](https://chevrotain.io/documentation/10_4_2/interfaces/CstNode.html)
4949

5050
- Explore it by running the CST creation example in the [**online playground**](https://chevrotain.io/playground/?example=JSON%20grammar%20and%20automatic%20CST%20output).
5151

@@ -238,7 +238,7 @@ as we would have to fully traverse a CstNode to understands its full location ra
238238

239239
The feature for providing CstNode location directly on the CstNodes objects is available since version 4.7.0.
240240
Tracking the CstNodes location is **disabled by default** and can be enabled
241-
by setting the IParserConfig [nodeLocationTracking](https://chevrotain.io/documentation/10_4_1/interfaces/IParserConfig.html#nodeLocationTracking)
241+
by setting the IParserConfig [nodeLocationTracking](https://chevrotain.io/documentation/10_4_2/interfaces/IParserConfig.html#nodeLocationTracking)
242242
to:
243243

244244
- "full" (start/end for **all** offset/line/column)
@@ -258,14 +258,14 @@ class SelectParser extends CstParser {
258258
}
259259
```
260260

261-
Once this feature is enabled the optional [location property](https://chevrotain.io/documentation/10_4_1/interfaces/CstNode.html#location)
261+
Once this feature is enabled the optional [location property](https://chevrotain.io/documentation/10_4_2/interfaces/CstNode.html#location)
262262
on each CstNode would be populated with the relevant information.
263263

264264
Caveats
265265

266266
- In order to track the CstNodes location **every** Token in the input Token vector must include its own location information.
267267

268-
- This is enabled by default in the Chevrotain Lexer, See [ILexerConfig.positionTracking](https://chevrotain.io/documentation/10_4_1/interfaces/ILexerConfig.html#positionTracking).
268+
- This is enabled by default in the Chevrotain Lexer, See [ILexerConfig.positionTracking](https://chevrotain.io/documentation/10_4_2/interfaces/ILexerConfig.html#positionTracking).
269269
However, if a third party Lexer is used in conjunction with a Chevrotain Parser, the Tokens produced by such a lexer
270270
must include the relevant location properties to allow the chevrotain parser to compute the CstNode locations.
271271

@@ -479,7 +479,7 @@ But what if we want **explicit** definitions for these data structures and APIs?
479479

480480
- For example to easily implement our CST Visitors in TypeScript instead of over-using the `any` type...
481481

482-
This capability is provided via the [generateCstDts](https://chevrotain.io/documentation/10_4_1/modules.html#generateCstDts) function.
482+
This capability is provided via the [generateCstDts](https://chevrotain.io/documentation/10_4_2/modules.html#generateCstDts) function.
483483
Which given a set of grammar `Rules` will generate the **source text** for the corresponding TypeScript signatures.
484484

485485
For example, given the Parser rules for **arrays** in JSON.
@@ -515,7 +515,7 @@ export type ArrayCstChildren = {
515515
}
516516
```
517517
518-
Note that the [generateCstDts](https://chevrotain.io/documentation/10_4_1/modules.html#generateCstDts) function
518+
Note that the [generateCstDts](https://chevrotain.io/documentation/10_4_2/modules.html#generateCstDts) function
519519
only produces the **source text** of the TypeScript signatures, and it is the end-user's responsibility to save
520520
the contents to a file, see: minimal [generation script example](https://github.com/Chevrotain/chevrotain/tree/master/examples/implementation_languages/typescript/scripts/gen_dts_signatures.js).
521521

packages/website/docs/guide/custom_token_patterns.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function. But with a small constraint.
3434
- A custom pattern should behave as though the RegExp [sticky flag](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky) has been set.
3535
This means that attempted matches must begin at the offset argument, **not** at the start of the input.
3636

37-
The basic syntax for supplying a custom pattern is defined by the [ICustomPattern](https://chevrotain.io/documentation/10_4_1/interfaces/ICustomPattern.html) interface.
37+
The basic syntax for supplying a custom pattern is defined by the [ICustomPattern](https://chevrotain.io/documentation/10_4_2/interfaces/ICustomPattern.html) interface.
3838
Example:
3939

4040
```javascript
@@ -62,7 +62,7 @@ createToken({
6262
pattern: { exec: matchInteger },
6363

6464
// Optional property that will enable optimizations in the lexer
65-
// See: https://chevrotain.io/documentation/10_4_1/interfaces/ITokenConfig.html#start_chars_hint
65+
// See: https://chevrotain.io/documentation/10_4_2/interfaces/ITokenConfig.html#start_chars_hint
6666
start_chars_hint: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
6767
})
6868
```
@@ -99,7 +99,7 @@ function matchInteger(text, offset, matchedTokens, groups) {
9999

100100
A larger and non contrived example can seen here: [Lexing Python like indentation using Chevrotain](https://github.com/chevrotain/chevrotain/blob/master/examples/lexer/python_indentation/python_indentation.js).
101101

102-
It is important to note that The matchedTokens and groups arguments match the token and groups properties of the tokenize output ([ILexingResult](https://chevrotain.io/documentation/10_4_1/interfaces/ILexingResult.html)).
102+
It is important to note that The matchedTokens and groups arguments match the token and groups properties of the tokenize output ([ILexingResult](https://chevrotain.io/documentation/10_4_2/interfaces/ILexingResult.html)).
103103
These arguments are the current state of the lexing result so even if the lexer has performed error recovery any tokens found
104104
in those arguments are still guaranteed to be in the final result.
105105

packages/website/docs/guide/generating_syntax_diagrams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ library by @tabatkins.
1919

2020
## Instructions
2121

22-
Chevrotain provides the [**createSyntaxDiagramsCode**](https://chevrotain.io/documentation/10_4_1/modules.html#createsyntaxdiagramscode) API to generate the **html source code**
22+
Chevrotain provides the [**createSyntaxDiagramsCode**](https://chevrotain.io/documentation/10_4_2/modules.html#createsyntaxdiagramscode) API to generate the **html source code**
2323
of syntax diagrams. This html source code can then be used by an end user in either node.js or a browser:
2424

2525
1. By writing it directly to the disk in a pure node.js runtime scenario.

0 commit comments

Comments
 (0)