Skip to content

Commit

Permalink
feat(swing-store-simple)!: remove .jsonlines hack from simple swing s…
Browse files Browse the repository at this point in the history
…tore

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.
  • Loading branch information
FUDCo authored and michaelfig committed Jun 1, 2021
1 parent 757d6d5 commit f3b020a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/swing-store-simple/src/simpleSwingStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit f3b020a

Please sign in to comment.