From f3b020a720bfe33ce67764dceb89b5aeb698855a Mon Sep 17 00:00:00 2001 From: Chip Morningstar Date: Tue, 1 Jun 2021 12:02:26 -0700 Subject: [PATCH] feat(swing-store-simple)!: remove .jsonlines hack from simple swing store BREAKING CHANGE: most uses of simple swing store use it to get a purely in-memory store for testing purposes, but a few places used the older .jsonlines thing for simple persistence. Any existing code that did that requires revision to use swing-store-lmdb or another persistence mechanism, though all the known cases that did that have been so revised as part of this update. --- packages/swing-store-simple/src/simpleSwingStore.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/swing-store-simple/src/simpleSwingStore.js b/packages/swing-store-simple/src/simpleSwingStore.js index ddaa69375c9..5b09d1b44fd 100644 --- a/packages/swing-store-simple/src/simpleSwingStore.js +++ b/packages/swing-store-simple/src/simpleSwingStore.js @@ -286,8 +286,10 @@ function makeSwingStore() { */ export function initSwingStore(dirPath) { if (dirPath) { - console.log( - `Warning: initSwingStore ignoring dirPath, simpleStore is memory only`, + console.error( + Error( + `Warning: initSwingStore ignoring dirPath, simpleStore is memory only`, + ), ); } return makeSwingStore(); @@ -309,8 +311,10 @@ export function initSwingStore(dirPath) { */ export function openSwingStore(dirPath) { if (dirPath) { - console.log( - `Warning: openSwingStore ignoring dirPath, simpleStore is memory only`, + console.error( + Error( + `Warning: initSwingStore ignoring dirPath, simpleStore is memory only`, + ), ); } return makeSwingStore();