@thi.ng/parse 2.2.15 → 2.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +53 -53
  2. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-10-28T19:08:39Z
3
+ - **Last updated**: 2022-11-23T22:46:54Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -53,9 +53,9 @@ and/or version bumps of transitive dependencies.
53
53
 
54
54
  #### ♻️ Refactoring
55
55
 
56
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
57
56
  - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
58
57
  - add .js suffix for all relative imports
58
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
59
59
 
60
60
  # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/parse@2.0.0) (2021-10-12)
61
61
 
@@ -76,16 +76,16 @@ and/or version bumps of transitive dependencies.
76
76
 
77
77
  #### ♻️ Refactoring
78
78
 
79
- - update defmulti impls ([0303769](https://github.com/thi-ng/umbrella/commit/0303769))
79
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
80
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
81
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
80
82
  - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
81
83
  - largely related to recent updates/restructuring of these packages:
82
84
  - api
83
85
  - defmulti
84
86
  - errors
85
87
  - logger
86
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
87
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
88
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
88
+ - update defmulti impls ([0303769](https://github.com/thi-ng/umbrella/commit/0303769))
89
89
 
90
90
  ### [0.9.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/parse@0.9.7) (2020-12-07)
91
91
 
@@ -110,20 +110,20 @@ and/or version bumps of transitive dependencies.
110
110
 
111
111
  #### 🚀 Features
112
112
 
113
+ - add replace/xfReplace() xform ([7291181](https://github.com/thi-ng/umbrella/commit/7291181))
113
114
  - enable replacement rule transforms ([ca22432](https://github.com/thi-ng/umbrella/commit/ca22432))
114
115
  - allow strings as rule transform in grammar
115
- - add replace/xfReplace() xform ([7291181](https://github.com/thi-ng/umbrella/commit/7291181))
116
116
 
117
117
  ## [0.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/parse@0.8.0) (2020-07-19)
118
118
 
119
119
  #### 🚀 Features
120
120
 
121
- - update repeat grammar ([7aae9ac](https://github.com/thi-ng/umbrella/commit/7aae9ac))
122
- - support specifying min repeat count only (max: infinity), e.g. `{3,}`
121
+ - add nest()/xfNest() transform ([af9c97b](https://github.com/thi-ng/umbrella/commit/af9c97b))
123
122
  - update grammar (xform rule refs) ([22188a4](https://github.com/thi-ng/umbrella/commit/22188a4))
124
123
  - allow other parse rules as rule xform (via `xfNest()`)
125
124
  - add tests
126
- - add nest()/xfNest() transform ([af9c97b](https://github.com/thi-ng/umbrella/commit/af9c97b))
125
+ - update repeat grammar ([7aae9ac](https://github.com/thi-ng/umbrella/commit/7aae9ac))
126
+ - support specifying min repeat count only (max: infinity), e.g. `{3,}`
127
127
 
128
128
  ### [0.7.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/parse@0.7.2) (2020-07-18)
129
129
 
@@ -146,8 +146,14 @@ and/or version bumps of transitive dependencies.
146
146
 
147
147
  #### 🚀 Features
148
148
 
149
- - turn xfPrint() into HOF xform ([d86fa53](https://github.com/thi-ng/umbrella/commit/d86fa53))
150
- - add opt support for custom print fns (other than console)
149
+ - add lookahead() combinator, add tests ([ee35038](https://github.com/thi-ng/umbrella/commit/ee35038))
150
+ - update lookahead ([51a8dc5](https://github.com/thi-ng/umbrella/commit/51a8dc5))
151
+ - add pass flag and only succeed if main parser passed at least once
152
+ - update grammar DSL ([accacf9](https://github.com/thi-ng/umbrella/commit/accacf9))
153
+ - add `.` catch-all term
154
+ - add `(?=...)` suffix form for lookahead
155
+ - update TERM/TERM_BODY
156
+ - lookahead w/ configurable capture ([542c066](https://github.com/thi-ng/umbrella/commit/542c066))
151
157
  - update/fix grammar DSL, add trim ([f82ba1f](https://github.com/thi-ng/umbrella/commit/f82ba1f))
152
158
  - update lookahead (cap, non-cap versions)
153
159
  - add lookahead for alt terms
@@ -155,21 +161,15 @@ and/or version bumps of transitive dependencies.
155
161
  - add line comment support
156
162
  - fix `{n}` repeat modifier handling
157
163
  - add `trim()`/`xfTrim()` xforms
158
- - lookahead w/ configurable capture ([542c066](https://github.com/thi-ng/umbrella/commit/542c066))
159
- - update grammar DSL ([accacf9](https://github.com/thi-ng/umbrella/commit/accacf9))
160
- - add `.` catch-all term
161
- - add `(?=...)` suffix form for lookahead
162
- - update TERM/TERM_BODY
163
- - update lookahead ([51a8dc5](https://github.com/thi-ng/umbrella/commit/51a8dc5))
164
- - add pass flag and only succeed if main parser passed at least once
165
- - add lookahead() combinator, add tests ([ee35038](https://github.com/thi-ng/umbrella/commit/ee35038))
164
+ - turn xfPrint() into HOF xform ([d86fa53](https://github.com/thi-ng/umbrella/commit/d86fa53))
165
+ - add opt support for custom print fns (other than console)
166
166
 
167
167
  ## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/parse@0.6.0) (2020-06-28)
168
168
 
169
169
  #### 🚀 Features
170
170
 
171
- - add count/xfCount transform ([056ae08](https://github.com/thi-ng/umbrella/commit/056ae08))
172
171
  - add `!` discard modifier to grammar ([456efdc](https://github.com/thi-ng/umbrella/commit/456efdc))
172
+ - add count/xfCount transform ([056ae08](https://github.com/thi-ng/umbrella/commit/056ae08))
173
173
 
174
174
  ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/parse@0.5.0) (2020-04-23)
175
175
 
@@ -206,21 +206,15 @@ and/or version bumps of transitive dependencies.
206
206
 
207
207
  #### 🚀 Features
208
208
 
209
- - add grammar default transforms, update/fix rules ([03ed965](https://github.com/thi-ng/umbrella/commit/03ed965))
210
- - update ESC & whitespace parsers ([069a6ef](https://github.com/thi-ng/umbrella/commit/069a6ef))
211
- - add discarding combinators, move discard ([e09a2c4](https://github.com/thi-ng/umbrella/commit/e09a2c4))
212
- - add repeatD, oneOrMoreD, zeroOrMoreD
213
- - update grammar parser & compiler ([822fcba](https://github.com/thi-ng/umbrella/commit/822fcba))
214
- - add GrammarOpts
215
- - update rules to enable repetition of all terms
216
- - add string term
217
- - make debug output optional
218
- - add/update/rename parser presets ([12f2499](https://github.com/thi-ng/umbrella/commit/12f2499))
219
- - add withID() xform, add doc strings ([e16426b](https://github.com/thi-ng/umbrella/commit/e16426b))
220
- - add/update combinators ([e4eab03](https://github.com/thi-ng/umbrella/commit/e4eab03))
221
- - add startsWith, endsWith, entireLine, entirely
222
- - add wrap()
223
- - rename dalt/dseq => altD/seqD
209
+ - add skipWhile(), more discarded wrappers ([832c0b7](https://github.com/thi-ng/umbrella/commit/832c0b7))
210
+ - add skipWhile()
211
+ - add dalt(), dseq() wrappers
212
+ - add NL, DNL presets
213
+ - add ParseContext .state setter
214
+ - add more whitespace presets ([1398e2b](https://github.com/thi-ng/umbrella/commit/1398e2b))
215
+ - add dynamic() & DynamicParser ([b914267](https://github.com/thi-ng/umbrella/commit/b914267))
216
+ - initial checkin grammar compiler ([38e9c66](https://github.com/thi-ng/umbrella/commit/38e9c66))
217
+ - add ParseContext.reset(), update addChild() ([d47c0a2](https://github.com/thi-ng/umbrella/commit/d47c0a2))
224
218
  - add/update/rename parser primitives ([328103f](https://github.com/thi-ng/umbrella/commit/328103f))
225
219
  - add LitParser type to annotate single-char parsers
226
220
  - add satisfyD()
@@ -231,15 +225,21 @@ and/or version bumps of transitive dependencies.
231
225
  - export predicate versions:
232
226
  - litP(), noneOfP(), oneOfP(), rangeP()
233
227
  - update skipWhile() behavior
234
- - add ParseContext.reset(), update addChild() ([d47c0a2](https://github.com/thi-ng/umbrella/commit/d47c0a2))
235
- - initial checkin grammar compiler ([38e9c66](https://github.com/thi-ng/umbrella/commit/38e9c66))
236
- - add dynamic() & DynamicParser ([b914267](https://github.com/thi-ng/umbrella/commit/b914267))
237
- - add more whitespace presets ([1398e2b](https://github.com/thi-ng/umbrella/commit/1398e2b))
238
- - add skipWhile(), more discarded wrappers ([832c0b7](https://github.com/thi-ng/umbrella/commit/832c0b7))
239
- - add skipWhile()
240
- - add dalt(), dseq() wrappers
241
- - add NL, DNL presets
242
- - add ParseContext .state setter
228
+ - add/update combinators ([e4eab03](https://github.com/thi-ng/umbrella/commit/e4eab03))
229
+ - add startsWith, endsWith, entireLine, entirely
230
+ - add wrap()
231
+ - rename dalt/dseq => altD/seqD
232
+ - add withID() xform, add doc strings ([e16426b](https://github.com/thi-ng/umbrella/commit/e16426b))
233
+ - add/update/rename parser presets ([12f2499](https://github.com/thi-ng/umbrella/commit/12f2499))
234
+ - update grammar parser & compiler ([822fcba](https://github.com/thi-ng/umbrella/commit/822fcba))
235
+ - add GrammarOpts
236
+ - update rules to enable repetition of all terms
237
+ - add string term
238
+ - make debug output optional
239
+ - add discarding combinators, move discard ([e09a2c4](https://github.com/thi-ng/umbrella/commit/e09a2c4))
240
+ - add repeatD, oneOrMoreD, zeroOrMoreD
241
+ - update ESC & whitespace parsers ([069a6ef](https://github.com/thi-ng/umbrella/commit/069a6ef))
242
+ - add grammar default transforms, update/fix rules ([03ed965](https://github.com/thi-ng/umbrella/commit/03ed965))
243
243
 
244
244
  #### ♻️ Refactoring
245
245
 
@@ -268,20 +268,20 @@ and/or version bumps of transitive dependencies.
268
268
 
269
269
  #### 🚀 Features
270
270
 
271
- - update defContext, add basic array test ([cd7363d](https://github.com/thi-ng/umbrella/commit/cd7363d))
272
- - make retained state info optional ([a89ee87](https://github.com/thi-ng/umbrella/commit/a89ee87))
273
- - add ArrayReader, update pkg info ([3bec0db](https://github.com/thi-ng/umbrella/commit/3bec0db))
274
- - add ctx getters, add presets, update maybe ([02597bf](https://github.com/thi-ng/umbrella/commit/02597bf))
271
+ - import as new package ([151e50c](https://github.com/thi-ng/umbrella/commit/151e50c))
272
+ - update repeat ops, reader, initial state ([c5cfabe](https://github.com/thi-ng/umbrella/commit/c5cfabe))
273
+ - add collect/xfCollect, update xfPrint ([43f3368](https://github.com/thi-ng/umbrella/commit/43f3368))
275
274
  - update ParseContext, repeat & lift ([bef1d4f](https://github.com/thi-ng/umbrella/commit/bef1d4f))
276
275
  - add context debug option / tracing
277
276
  - add .addChild()
278
277
  - update repeat zero-match handling
279
278
  - simplify lift()
280
- - add collect/xfCollect, update xfPrint ([43f3368](https://github.com/thi-ng/umbrella/commit/43f3368))
281
- - update repeat ops, reader, initial state ([c5cfabe](https://github.com/thi-ng/umbrella/commit/c5cfabe))
282
- - import as new package ([151e50c](https://github.com/thi-ng/umbrella/commit/151e50c))
279
+ - add ctx getters, add presets, update maybe ([02597bf](https://github.com/thi-ng/umbrella/commit/02597bf))
280
+ - add ArrayReader, update pkg info ([3bec0db](https://github.com/thi-ng/umbrella/commit/3bec0db))
281
+ - make retained state info optional ([a89ee87](https://github.com/thi-ng/umbrella/commit/a89ee87))
282
+ - update defContext, add basic array test ([cd7363d](https://github.com/thi-ng/umbrella/commit/cd7363d))
283
283
 
284
284
  #### ♻️ Refactoring
285
285
 
286
- - split presets into sep files ([43f62c5](https://github.com/thi-ng/umbrella/commit/43f62c5))
287
286
  - update context, rename ops, remove arrays dep ([a913c96](https://github.com/thi-ng/umbrella/commit/a913c96))
287
+ - split presets into sep files ([43f62c5](https://github.com/thi-ng/umbrella/commit/43f62c5))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.2.15",
3
+ "version": "2.2.17",
4
4
  "description": "Purely functional parser combinators & AST generation for generic inputs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,18 +34,18 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.4.5",
38
- "@thi.ng/checks": "^3.3.2",
39
- "@thi.ng/defmulti": "^2.1.20",
40
- "@thi.ng/errors": "^2.2.3",
41
- "@thi.ng/strings": "^3.3.16"
37
+ "@thi.ng/api": "^8.5.0",
38
+ "@thi.ng/checks": "^3.3.3",
39
+ "@thi.ng/defmulti": "^2.1.22",
40
+ "@thi.ng/errors": "^2.2.4",
41
+ "@thi.ng/strings": "^3.3.18"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@microsoft/api-extractor": "^7.33.5",
45
- "@thi.ng/testament": "^0.3.4",
45
+ "@thi.ng/testament": "^0.3.5",
46
46
  "rimraf": "^3.0.2",
47
47
  "tools": "^0.0.1",
48
- "typedoc": "^0.23.18",
48
+ "typedoc": "^0.23.20",
49
49
  "typescript": "^4.8.4"
50
50
  },
51
51
  "keywords": [
@@ -71,8 +71,8 @@
71
71
  "node": ">=12.7"
72
72
  },
73
73
  "files": [
74
- "*.js",
75
- "*.d.ts",
74
+ "./*.js",
75
+ "./*.d.ts",
76
76
  "combinators",
77
77
  "presets",
78
78
  "prims",
@@ -241,5 +241,5 @@
241
241
  ],
242
242
  "year": 2020
243
243
  },
244
- "gitHead": "a4b60163a8caddceed5ec1b6b3584d164f61e7b6\n"
244
+ "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
245
245
  }