Skip to content

Commit

Permalink
chore(release): release v11.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bd82 committed Aug 14, 2023
1 parent d50420d commit ac58066
Show file tree
Hide file tree
Showing 38 changed files with 156 additions and 124 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ A more in depth review of Chevrotain can be found in this great article on: [Par
- `https://unpkg.com/chevrotain/lib/chevrotain.mjs`
- `https://unpkg.com/chevrotain/lib/chevrotain.min.mjs`
- Explicit version number:
- `https://unpkg.com/[email protected].2/lib/chevrotain.mjs`
- `https://unpkg.com/[email protected].2/lib/chevrotain.min.mjs`
- `https://unpkg.com/[email protected].3/lib/chevrotain.mjs`
- `https://unpkg.com/[email protected].3/lib/chevrotain.min.mjs`

## Documentation & Resources

Expand Down
4 changes: 2 additions & 2 deletions examples/grammars/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chevrotain_examples_grammars",
"version": "11.0.2",
"version": "11.0.3",
"type": "module",
"scripts": {
"ci": "pnpm run test && pnpm run bundle:graphql",
Expand All @@ -9,7 +9,7 @@
},
"dependencies": {
"acorn": "8.8.0",
"chevrotain": "11.0.2",
"chevrotain": "11.0.3",
"xregexp": "5.1.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/implementation_languages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chevrotain_examples_implementation_languages",
"version": "11.0.2",
"version": "11.0.3",
"type": "module",
"scripts": {
"ci": "pnpm run build test",
Expand All @@ -9,7 +9,7 @@
"test": "mocha \"*spec.js\""
},
"dependencies": {
"chevrotain": "11.0.2"
"chevrotain": "11.0.3"
},
"devDependencies": {
"coffee-script": "^1.11.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/lexer/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "chevrotain_examples_lexer",
"version": "11.0.2",
"version": "11.0.3",
"type": "module",
"scripts": {
"ci": "pnpm run test",
"test": "mocha \"!(node_modules)/**/*spec.js\""
},
"dependencies": {
"chevrotain": "11.0.2",
"chevrotain": "11.0.3",
"lodash": "4.17.21"
},
"private": true
Expand Down
4 changes: 2 additions & 2 deletions examples/parser/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "chevrotain_examples_parser",
"version": "11.0.2",
"version": "11.0.3",
"type": "module",
"scripts": {
"ci": "pnpm run test",
"test": "mocha \"!(node_modules)/**/*spec.js\"",
"bundle:diagrams": "esbuild ./diagrams/grammar.js --bundle --minify --format=esm --outfile=./diagrams/gen/grammar-bundled.min.mjs"
},
"dependencies": {
"chevrotain": "11.0.2",
"chevrotain": "11.0.3",
"lodash": "4.17.21"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorial/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "chevrotain_examples_tutorial",
"version": "11.0.2",
"version": "11.0.3",
"type": "module",
"scripts": {
"ci": "pnpm run test",
"test": "mocha \"step*/*spec.js\""
},
"dependencies": {
"chevrotain": "11.0.2",
"chevrotain": "11.0.3",
"lodash": "4.17.21"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"exact": true
}
},
"version": "11.0.2"
"version": "11.0.3"
}
12 changes: 6 additions & 6 deletions packages/chevrotain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chevrotain",
"version": "11.0.2",
"version": "11.0.3",
"description": "Chevrotain is a high performance fault tolerant javascript parsing DSL for building recursive decent parsers",
"keywords": [
"parser",
Expand Down Expand Up @@ -67,11 +67,11 @@
"bundle:esm:min": "esbuild ./lib/src/api.js --bundle --minify --format=esm --sourcemap --outfile=lib/chevrotain.min.mjs"
},
"dependencies": {
"@chevrotain/cst-dts-gen": "11.0.2",
"@chevrotain/gast": "11.0.2",
"@chevrotain/regexp-to-ast": "11.0.2",
"@chevrotain/types": "11.0.2",
"@chevrotain/utils": "11.0.2",
"@chevrotain/cst-dts-gen": "11.0.3",
"@chevrotain/gast": "11.0.3",
"@chevrotain/regexp-to-ast": "11.0.3",
"@chevrotain/types": "11.0.3",
"@chevrotain/utils": "11.0.3",
"lodash-es": "4.17.21"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/chevrotain/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// needs a separate module as this is required inside chevrotain productive code
// and also in the entry point for webpack(api.ts).
// A separate file avoids cyclic dependencies and webpack errors.
export const VERSION = "11.0.2";
export const VERSION = "11.0.3";
10 changes: 5 additions & 5 deletions packages/cst-dts-gen-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chevrotain/cst-dts-gen-test",
"version": "11.0.2",
"version": "11.0.3",
"private": true,
"description": "tests for @chevrotain/cst-dts-gen",
"license": "Apache-2.0",
Expand All @@ -23,10 +23,10 @@
"coverage": "c8 mocha --enable-source-maps"
},
"dependencies": {
"@chevrotain/cst-dts-gen": "11.0.2",
"@chevrotain/gast": "11.0.2",
"@chevrotain/types": "11.0.2",
"chevrotain": "11.0.2",
"@chevrotain/cst-dts-gen": "11.0.3",
"@chevrotain/gast": "11.0.3",
"@chevrotain/types": "11.0.3",
"chevrotain": "11.0.3",
"lodash-es": "4.17.21"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/cst-dts-gen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chevrotain/cst-dts-gen",
"version": "11.0.2",
"version": "11.0.3",
"description": "Generates type definitions for Chevrotain CST nodes",
"keywords": [],
"bugs": {
Expand Down Expand Up @@ -36,8 +36,8 @@
"compile": "tsc"
},
"dependencies": {
"@chevrotain/gast": "11.0.2",
"@chevrotain/types": "11.0.2",
"@chevrotain/gast": "11.0.3",
"@chevrotain/types": "11.0.3",
"lodash-es": "4.17.21"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/gast/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chevrotain/gast",
"version": "11.0.2",
"version": "11.0.3",
"description": "Grammar AST structure for Chevrotain Parsers",
"keywords": [],
"bugs": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"coverage": "c8 mocha --enable-source-maps"
},
"dependencies": {
"@chevrotain/types": "11.0.2",
"@chevrotain/types": "11.0.3",
"lodash-es": "4.17.21"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/regexp-to-ast/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chevrotain/regexp-to-ast",
"version": "11.0.2",
"version": "11.0.3",
"description": "Parses a Regular Expression and outputs an AST",
"keywords": [
"regExp",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chevrotain/types",
"version": "11.0.2",
"version": "11.0.3",
"description": "Type Signatures and API Website for Chevrotain",
"keywords": [],
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chevrotain/utils",
"version": "11.0.2",
"version": "11.0.3",
"description": "common utilities",
"keywords": [],
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Special handling is no longer needed during WebPacking scenarios.

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

To resolve this try reducing the maxLookahead and inspect the ambiguity errors to fix
Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/changes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## X.Y.Z (INSERT_DATE_HERE)
## 11.0.3 (8-15-2023)

#### Bug Fixes

Expand Down
12 changes: 6 additions & 6 deletions packages/website/docs/features/custom_errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Chevrotain allows users to customize both the parser and lexer error messages.
This can be accomplished by implementing the following interfaces:

- [IParserErrorMessageProvider](https://chevrotain.io/documentation/11_0_2/interfaces/IParserErrorMessageProvider.html)
- [ILexerErrorMessageProvider](https://chevrotain.io/documentation/11_0_2/interfaces/ILexerErrorMessageProvider.html)
- [IParserErrorMessageProvider](https://chevrotain.io/documentation/11_0_3/interfaces/IParserErrorMessageProvider.html)
- [ILexerErrorMessageProvider](https://chevrotain.io/documentation/11_0_3/interfaces/ILexerErrorMessageProvider.html)

See executable examples:

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

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

- [CONSUME](https://chevrotain.io/documentation/11_0_2/classes/CstParser.html#CONSUME)
- [OR](https://chevrotain.io/documentation/11_0_2/classes/CstParser.html#OR)
- [AT_LEAST_ONE](https://chevrotain.io/documentation/11_0_2/classes/CstParser.html#AT_LEAST_ONE)
- [AT_LEAST_ONE_SEP](https://chevrotain.io/documentation/11_0_2/classes/CstParser.html#AT_LEAST_ONE_SEP)
- [CONSUME](https://chevrotain.io/documentation/11_0_3/classes/CstParser.html#CONSUME)
- [OR](https://chevrotain.io/documentation/11_0_3/classes/CstParser.html#OR)
- [AT_LEAST_ONE](https://chevrotain.io/documentation/11_0_3/classes/CstParser.html#AT_LEAST_ONE)
- [AT_LEAST_ONE_SEP](https://chevrotain.io/documentation/11_0_3/classes/CstParser.html#AT_LEAST_ONE_SEP)
2 changes: 1 addition & 1 deletion packages/website/docs/features/gates.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $.RULE("Value", (isConst) => {
});
```

Using the [Look Ahead](https://chevrotain.io/documentation/11_0_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:
Using the [Look Ahead](https://chevrotain.io/documentation/11_0_3/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:

```javascript
// SELECT LIMIT.ID FROM USER_LIMIT LIMIT
Expand Down
4 changes: 2 additions & 2 deletions packages/website/docs/features/grammar_inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Chevrotain supports Grammar Inheritance, This is useful to represent multiple va
for example a grammar for ECMAScript 6 **extends** an ECMAScript 5.1 grammar.

Chevrotain Grammars are JavaScript classes, so Grammar inheritance is simply JavaScript inheritance
with the replacement of the [**RULE**](https://chevrotain.io/documentation/11_0_2/classes/CstParser.html#RULE)
DSL method with [**OVERRIDE_RULE**](https://chevrotain.io/documentation/11_0_2/classes/CstParser.html#OVERRIDE_RULE) method when needed.
with the replacement of the [**RULE**](https://chevrotain.io/documentation/11_0_3/classes/CstParser.html#RULE)
DSL method with [**OVERRIDE_RULE**](https://chevrotain.io/documentation/11_0_3/classes/CstParser.html#OVERRIDE_RULE) method when needed.

See [executable example](https://github.com/chevrotain/chevrotain/tree/master/examples/parser/inheritance)
for further details.
2 changes: 1 addition & 1 deletion packages/website/docs/features/position_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ token_skipping
- start and end lines.
- start and end columns.

The level of position information tracking can be reduced by using the [**positionTracking**](https://chevrotain.io/documentation/11_0_2/interfaces/ILexerConfig.html#positionTracking) lexer config option.
The level of position information tracking can be reduced by using the [**positionTracking**](https://chevrotain.io/documentation/11_0_3/interfaces/ILexerConfig.html#positionTracking) lexer config option.
For example:

```javascript
Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/features/token_grouping.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Chevrotain lexers support grouping Tokens Types **separately** from the main token vector in the lexing result.
This is often useful to **collect** a specific set of Token Types for later processing, for example to collect comments tokens.

To group a Token Type simply specify the [**group**](https://chevrotain.io/documentation/11_0_2/interfaces/ITokenConfig.html#group) property in its configuration.
To group a Token Type simply specify the [**group**](https://chevrotain.io/documentation/11_0_3/interfaces/ITokenConfig.html#group) property in its configuration.
For example:

```javascript
Expand Down
14 changes: 7 additions & 7 deletions packages/website/docs/guide/concrete_syntax_tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ There are two major differences.

How to enable CST output?

This feature is enabled when a parser extends the [CstParser class](https://chevrotain.io/documentation/11_0_2/classes/CstParser.html).
This feature is enabled when a parser extends the [CstParser class](https://chevrotain.io/documentation/11_0_3/classes/CstParser.html).

```typescript
import { CstParser } from "chevrotain";
Expand All @@ -45,7 +45,7 @@ class SelectParser extends CstParser {

The structure of the CST is very simple.

- See the full [CstNode type signature](https://chevrotain.io/documentation/11_0_2/interfaces/CstNode.html)
- See the full [CstNode type signature](https://chevrotain.io/documentation/11_0_3/interfaces/CstNode.html)

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

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

The feature for providing CstNode location directly on the CstNodes objects is available since version 4.7.0.
Tracking the CstNodes location is **disabled by default** and can be enabled
by setting the IParserConfig [nodeLocationTracking](https://chevrotain.io/documentation/11_0_2/interfaces/IParserConfig.html#nodeLocationTracking)
by setting the IParserConfig [nodeLocationTracking](https://chevrotain.io/documentation/11_0_3/interfaces/IParserConfig.html#nodeLocationTracking)
to:

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

Once this feature is enabled the optional [location property](https://chevrotain.io/documentation/11_0_2/interfaces/CstNode.html#location)
Once this feature is enabled the optional [location property](https://chevrotain.io/documentation/11_0_3/interfaces/CstNode.html#location)
on each CstNode would be populated with the relevant information.

Caveats

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

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

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

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

This capability is provided via the [generateCstDts](https://chevrotain.io/documentation/11_0_2/modules.html#generateCstDts) function.
This capability is provided via the [generateCstDts](https://chevrotain.io/documentation/11_0_3/modules.html#generateCstDts) function.
Which given a set of grammar `Rules` will generate the **source text** for the corresponding TypeScript signatures.

For example, given the Parser rules for **arrays** in JSON.
Expand Down Expand Up @@ -515,7 +515,7 @@ export type ArrayCstChildren = {
};
```

Note that the [generateCstDts](https://chevrotain.io/documentation/11_0_2/modules.html#generateCstDts) function
Note that the [generateCstDts](https://chevrotain.io/documentation/11_0_3/modules.html#generateCstDts) function
only produces the **source text** of the TypeScript signatures, and it is the end-user's responsibility to save
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).

Expand Down
6 changes: 3 additions & 3 deletions packages/website/docs/guide/custom_token_patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function. But with a small constraint.
- 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.
This means that attempted matches must begin at the offset argument, **not** at the start of the input.

The basic syntax for supplying a custom pattern is defined by the [ICustomPattern](https://chevrotain.io/documentation/11_0_2/interfaces/ICustomPattern.html) interface.
The basic syntax for supplying a custom pattern is defined by the [ICustomPattern](https://chevrotain.io/documentation/11_0_3/interfaces/ICustomPattern.html) interface.
Example:

```javascript
Expand Down Expand Up @@ -62,7 +62,7 @@ createToken({
pattern: { exec: matchInteger },

// Optional property that will enable optimizations in the lexer
// See: https://chevrotain.io/documentation/11_0_2/interfaces/ITokenConfig.html#start_chars_hint
// See: https://chevrotain.io/documentation/11_0_3/interfaces/ITokenConfig.html#start_chars_hint
start_chars_hint: ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
});
```
Expand Down Expand Up @@ -99,7 +99,7 @@ function matchInteger(text, offset, matchedTokens, groups) {

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).

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/11_0_2/interfaces/ILexingResult.html)).
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/11_0_3/interfaces/ILexingResult.html)).
These arguments are the current state of the lexing result so even if the lexer has performed error recovery any tokens found
in those arguments are still guaranteed to be in the final result.

Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/guide/generating_syntax_diagrams.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ library by @tabatkins.

## Instructions

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

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

0 comments on commit ac58066

Please sign in to comment.