fireproof-storage / fireproof

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
https://fireproof.storage
Other
219 stars 16 forks source link

(`@fireproof/encrypted-blockstore`): npm release build refresh? #110

Open DougAnderson444 opened 1 month ago

DougAnderson444 commented 1 month ago

I have just noticed that the @fireproof/encrypted-blockstore v0.17.7 on npm does not seem to have to latest build?

For example, I get:

error TS2305: Module '"@fireproof/encrypted-blockstore"' 
has no exported member 'Connection'.

import { Connection } from "@fireproof/encrypted-blockstore";

Looking deep into the node_modules, the dist/lib/index.js indeed does not export Connection (amongst other things it should be exporting...)

Perhaps the build didn't happen before the npm publish? :shrug:

jchris commented 1 month ago

what install are you using for this? eg which package / version?

The next (and final 0.17) release moves the connect module's core into the eb module and deprecates the connect module (the dependency graph it enforced on clients was unfriendly)

DougAnderson444 commented 1 month ago

For install it was simply:

npm install @fireproof/encrypted-blockstore

It installed @fireproof/encrypted-blockstore version 0.17.7 from npm

DougAnderson444 commented 1 month ago

Check it out here too, Connection et al. is clearly missing from the build:

https://cdn.jsdelivr.net/npm/@fireproof/encrypted-blockstore@0.17.7/dist/lib/index.js

Yet it clearly should be exported:

https://github.com/fireproof-storage/fireproof/blob/21f208e0650c8af0c12a46966a31ad220a5daf32/packages/encrypted-blockstore/src/index.ts#L57