Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update live demo to 8.0.0 syntax (new Level) #62

Closed
SebastianSimon opened this issue Dec 22, 2022 · 3 comments · Fixed by #63
Closed

Update live demo to 8.0.0 syntax (new Level) #62

SebastianSimon opened this issue Dec 22, 2022 · 3 comments · Fixed by #63

Comments

@SebastianSimon
Copy link

The breaking change of version 8.0.0 requires a switch from

const level = require('level')
const db = level('db')

to

const { Level } = require('level')
const db = new Level('db')

The demo appears to still refer to 5.0.0. The outdatedness sparks Stack Overflow questions such as Error: "level is not a function" when using LevelDB.

vweevers added a commit that referenced this issue Dec 22, 2022
vweevers added a commit that referenced this issue Dec 22, 2022
@vweevers
Copy link
Member

Fixed, thanks for bringing that up!

@SebastianSimon
Copy link
Author

That was quick, thank you! I’ve noticed that the text below the sample still says “As of level@5, the above code works in Node.js, Electron and browsers!”, though. That should be level@8 now, right?

@vweevers
Copy link
Member

That's technically still true, although less important to mention now. We'll remove it.

Generally need some cleanup here. I've opened #64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants