v3.0.0 - #1
Draft
github-actions[bot] wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👉 Changelog
compare changes
🚀 Enhancements
useSanityQueryrequests (feat: support proxying useSanityQuery requests nuxt-modules/sanity#1286)<NuxtImg>if available (feat: render images with<NuxtImg>if available nuxt-modules/sanity#1255)@portabletext/vuein<SanityContent>(feat!: use@portabletext/vuein<SanityContent>nuxt-modules/sanity#1251)eventas first param touseSanityon server (5c05e70)createSanityDataAttributeutility (feat: exposecreateSanityDataAttributeutility nuxt-modules/sanity#1042)cms/sanity.config.ts(feat: support readingcms/sanity.config.tsnuxt-modules/sanity#977)1f542a0)useSanityVisualEditingStatecomposable + fix issues (feat: add preview mode helpers and checks nuxt-modules/sanity#968)perspectiveoption for clients (feat: support newperspectiveoption for clients nuxt-modules/sanity#837)useSanityQuery(refresh() not reflecting changes in query nuxt-modules/sanity#530)groq,useSanityandcreateSanityClientin server routes (feat: enablegroq,useSanityandcreateSanityClientin server routes nuxt-modules/sanity#510)🔥 Performance
chalk(a172d1d)$fetchfor minimal client (7b7517e)🩹 Fixes
useSanityQueryfetch options (fix: resolve correctuseSanityQueryfetch options nuxt-modules/sanity#1421)useAsyncDatapromise methods fromuseSanityQueryreturn (fix: excludeuseAsyncDatapromise methods fromuseSanityQueryreturn nuxt-modules/sanity#1464)optimizeDeps.include(a94b5bf)@sanity/visual-editing(7741824)d0b63cc)118d6ef)cee75f3)defaultclient (270bbef)useSanity(268ab1b)6659eef)93b054e)sanity.config(efbce84)react-compiler-runtime+lodashto visual editing deps (65576f4)07dbbc2)294a269)useRuntimeConfigwithinuseSanity(b5c5503)<SanityContent>(92bfc68)vuerather than@vue/runtime-core(fix: augmentvuerather than@vue/runtime-corenuxt-modules/sanity#1045)GETrequest (fix: send perspective as query param when using GET method nuxt-modules/sanity#1008)config.sanityon client (23bf64c)client.fetchremains bound to instance on server (fix: server API call 'Cannot read from private field' nuxt-modules/sanity#994)optimizeDeps(fix:parse-headers,debugandasync-cache-dedupeno longer need to be optimized nuxt-modules/sanity#992)unknowntypes (6ce4ba5)f411c4e)sourceMapandencodeDataAttributein non-awaited result (bf1cb68)useSanityQuerywithout awaiting (b75d2eb)import.meta.*properties (fix: opt in toimport.meta.*properties nuxt-modules/sanity#978)useStateimport (fix: add missinguseStateimport nuxt-modules/sanity#970)68faefa)fcbab9b)510c8b1)1dab8e4)a805dc4)ec44f94)feea9d0)useSanityQuery(Return type foruseSanityQuery<T>(...)isanynuxt-modules/sanity#915)perspectiveas query param when using POST method (fix: sendperspectiveas query param when using POST method nuxt-modules/sanity#930)useCdnshould be false withpreviewDraftsperspective (fix:useCdnshould be false withpreviewDraftsperspective nuxt-modules/sanity#883)33b62cb)useAsyncDatakey (fix: use hash foruseAsyncDatakey nuxt-modules/sanity#787)fetchOptionsin POST requests (fix: usefetchOptionsin POST requests nuxt-modules/sanity#780)233585a)@sanity/client(0c4c01a)ofetchdependency (6edba44)b3fbdbd)d77b5df)3a478ef)e0263e6)44bfcab)projectIdis specified (8a5b918)💅 Refactors
isNuxtMajorVersionutil (b55bfcd)$fetch(154da59)0400504)📖 Documentation
a265b4b)live-visual-editing(docs: specify usage withlive-visual-editingnuxt-modules/sanity#1343)6cdc7a1)nuxi module addcommand in installation (docs: use newnuxi module addcommand in installation nuxt-modules/sanity#983)@sanity/client(bfe8745)useSanityQuery(Add types to docs nuxt-modules/sanity#971)9d13393)useAsyncDatadocumentation (docs: update link touseAsyncDatadocumentation nuxt-modules/sanity#862)9ea8c25)d174984)7cacaef)95c48c4)dc440a0)4a297d5)f033018).url()call (docs: add missing.url()call nuxt-modules/sanity#397)86afc5f)apiVersion([docs] document apiVersion nuxt-modules/sanity#109)📦 Build
cjssupport (build: update to latest module-builder and dropcjssupport nuxt-modules/sanity#1133)$sanityhelper (2fade9b)🏡 Chore
pnpm-workspace.yaml(7aac79d)1af370a)4bc9158)a50a10c)1ba17f9)08b0416).nuxtrc(01ba839)c1dc2cd)d853db2)a386585)973e43b)6cfba67)f8179a0)c763bd2)@sanity/clientfrom externals as it's a dep (724f54c)6170726)ef682e9)c4cd90c)49cb4d3).sanityfolder (eb14288)95eceeb)4d9a06b)nuxtovernuxi(chore: prefernuxtovernuxinuxt-modules/sanity#1221)5a4b758)1f5df85)8e9fa21)08c8260)ece8b55)84e4b78)3ac9a16)engines.nodewithinstalled-check(f4907b9)ef644f4)d92636e)08f7478)b8d5ec3)c4c510f)e853512)491327b)ae6183e)9992f04)compatibilityDatefield (aa5285d)89cda28)d5c1146)13737c5)449388f)07c3d28)4a8e4d4)b7964bc)1d45851)defineTypehelper fromsanity(b56084e)a4a268a)package.json(chore: run npm fix onpackage.jsonnuxt-modules/sanity#997)7f69922)21df3f1)193fa68)02ae90e)31870bd)f8f2a1a)cd5a761)34a8850)@sanity/client(3e810a1)public-hoist-pattern(c8603ff)4ec6b5b)public-hoist-patterninstead (ea3802b)19e892d)simple-git-hooks(7f87341)@nuxt/test-utilsalpha (chore: migrate to@nuxt/test-utilsalpha nuxt-modules/sanity#943)1273f81)948f4bf)4d52b8d)809b8d3)fs-extra(e85b90f)24032d2)aa6def5)fd127bd)f12dec6)c9505a0)ea5c528)a0f3471)35ec15d)a0ab865)6e094e4)c20a670)365c754)bumpp(6fc599d)2efaee8)40b9f0d)4768a8d)343a62e)3dd8d10)3a5e40b)25f747f)c88ac8b)98ade75)df91b17)200fcf1)2d96c82)d544eee)9148111)dab5f5d)52db66e)53fb5db)2856c54)3358f46)b1d18a1)65c5d2c)8f3426f)5bb41d9)90e5904)3fb1d9c)cc88040)b919cbe)db9867f)0648d99)e49c6aa)2db99d2)3401d52)11d23d9)defuand switch toohash(ed615bc)5504349)418d35d)4270c2b)faebfef)0f5414c)039e149)1c94248)8c261f0)1b53485)3c5e8a6)47210ef)1afa8aa)6bd5da0)80d5626)8c96dd7)31d47b6)27c13cd)a433586)d584686)0b4c00f)@nuxt/kit(33f1fba)cb49d27)c814921)e7b1a9b)✅ Tests
sanityoptions (d06ca01)<SanityContent>unit tests (test: update<SanityContent>unit tests nuxt-modules/sanity#1273)nuxt-vitest(test: usenuxt-vitestnuxt-modules/sanity#932)ofetch🤦♂️ (a3dfcdb)3f1c60b)218b9bd)$fetchmock (533a30e)69664e8)fbb6a9e)🎨 Styles
strongindentation (6a22420)🤖 CI
3536435)a92548e)561081a)148e39b)5ac5fa2)c81f994)pkg-pr-new(81e03cb)3cf5d22)64a0bc2)0b95b5a)6f6d620)b763e7f)4d05f17)2d1b17f)a803a77)ea94786)🎉 New Contributors
❤️ Contributors