Skip to content

v0.1.80

Choose a tag to compare

@Kinfe123 Kinfe123 released this 22 Nov 20:51
· 151 commits to main since this release
ed73b72

Farm 0.1.80 updates the shared packages, including @farm.js/core, @farm.js/cli, and @farm.js/create-app, plus @farm.js/mcp 0.1.0-beta.53.

  • Every hosted storage mount holds one kind of data. farmStorage() takes type: "kv" or type: "sql", and a provider helper with managed: true takes its type from the driver: redisStorage is key-value, postgresStorage is SQL. farm storage apply refuses a key-value mount and a SQL mount that share one database. #3077
  • In islands mode, a first navigation out of a layout that hydrates as one React root no longer waits for React DOM. An 80 ms first tap on a throttled connection went from 788 ms to 350 ms. #3071

Behavior changes

  • getDatabase() on a hosted key-value mount throws Storage mount "X" is a key-value mount. Use getStorage("X") ..., and key reads on a hosted SQL mount throw Storage mount "X" is a SQL mount. Use getDatabase("X") .... In 0.1.77–0.1.79 a hosted mount served both.
  • farmStorage() without type still works and serves both, but is deprecated. farm storage plan warns about each untyped mount.
Before After
farmStorage() read with getStorage() farmStorage({ type: "kv" })
farmStorage({ schema }) read with getDatabase() farmStorage({ type: "sql", schema })
redisStorage({ managed: true, schema }) Not allowed: a key-value driver takes no schema. Use a SQL driver.

Changes since 0.1.79