@thi.ng/pointfree-lang 2.2.62 → 2.2.64

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 (3) hide show
  1. package/CHANGELOG.md +3 -250
  2. package/package.json +11 -12
  3. package/parser.js +3 -3
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-04T21:07:38Z
3
+ - **Last updated**: 2025-01-23T13:39:11Z
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.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -38,252 +40,3 @@ and/or version bumps of transitive dependencies.
38
40
  #### ♻️ Refactoring
39
41
 
40
42
  - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
41
-
42
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.1.0) (2021-11-17)
43
-
44
- #### 🚀 Features
45
-
46
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
47
- Improving the overall build ergonomics
48
- - introduced a tools workspaces
49
- - imported it in all needed packages/examples
50
- - inclusive project root
51
-
52
- #### ♻️ Refactoring
53
-
54
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
55
- this commit reverts (partly) changes made in:
56
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
57
- overall purpose is better testament ergonomics:
58
- instead of having to pass NODE_OPTIONS with every invocation
59
- having a binary to handle this for us.
60
-
61
- ### [2.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.0.8) (2021-11-10)
62
-
63
- #### ♻️ Refactoring
64
-
65
- - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
66
-
67
- ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.0.1) (2021-10-13)
68
-
69
- #### ♻️ Refactoring
70
-
71
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
72
- - add .js suffix for all relative imports
73
-
74
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.0.0) (2021-10-12)
75
-
76
- #### 🛑 Breaking changes
77
-
78
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
79
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
80
- - only ESM modules will be published from now on
81
- - CJS obsolete due to ESM support in recent versions of node:
82
- - i.e. launch NodeJS via:
83
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
84
- - in the node REPL use `await import(...)` instead of `require()`
85
- - UMD obsolete due to widespread browser support for ESM
86
- Also:
87
- - normalize/restructure/reorg all package.json files
88
- - cleanup all build scripts, remove obsolete
89
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
90
-
91
- #### 🩹 Bug fixes
92
-
93
- - update bash wrapper ([4170b4b](https://github.com/thi-ng/umbrella/commit/4170b4b))
94
-
95
- #### ♻️ Refactoring
96
-
97
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
98
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
99
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
100
- - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
101
- - largely related to recent updates/restructuring of these packages:
102
- - api
103
- - defmulti
104
- - errors
105
- - logger
106
- - minor pkg restructure ([73ea3d1](https://github.com/thi-ng/umbrella/commit/73ea3d1))
107
- - migrate CLI to TS ([9381d83](https://github.com/thi-ng/umbrella/commit/9381d83))
108
-
109
- ### [1.4.18](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.4.18) (2020-12-22)
110
-
111
- #### ♻️ Refactoring
112
-
113
- - fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([7ae9e27](https://github.com/thi-ng/umbrella/commit/7ae9e27))
114
- - replace NodeType enum w/ type alias
115
- - update grammar & compiler
116
-
117
- ### [1.4.17](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.4.17) (2020-12-07)
118
-
119
- #### ♻️ Refactoring
120
-
121
- - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
122
-
123
- ### [1.4.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.4.14) (2020-09-22)
124
-
125
- #### ♻️ Refactoring
126
-
127
- - update visitWord(), extract pushLocals() ([13a68e7](https://github.com/thi-ng/umbrella/commit/13a68e7))
128
-
129
- ### [1.4.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.4.3) (2020-05-14)
130
-
131
- #### ♻️ Refactoring
132
-
133
- - minor updates to visitors ([c9f3f18](https://github.com/thi-ng/umbrella/commit/c9f3f18))
134
-
135
- ## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.4.0) (2020-04-27)
136
-
137
- #### 🚀 Features
138
-
139
- - update grammar (add line comments) ([a8cdbe8](https://github.com/thi-ng/umbrella/commit/a8cdbe8))
140
- - update readme
141
- - add word metadata ([7343116](https://github.com/thi-ng/umbrella/commit/7343116))
142
- - store word name, source loc, stack comment & arities in
143
- `__meta` key of compiled functions
144
-
145
- #### ♻️ Refactoring
146
-
147
- - word metadata, tests & readme ([3aeb5d7](https://github.com/thi-ng/umbrella/commit/3aeb5d7))
148
-
149
- ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.3.0) (2020-04-16)
150
-
151
- #### 🚀 Features
152
-
153
- - add `>word`, update pkg & readme ([4fe2f7f](https://github.com/thi-ng/umbrella/commit/4fe2f7f))
154
-
155
- #### ♻️ Refactoring
156
-
157
- - update renamed words ([0a9f5ec](https://github.com/thi-ng/umbrella/commit/0a9f5ec))
158
-
159
- ### [1.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.2.1) (2020-04-05)
160
-
161
- #### ♻️ Refactoring
162
-
163
- - switch to non-const enums ([7a8a3b1](https://github.com/thi-ng/umbrella/commit/7a8a3b1))
164
-
165
- ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.2.0) (2020-03-29)
166
-
167
- #### 🚀 Features
168
-
169
- - add initial CLI tooling, add new aliases, update deps ([90c9d96](https://github.com/thi-ng/umbrella/commit/90c9d96))
170
- - add `try` alias, fix `include` cli word ([ab61e5b](https://github.com/thi-ng/umbrella/commit/ab61e5b))
171
-
172
- ### [1.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.1.10) (2020-02-25)
173
-
174
- #### ♻️ Refactoring
175
-
176
- - update imports ([fad6887](https://github.com/thi-ng/umbrella/commit/fad6887))
177
-
178
- ### [1.1.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.1.5) (2019-09-21)
179
-
180
- #### 🩹 Bug fixes
181
-
182
- - update imports ([8de1366](https://github.com/thi-ng/umbrella/commit/8de1366))
183
-
184
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.1.0) (2019-07-07)
185
-
186
- #### 🚀 Features
187
-
188
- - enable TS strict compiler flags (refactor) ([1f9d155](https://github.com/thi-ng/umbrella/commit/1f9d155))
189
-
190
- #### ♻️ Refactoring
191
-
192
- - address TS strictNullChecks flag ([50bf59a](https://github.com/thi-ng/umbrella/commit/50bf59a))
193
-
194
- ### [1.0.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.0.12) (2019-04-24)
195
-
196
- #### ♻️ Refactoring
197
-
198
- - replace DEBUG w/ LOGGER ([abec897](https://github.com/thi-ng/umbrella/commit/abec897))
199
-
200
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@1.0.0) (2019-01-21)
201
-
202
- #### 🛑 Breaking changes
203
-
204
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
205
- - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
206
- - build scripts now first build ES6 modules in package root, then call
207
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
208
- - all imports MUST be updated to only refer to package level
209
- (not individual files anymore). tree shaking in user land will get rid of
210
- all unused imported symbols.
211
-
212
- #### 🩹 Bug fixes
213
-
214
- - update NodeType handling ([227be4b](https://github.com/thi-ng/umbrella/commit/227be4b))
215
-
216
- ### [0.2.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@0.2.26) (2018-12-15)
217
-
218
- #### 🩹 Bug fixes
219
-
220
- - update parser stubs (TS3.2.x) ([3b3e503](https://github.com/thi-ng/umbrella/commit/3b3e503))
221
-
222
- ### [0.2.22](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@0.2.22) (2018-09-24)
223
-
224
- #### ⏱ Performance improvements
225
-
226
- - `NodeType` => const enum ([a7b9a42](https://github.com/thi-ng/umbrella/commit/a7b9a42))
227
- - export `__NodeType` for reverse lookups
228
-
229
- ### [0.2.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@0.2.8) (2018-05-10)
230
-
231
- #### ♻️ Refactoring
232
-
233
- - update deps & imports in all packages due to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) split ([bc45636](https://github.com/thi-ng/umbrella/commit/bc45636))
234
-
235
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@0.2.0) (2018-04-03)
236
-
237
- #### 🚀 Features
238
-
239
- - update grammar, aliases, ASTNode, NodeType ([ee684c7](https://github.com/thi-ng/umbrella/commit/ee684c7))
240
- - add VAR_DEREF_IMM node type (immediate/non-defered var deref)
241
- - add node source location info
242
- - add VarDerefImmediate and NonWordExpr grammar rules
243
- - add more aliases for built-ins
244
- - overhaul visitor quote/array & map handling, grammar ([769e84d](https://github.com/thi-ng/umbrella/commit/769e84d))
245
- - revert / remove NodeType.VAR_DEREF_IMM
246
- - add resolveNode, resolveArray, resolveMap
247
- - update resolveVar to use hasOwnProperty() check
248
- - simplify VisitorState and handling
249
- - add source location handling (for improved error msg)
250
- - update aliases
251
- - implement dynamic var scoping & local var grammar ([3310ec3](https://github.com/thi-ng/umbrella/commit/3310ec3))
252
- - add loadvar/storevar/beginvar/endvar word fns
253
- - add `^{ x y }` syntax to autobind word local vars
254
- - update var lookups/updates to use scope/binding stack (per var)
255
- - update visitWord() to inject local var handling (if needed)
256
- - update ensureEnv() to prepare var stacks
257
- - add finalizeEnv() to resolve final var results and remove var stacks
258
- - fix aliases
259
- - add docs
260
-
261
- #### 🩹 Bug fixes
262
-
263
- - update grammar (parse order), add tests ([5450e50](https://github.com/thi-ng/umbrella/commit/5450e50))
264
-
265
- #### ♻️ Refactoring
266
-
267
- - rename grammar rule / nodetype MAP=>OBJ, add docs ([1c899a1](https://github.com/thi-ng/umbrella/commit/1c899a1))
268
- - rename resolveMap => resolveObject
269
- - rename visitMap => visitObject
270
-
271
- ### [0.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@0.1.3) (2018-04-01)
272
-
273
- #### 🩹 Bug fixes
274
-
275
- - object literal grammar rule (allow initial WS) ([208b5c3](https://github.com/thi-ng/umbrella/commit/208b5c3))
276
-
277
- ### [0.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@0.1.2) (2018-03-31)
278
-
279
- #### 🩹 Bug fixes
280
-
281
- - add ensureEnv, update re-exports, update readme ([659cce9](https://github.com/thi-ng/umbrella/commit/659cce9))
282
- - add ensureEnv to avoid errors if `__words` key is missing
283
- - minor formatting fix in grammar
284
-
285
- ### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@0.1.1) (2018-03-31)
286
-
287
- #### 🚀 Features
288
-
289
- - initial import [@thi.ng/pointfree-lang](https://github.com/thi-ng/umbrella/tree/main/packages/pointfree-lang) ([3dec35a](https://github.com/thi-ng/umbrella/commit/3dec35a))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pointfree-lang",
3
- "version": "2.2.62",
3
+ "version": "2.2.64",
4
4
  "description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -44,20 +44,19 @@
44
44
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
45
45
  },
46
46
  "dependencies": {
47
- "@thi.ng/api": "^8.11.16",
48
- "@thi.ng/args": "^2.3.54",
49
- "@thi.ng/bench": "^3.6.9",
50
- "@thi.ng/errors": "^2.5.22",
51
- "@thi.ng/file-io": "^2.1.22",
52
- "@thi.ng/logger": "^3.0.27",
53
- "@thi.ng/pointfree": "^3.1.98"
47
+ "@thi.ng/api": "^8.11.18",
48
+ "@thi.ng/args": "^2.3.56",
49
+ "@thi.ng/bench": "^3.6.11",
50
+ "@thi.ng/errors": "^2.5.24",
51
+ "@thi.ng/file-io": "^2.1.24",
52
+ "@thi.ng/logger": "^3.0.29",
53
+ "@thi.ng/pointfree": "^3.1.100"
54
54
  },
55
55
  "devDependencies": {
56
- "@microsoft/api-extractor": "^7.48.1",
57
56
  "esbuild": "^0.24.2",
58
- "pegjs": "0.11.0-master.b7b87ea",
57
+ "pegjs": "0.11.0-master.f69239d",
59
58
  "typedoc": "^0.27.6",
60
- "typescript": "^5.7.2"
59
+ "typescript": "^5.7.3"
61
60
  },
62
61
  "keywords": [
63
62
  "ast",
@@ -112,5 +111,5 @@
112
111
  "parent": "@thi.ng/pointfree",
113
112
  "year": 2018
114
113
  },
115
- "gitHead": "56e7a1724e7b0cb5c41119f60320b6ff0e8a3c1c\n"
114
+ "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
116
115
  }
package/parser.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by PEG.js v0.11.0-master.b7b87ea, https://pegjs.org/
1
+ // Generated by PEG.js v0.11.0-master.f69239d, https://pegjs.org/
2
2
 
3
3
  function peg$subclass(child, parent) {
4
4
  function C() { this.constructor = child; }
@@ -21,7 +21,7 @@ function peg$SyntaxError(message, expected, found, location) {
21
21
 
22
22
  peg$subclass(peg$SyntaxError, Error);
23
23
 
24
- peg$SyntaxError.buildMessage = function(expected, found, location) {
24
+ peg$SyntaxError.buildMessage = function(expected, found) {
25
25
  var DESCRIBE_EXPECTATION_FNS = {
26
26
  literal: function(expectation) {
27
27
  return "\"" + literalEscape(expectation.text) + "\"";
@@ -433,7 +433,7 @@ function peg$parse(input, options) {
433
433
 
434
434
  function peg$buildStructuredError(expected, found, location) {
435
435
  return new peg$SyntaxError(
436
- peg$SyntaxError.buildMessage(expected, found, location),
436
+ peg$SyntaxError.buildMessage(expected, found),
437
437
  expected,
438
438
  found,
439
439
  location