Skip to content

Releases: nuxt-hub/core

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

v0.6.14

12 Jun 10:55
016c339
Compare
Choose a tag to compare

compare changes

✅ Tests

  • Improve tests and integrity (#163)

❤️ Contributors

v0.6.13

12 Jun 09:13
d015261
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Optimize bundle (#138)

🩹 Fixes

  • blob: Remove slugify (#154)
  • module: Invalid resolved path in npm package (#161)
  • analytics: Setup analytics worker (#162)

📖 Documentation

🏡 Chore

❤️ Contributors

v0.6.12

11 Jun 18:02
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • We shipped a big improvement to only add the API routes & server utils if a feature is enabled. Optimising the final bundle size 🚀 (#138)
  • We don't slugify the path of the blob anymore to respect the pathname you set to hubBlob().put(pathname, blob)(#154)

❤️ Contributors