Skip to content

v0.4.1 - Metro Phenomenon

Choose a tag to compare

@krispya krispya released this 05 May 23:59
· 340 commits to main since this release

This release fixes two bugs. The first is simple, cached queries will now return a proper query result. Some refactoring will follow to make this kind of mistake harder to do in the future.

The second enables Koota to work with React Native when bundled with Metro. It turns out that Metro removes all use strict directives, opting JS files into so-called "sloppy mode" if they are not invoking modules. The causes number primitives to be coerced into objects and destroys the internals of Koota. We now force all apps using Koota to be in strict mode. I'm sorry, we need to enforce updates to the language from 16 years ago. You can read more here.

What's Changed

  • 🐛 core: fix cached queries not returning query results by @krispya in #100
  • fix: emit "use strict" everywhere to thwart bad bundlers by @thejustinwalsh in #109
  • Add failing test case for use query result by @itsdouges in #99

New Contributors

Full Changelog: v0.4.0...v0.4.1