lezer-feel
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -9,2 +9,7 @@ # Changelog | ||
## 0.8.1 | ||
* `CHORE`: expose `normalizeContext` | ||
* `FIX`: correctly normalize multiple spaces in contextual names | ||
## 0.8.0 | ||
@@ -14,2 +19,6 @@ | ||
### Breaking Changes | ||
* Reworked `Name` vs. `VariableName` handling: `VariableName` now strictly refers to existing name access, while `Name` strictly refers to name definition | ||
## 0.7.0 | ||
@@ -16,0 +25,0 @@ |
@@ -5,4 +5,8 @@ import { LRParser, ContextTracker } from '@lezer/lr'; | ||
export function normalizeContext( | ||
context: Record<string, any> | ||
) : Record<string, any>; | ||
export function trackVariables( | ||
context: Record<string, any> | ||
) : ContextTracker<any>; |
@@ -575,3 +575,3 @@ import { ExternalTokenizer, ContextTracker, LRParser } from '@lezer/lr'; | ||
function normalizeContextKey(name) { | ||
return name.replace(/\s*([./\-'+*])\s*/g, ' $1 ').replace(/\s{2,}/, ' ').trim(); | ||
return name.replace(/\s*([./\-'+*])\s*/g, ' $1 ').replace(/\s{2,}/g, ' ').trim(); | ||
} | ||
@@ -886,2 +886,2 @@ | ||
export { parser, trackVariables }; | ||
export { normalizeContext, parser, trackVariables }; |
{ | ||
"name": "lezer-feel", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Lezer-based FEEL grammar", | ||
@@ -19,3 +19,5 @@ "main": "dist/index.cjs", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@types/chai": "^4.3.1", | ||
"@types/mocha": "^9.1.1", | ||
"chai": "^4.3.6", | ||
"chokidar-cli": "^3.0.0", | ||
@@ -46,3 +48,3 @@ "eslint": "^8.19.0", | ||
"lint": "eslint .", | ||
"test:types": "tsc --noEmit test/types.ts", | ||
"test:types": "tsc --noEmit test/test-types.ts", | ||
"prepare": "run-s build" | ||
@@ -49,0 +51,0 @@ }, |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
86070
1601
0
12