Skip to content

Releases: nuxt-hub/core

v0.7.6

27 Aug 23:50
6e548e5
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Add support for extra bindings (Hyperdrive) (#245)

❤️ Contributors

v0.7.5

26 Aug 16:53
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Add support for cloudflare:* externals (#243)
  • Disable the usage of nuxt generate (#244)

📖 Documentation

🏡 Chore

❤️ Contributors

v0.7.4

24 Aug 10:23
78e6b89
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • cache: Don't force nitro prefix (#239)

📖 Documentation

❤️ Contributors

v0.7.3

16 Aug 16:23
8752cc0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • blob: Support customMetadata in proxy on put() (#231)

📖 Documentation

🏡 Chore

  • playground: Fix database reactivity (5b3b2a8)

❤️ Contributors

v0.7.2

15 Aug 16:24
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Add hubAI() (#173)

Learn more on https://hub.nuxt.com/docs/features/ai

🩹 Fixes

  • Support remote overwrites (9b434eb)

📖 Documentation

  • Deploy button (ca132e7)
  • Add deploy button changelog (e9ecf1f)
  • changelog: Small update (9fcc96b)
  • Update Cloudflare KV included usage information (#206)
  • Fix typo (#212)
  • Add deploy section (91a1d97)
  • Add debug recipe (784fd58)
  • recipe: Update debug header (dad8793)
  • Add postinstall script (f1ce27e)
  • Article about atidraw (#225)
  • Fix blog breadcrumb responsive (b9d2faa)
  • Update steps illustrations (cba1af7)

🏡 Chore

  • release: V0.7.1 (a4377db)
  • Fix typo in analytics.ts (#198)
  • Uncomment pkg.pr.new (#197)
  • Disable prettier (#226)
  • test: More limit to timeout (9cffde4)

❤️ Contributors

v0.7.1

10 Jul 09:25
a0ee322
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • cache: Handle cache keys with . (#196)
  • openapi: Use direct import instead of nitro alias (#192)

📖 Documentation

  • Improvements (c092ede)
  • Add jsdoc for useUpload (3f66ac0)
  • Add GitHub Action example (f1e91f8)
  • Use nuxthub discord invite (#188)
  • Update pricing (8028dae)
  • Add blob upload prefix (2feff31)
  • Update images for steps (aed88b1)
  • Use event.path instead of event.node.req.url (#195)
  • Missing pnpm version on github actions template (#194)

🏡 Chore

  • release: V0.7.0 (314fd54)
  • Fix playground with new nuxt shallow ref (b2adb87)
  • Update deploy command to npx nuxthub deploy (ef43572)

❤️ Contributors

v0.7.0

27 Jun 14:35
Compare
Choose a tag to compare

compare changes

⚠️ Breaking Changes

We brought two breaking changes for hubBlob() for consistency (#187)

Custom Metadata

As we get the custom metadata in the customMetadata object, it makes sense to define them in the key as well.

Before:

hubBlob().put(file.name, file, {
  addRandomSuffix: true,
  hello: 'world'
})
/*
{
  contentType: 'image/jped',
  pathname: 'something-87652rfg.jpg',
  size: 154451,
  uploadedAt:  '2024-06-21T00:57:41.740Z',
  customMetadata: {
    hello: 'world'
  }
}
*/

After:

hubBlob().put(file.name, file, {
  addRandomSuffix: true,
  customMetadata: {
    hello: 'world'
  }
})
/*
{
  contentType: 'image/jped',
  pathname: 'something-87652rfg.jpg',
  size: 154451,
  uploadedAt:  '2024-06-21T00:57:41.740Z',
  customMetadata: {
    hello: 'world'
  }
}
*/

handleUpload

Before, we could give at the same level the options of put(), ensure() and handleUpload(), making it a bit confusing.

Now you need to set the options with the command prefix:

Before:

export default eventHandler(async (event) => {
  return hubBlob().handleUpload(event, {
    multiple: false,
    contentType: ['image/jpeg', 'images/png'],
    addRandomSuffix: true
  })
})

After:

export default eventHandler(async (event) => {
  return hubBlob().handleUpload(event, {
    multiple: false,
    ensure: {
      contentType: ['image/jpeg', 'images/png'],
    },
    put: {
      addRandomSuffix: true
    }
  })
})

Read the full documentation on https://hub.nuxt.com/docs/storage/blob

📖 Documentation

  • Add Hello Edge template (7c9e805)
  • Update og image (7ba4dba)
  • Improve ctas (099fcbd)
  • Try public sans font (05fcfea)
  • Add parent routes for header active links (47a7331)
  • Improve drizzle seed example (#176)
  • recipes: Remove extra field for drizzle seed (a8a8b01)

🏡 Chore

❤️ Contributors

v0.6.17

17 Jun 16:11
Compare
Choose a tag to compare

compare changes

🏡 Chore

  • dx: Require wrangler only when required (04efdfa)

❤️ Contributors

v0.6.16

17 Jun 14:32
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • blob: Check correct variable in useUpload (889acbc)

📖 Documentation

  • Add team-webhooks-env selection (8b27277)

🏡 Chore

  • ci: Add pkg.pr.new for package preview on pull requests (#164)
  • Update deps (f55098c)

❤️ Contributors

v0.6.15

14 Jun 09:26
4ff9609
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Import runtime types from @nuxthub/core (#168)

🏡 Chore

  • Improve server types (#160)

❤️ Contributors