From ed278586ec3dc67191c723df312bcb0828a4b694 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 3 Dec 2019 22:31:19 -0500 Subject: [PATCH 1/2] (env/deps): use agilgur5/tsdx fork for esModuleInterop etc - this uses my fork which merged my PR/commit that fixes the missing __esModule in CJS build output - which has been an issue in this library since adopting tsdx, as that's still an undocumented bug in tsdx - the bug means that default imports get transpiled to x = require instead of { default: x } = require - which affects anyone using CJS and importing the default export - and most apps still transpile down, as do most test runners, so basically it affects almost everyone using the default - for more details, see https://github.com/agilgur5/mst-persist/issues/12 - until this fix is merged and released in the root library, will be using this fork - it also has my recently merged PR/commit that changes the cacheRoot to ./node_modules/.cache/ instead of ./rts2_cache_* directories - can remove them from gitignore and they no longer clutter app root --- .gitignore | 3 --- package-lock.json | 5 ++--- package.json | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 3cff13b..7494786 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ ### tsdx ### dist/ -.rts2_cache_cjs -.rts2_cache_esm -.rts2_cache_umd coverage/ ### Node ### diff --git a/package-lock.json b/package-lock.json index b2e09f9..65b1875 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9202,9 +9202,8 @@ } }, "tsdx": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/tsdx/-/tsdx-0.11.0.tgz", - "integrity": "sha512-BZNelFql6MiSgaoJN45XHjW2NyOk9DaD6Ai94c8DJy8QsadOm3OQRJVJU8rDgYRcIeWok90A3BBB2moZgui22Q==", + "version": "github:agilgur5/tsdx#4adb711dd865ad098d1f15edf7c615f85e1c5315", + "from": "github:agilgur5/tsdx#dist", "dev": true, "requires": { "@babel/core": "^7.4.4", diff --git a/package.json b/package.json index e9dbc42..fccf79f 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@types/jest": "^24.0.23", "mobx": "^5.11.0", "mobx-state-tree": "^3.14.0", - "tsdx": "^0.11.0", + "tsdx": "github:agilgur5/tsdx#dist", "typescript": "^3.5.2" } } From b2cc981c5e021ef819a8343b691b5729ce2bd2b0 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Wed, 4 Dec 2019 01:56:23 -0500 Subject: [PATCH 2/2] (pub): publish v0.1.3 -- fixes missing __esModule in CJS --- README.md | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5987663..58972d9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![package-json](https://img.shields.io/github/package-json/v/agilgur5/mst-persist.svg)](https://npmjs.org/package/mst-persist) [![releases](https://img.shields.io/github/tag-pre/agilgur5/mst-persist.svg)](https://github.com/agilgur5/mst-persist/releases) -[![commits](https://img.shields.io/github/commits-since/agilgur5/mst-persist/v0.1.2.svg)](https://github.com/agilgur5/mst-persist/commits/master) +[![commits](https://img.shields.io/github/commits-since/agilgur5/mst-persist/v0.1.3.svg)](https://github.com/agilgur5/mst-persist/commits/master)
[![dt](https://img.shields.io/npm/dt/mst-persist.svg)](https://npmjs.org/package/mst-persist) [![dy](https://img.shields.io/npm/dy/mst-persist.svg)](https://npmjs.org/package/mst-persist) diff --git a/package-lock.json b/package-lock.json index 65b1875..2de25d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mst-persist", - "version": "0.1.2", + "version": "0.1.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fccf79f..7afb370 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mst-persist", - "version": "0.1.2", + "version": "0.1.3", "description": "Persist and hydrate MobX-state-tree stores", "main": "dist/index.js", "module": "dist/mst-persist.esm.js",