fireproof icon indicating copy to clipboard operation
fireproof copied to clipboard

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

Open DougAnderson444 opened this issue 1 year ago • 5 comments

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:

DougAnderson444 avatar May 03 '24 01:05 DougAnderson444

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)

jchris avatar May 03 '24 21:05 jchris

For install it was simply:

npm install @fireproof/encrypted-blockstore

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

DougAnderson444 avatar May 05 '24 02:05 DougAnderson444

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

https://cdn.jsdelivr.net/npm/@fireproof/[email protected]/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

DougAnderson444 avatar May 05 '24 02:05 DougAnderson444

BTW we are churning some modules and this will all have a clean new feel (same api, easier modules) when 0.19 ships

jchris avatar Aug 13 '24 15:08 jchris

Appreciate the update @jchris! I'll wait on 0.19 then =)

DougAnderson444 avatar Aug 13 '24 16:08 DougAnderson444