@thi.ng/oquery 2.3.10 → 2.3.12
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.
- package/CHANGELOG.md +3 -113
- package/README.md +1 -1
- package/package.json +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-29T16:25:48Z
|
|
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
|
|
@@ -50,115 +52,3 @@ and/or version bumps of transitive dependencies.
|
|
|
50
52
|
- add MatchMultipleOpts()
|
|
51
53
|
- refactor matchStrings() as syntax sugar
|
|
52
54
|
- update tests
|
|
53
|
-
|
|
54
|
-
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@2.1.0) (2021-11-17)
|
|
55
|
-
|
|
56
|
-
#### 🚀 Features
|
|
57
|
-
|
|
58
|
-
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
59
|
-
Improving the overall build ergonomics
|
|
60
|
-
- introduced a tools workspaces
|
|
61
|
-
- imported it in all needed packages/examples
|
|
62
|
-
- inclusive project root
|
|
63
|
-
|
|
64
|
-
#### ♻️ Refactoring
|
|
65
|
-
|
|
66
|
-
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
67
|
-
this commit reverts (partly) changes made in:
|
|
68
|
-
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
69
|
-
overall purpose is better testament ergonomics:
|
|
70
|
-
instead of having to pass NODE_OPTIONS with every invocation
|
|
71
|
-
having a binary to handle this for us.
|
|
72
|
-
|
|
73
|
-
### [2.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@2.0.8) (2021-11-10)
|
|
74
|
-
|
|
75
|
-
#### ♻️ Refactoring
|
|
76
|
-
|
|
77
|
-
- update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
|
|
78
|
-
|
|
79
|
-
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@2.0.1) (2021-10-13)
|
|
80
|
-
|
|
81
|
-
#### ♻️ Refactoring
|
|
82
|
-
|
|
83
|
-
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
84
|
-
- add .js suffix for all relative imports
|
|
85
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
86
|
-
|
|
87
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@2.0.0) (2021-10-12)
|
|
88
|
-
|
|
89
|
-
#### 🛑 Breaking changes
|
|
90
|
-
|
|
91
|
-
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
92
|
-
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
93
|
-
- only ESM modules will be published from now on
|
|
94
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
95
|
-
- i.e. launch NodeJS via:
|
|
96
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
97
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
98
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
99
|
-
Also:
|
|
100
|
-
- normalize/restructure/reorg all package.json files
|
|
101
|
-
- cleanup all build scripts, remove obsolete
|
|
102
|
-
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
103
|
-
|
|
104
|
-
#### ♻️ Refactoring
|
|
105
|
-
|
|
106
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
107
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
108
|
-
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
109
|
-
- update defmulti impls ([8d3d49f](https://github.com/thi-ng/umbrella/commit/8d3d49f))
|
|
110
|
-
|
|
111
|
-
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@0.3.0) (2021-03-22)
|
|
112
|
-
|
|
113
|
-
#### 🚀 Features
|
|
114
|
-
|
|
115
|
-
- fix [#264](https://github.com/thi-ng/umbrella/issues/264), add intersection queries ([f3ad108](https://github.com/thi-ng/umbrella/commit/f3ad108))
|
|
116
|
-
- add `QueryOpts.intersect` to force intersection query
|
|
117
|
-
(like `cwise` option, this is for O-terms only)
|
|
118
|
-
- add `intersect()` helper predicate
|
|
119
|
-
- update `coerce()`
|
|
120
|
-
- update `objQuery()`/`arrayQuery()` term initialization
|
|
121
|
-
- add/update `DEFAULT_OPTS`
|
|
122
|
-
- update tests
|
|
123
|
-
|
|
124
|
-
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@0.2.0) (2020-12-07)
|
|
125
|
-
|
|
126
|
-
#### 🚀 Features
|
|
127
|
-
|
|
128
|
-
- add array support, add QueryOpts ([8498db0](https://github.com/thi-ng/umbrella/commit/8498db0))
|
|
129
|
-
- add QueryFn interface to define overrides for fn
|
|
130
|
-
returned by defQuery()
|
|
131
|
-
- if query called w/ source array, use only P/O terms,
|
|
132
|
-
no subjects (array indices), return array
|
|
133
|
-
- add `full` and `inspect` QueryOpts to control result format and
|
|
134
|
-
array value matching behavior
|
|
135
|
-
- add/update tests
|
|
136
|
-
- add defKeyQuery(), refactor/fix types ([4c5ba42](https://github.com/thi-ng/umbrella/commit/4c5ba42))
|
|
137
|
-
- add conditional types to fix return type inference (QueryFn/KeyQueryFn)
|
|
138
|
-
- add defKeyQuery()
|
|
139
|
-
- extract arrayQuery()/objQuery()
|
|
140
|
-
- optimize arrayQuery() by pre-selecting query impl
|
|
141
|
-
|
|
142
|
-
#### ♻️ Refactoring
|
|
143
|
-
|
|
144
|
-
- update QueryOpts and defaults ([90f4ee7](https://github.com/thi-ng/umbrella/commit/90f4ee7))
|
|
145
|
-
- rename full => partial (flip conditions)
|
|
146
|
-
- rename inspect => cwise
|
|
147
|
-
- update tests
|
|
148
|
-
|
|
149
|
-
### [0.1.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@0.1.12) (2020-09-22)
|
|
150
|
-
|
|
151
|
-
#### ♻️ Refactoring
|
|
152
|
-
|
|
153
|
-
- dedupe, simplify sub-query fns ([498e4e5](https://github.com/thi-ng/umbrella/commit/498e4e5))
|
|
154
|
-
- further sub-query extraction/re-use ([4fb9b4b](https://github.com/thi-ng/umbrella/commit/4fb9b4b))
|
|
155
|
-
|
|
156
|
-
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/oquery@0.1.0) (2020-07-04)
|
|
157
|
-
|
|
158
|
-
#### 🚀 Features
|
|
159
|
-
|
|
160
|
-
- import as new pkg ([aaa3086](https://github.com/thi-ng/umbrella/commit/aaa3086))
|
|
161
|
-
|
|
162
|
-
#### ♻️ Refactoring
|
|
163
|
-
|
|
164
|
-
- minor refactoring ([03a1943](https://github.com/thi-ng/umbrella/commit/03a1943))
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 201 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/oquery",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.12",
|
|
4
4
|
"description": "Datalog-inspired, optimized pattern/predicate query engine for JS objects & arrays of objects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -33,24 +33,22 @@
|
|
|
33
33
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
34
|
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
35
|
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
-
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
37
36
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
38
37
|
"pub": "yarn npm publish --access public",
|
|
39
38
|
"test": "bun test",
|
|
40
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/compare": "^2.4.
|
|
46
|
-
"@thi.ng/defmulti": "^3.0.
|
|
47
|
-
"@thi.ng/equiv": "^2.1.
|
|
42
|
+
"@thi.ng/api": "^8.11.19",
|
|
43
|
+
"@thi.ng/checks": "^3.6.22",
|
|
44
|
+
"@thi.ng/compare": "^2.4.11",
|
|
45
|
+
"@thi.ng/defmulti": "^3.0.58",
|
|
46
|
+
"@thi.ng/equiv": "^2.1.75"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
|
-
"@microsoft/api-extractor": "^7.48.1",
|
|
51
49
|
"esbuild": "^0.24.2",
|
|
52
50
|
"typedoc": "^0.27.6",
|
|
53
|
-
"typescript": "^5.7.
|
|
51
|
+
"typescript": "^5.7.3"
|
|
54
52
|
},
|
|
55
53
|
"keywords": [
|
|
56
54
|
"array",
|
|
@@ -100,5 +98,5 @@
|
|
|
100
98
|
],
|
|
101
99
|
"year": 2020
|
|
102
100
|
},
|
|
103
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
|
|
104
102
|
}
|