@graffy/memory 0.15.25 → 0.16.0-alpha.1

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/index.cjs +1 -1
  2. package/index.mjs +2 -2
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  const common = require("@graffy/common");
3
3
  function index() {
4
4
  return (store) => {
5
- const state = [{ key: "", end: "\uFFFF", version: 0 }];
5
+ const state = [{ key: common.MIN_KEY, end: common.MAX_KEY, version: 0 }];
6
6
  const watcher = common.makeWatcher();
7
7
  store.on("read", [], async (query) => {
8
8
  return common.setVersion(common.slice(state, query).known, Date.now());
package/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { makeWatcher, setVersion, slice, merge } from "@graffy/common";
1
+ import { makeWatcher, setVersion, slice, merge, MIN_KEY, MAX_KEY } from "@graffy/common";
2
2
  function index() {
3
3
  return (store) => {
4
- const state = [{ key: "", end: "\uFFFF", version: 0 }];
4
+ const state = [{ key: MIN_KEY, end: MAX_KEY, version: 0 }];
5
5
  const watcher = makeWatcher();
6
6
  store.on("read", [], async (query) => {
7
7
  return setVersion(slice(state, query).known, Date.now());
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graffy/memory",
3
3
  "description": "Graffy module providing a simple in-memory store.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.15.25",
5
+ "version": "0.16.0-alpha.1",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -16,6 +16,6 @@
16
16
  },
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "@graffy/common": "0.15.25"
19
+ "@graffy/common": "0.16.0-alpha.1"
20
20
  }
21
21
  }