Skip to content

v4.5.0

Latest

Choose a tag to compare

@craftzdog craftzdog released this 26 Nov 04:01
· 16 commits to master since this release
6fbca11

Features

  • Add an onOpen option to configure the connection, for example to run your own PRAGMA statements (#147)

Fixes

  • Take the write lock when a write transaction begins (#149)
  • Roll back a transaction when its callback throws
  • Close the connection and retry when opening the database fails
  • Close the op-sqlite connection on close()
  • Keep a shared connection open until its last instance closes
  • Handle every promise the adapter starts
  • Update react-native to v0.88.1, react-native-quick-crypto to v1.1.10 and react-native-quick-base64 to v3.0.2

Refactoring

  • Replace inline comments with names, types and tests

Docs

  • Say that onOpen runs once per connection, not once per PouchDB instance

Other

  • Migrate the toolchain to pnpm, oxlint, oxfmt, vitest and TypeScript 7 (#192)
  • Adopt the @nkzw/oxlint-config rules and reject comments other than JSDoc on declarations
  • Update dependencies, including security fixes for fast-xml-parser, qs, fast-uri, undici, handlebars, compression, joi, brace-expansion, ip-address and shell-quote
  • Regenerate the example's iOS pods for React Native 0.88.1 and update Gradle

Full Changelog: v4.4.2...v4.5.0