@thi.ng/rstream-query 2.1.120 → 2.1.121

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-27T09:53:45Z
3
+ - **Last updated**: 2024-04-08T14:59:29Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.1.121](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream-query@2.1.121) (2024-04-08)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update reducer handling due to updates in [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/main/packages/transducers) pkg ([e0e5654](https://github.com/thi-ng/umbrella/commit/e0e5654))
17
+
12
18
  ### [2.1.102](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream-query@2.1.102) (2024-02-16)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 190 standalone projects, maintained as part
10
+ > This is one of 191 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
  >
@@ -74,7 +74,13 @@ this time built on the streaming primitives provided by
74
74
  yarn add @thi.ng/rstream-query
75
75
  ```
76
76
 
77
- ES module import:
77
+ ESM import:
78
+
79
+ ```ts
80
+ import * as rsq from "@thi.ng/rstream-query";
81
+ ```
82
+
83
+ Browser ESM import:
78
84
 
79
85
  ```html
80
86
  <script type="module" src="https://cdn.skypack.dev/@thi.ng/rstream-query"></script>
@@ -85,10 +91,10 @@ ES module import:
85
91
  For Node.js REPL:
86
92
 
87
93
  ```js
88
- const rstreamQuery = await import("@thi.ng/rstream-query");
94
+ const rsq = await import("@thi.ng/rstream-query");
89
95
  ```
90
96
 
91
- Package sizes (brotli'd, pre-treeshake): ESM: 2.61 KB
97
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.60 KB
92
98
 
93
99
  ## Dependencies
94
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-query",
3
- "version": "2.1.120",
3
+ "version": "2.1.121",
4
4
  "description": "@thi.ng/rstream based triple store & reactive query engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,16 +36,16 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.31",
40
- "@thi.ng/associative": "^6.3.54",
41
- "@thi.ng/checks": "^3.5.5",
42
- "@thi.ng/equiv": "^2.1.53",
43
- "@thi.ng/errors": "^2.5.2",
44
- "@thi.ng/logger": "^3.0.7",
45
- "@thi.ng/math": "^5.10.8",
46
- "@thi.ng/rstream": "^8.3.19",
47
- "@thi.ng/rstream-dot": "^3.0.70",
48
- "@thi.ng/transducers": "^8.9.18"
39
+ "@thi.ng/api": "^8.10.0",
40
+ "@thi.ng/associative": "^6.3.55",
41
+ "@thi.ng/checks": "^3.6.0",
42
+ "@thi.ng/equiv": "^2.1.54",
43
+ "@thi.ng/errors": "^2.5.3",
44
+ "@thi.ng/logger": "^3.0.8",
45
+ "@thi.ng/math": "^5.10.9",
46
+ "@thi.ng/rstream": "^8.3.20",
47
+ "@thi.ng/rstream-dot": "^3.0.71",
48
+ "@thi.ng/transducers": "^9.0.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@microsoft/api-extractor": "^7.43.0",
@@ -106,8 +106,9 @@
106
106
  }
107
107
  },
108
108
  "thi.ng": {
109
+ "alias": "rsq",
109
110
  "parent": "@thi.ng/rstream",
110
111
  "year": 2018
111
112
  },
112
- "gitHead": "ce5ae2a322d50a7ce8ecccbd94fa55c496ba04fd\n"
113
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
113
114
  }
package/xforms.js CHANGED
@@ -19,10 +19,7 @@ const indexSel = (key) => (rfn) => {
19
19
  const r = rfn[2];
20
20
  return compR(rfn, (acc, e) => {
21
21
  LOGGER.fine("index sel", e.key, key);
22
- if (equiv(e.key, key)) {
23
- return r(acc, e.index);
24
- }
25
- return acc;
22
+ return equiv(e.key, key) ? r(acc, e.index) : acc;
26
23
  });
27
24
  };
28
25
  const resultTriples = (graph) => map((ids) => {