Skip to content

Releases: vueuse/schema-org

v2.0.2

14 Dec 05:26
Compare
Choose a tag to compare

Bug Fixes

  • allow nuxt edge channel releases (b86d7e5)

v2.0.1

11 Dec 01:06
Compare
Choose a tag to compare
chore: release v2.0.1

v2.0.0

07 Dec 10:06
Compare
Choose a tag to compare

Release v2 🎉

Version 2 of @vueuse/schema-org is a migration of the core logic to the package unhead-schema-org.

This migration significantly improves the maintainability of the package. The core logic leverages Unhead for all reactivity and tag management. See the release post for more context.

This has the following benefits:

  • Package size reduced by ~25% (8kb)
  • End user config is much simpler (just add the unhead plugin)
  • All reactivity issues are resolved
  • Treeshaking handled by Unhead

In this update, we also remove features that added to the complexity of using the package, namely the runtime aliasing.

With runtime aliasing dropped, all imports can be accessed directly from the package root @vueuse/schema-org. This means we no longer support schema-dts.

All core logic remains the same, there are no new features within this major.

Migration Guide

Firstly, it's important to make sure you're using the latest version of @vueuse/head. Version 2 requires 1.0.20, but is not a hard dependency to avoid collisions.

For Nuxt, little migration work should be needed.

For other implementations, please reference the new install documentation and the below-breaking changes.

If you have errors around use is not a function, delete your lock file / node_modules and re-install to force the version to update.

⚠️ Breaking Changes

Requires @vueuse/head >= 1.0.20

You should ensure you're using the latest VueUse head version.

@vueuse/schema-org-vite is removed

To simplify package maintenance, this module is no longer provided.

This also includes the SchemaOrg vite plugin. You should remove this from your vite.config.ts.

-import { SchemaOrg } from '@vueuse/schema-org-vite'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
-    SchemaOrg(),
  ]
},

Runtime Aliases removed

You should import all composables from the root package now.

-import { SchemaOrg } from '@vueuse/schema-org/runtime'
+import { SchemaOrg } from '@vueuse/schema-org'

Config meta key no longer supported

Config meta should be provided at the root config level.

v1

{
  meta: {
    canonicalHost: 'https://example.com'
  }
{

v2

{
  host: 'https://example.com
}

You should provide host instead of canonicalHost as well.

schema-dts no longer supported

To simplify package maintenance schema-dts is dropped. You can still support it yourself by wrapping the define functions with the schema-dts types.

v2.0.0-beta.4

07 Dec 09:27
Compare
Choose a tag to compare
v2.0.0-beta.4 Pre-release
Pre-release

v2.0.0-beta.4...v2.0.0-beta.4

v2.0.0-beta.3

07 Dec 08:01
Compare
Choose a tag to compare
v2.0.0-beta.3 Pre-release
Pre-release

v2.0.0-beta.3...v2.0.0-beta.3

v2.0.0-beta.1

07 Dec 07:00
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

v2.0.0-beta.1...v2.0.0-beta.1

v2.0.0-beta.0

07 Dec 04:24
Compare
Choose a tag to compare
v2.0.0-beta.0 Pre-release
Pre-release

v2.0.0-beta.0...v2.0.0-beta.0

v1.1.0-beta.6

13 Nov 03:42
Compare
Choose a tag to compare
  • fix: support for @vueuse/head v1 (cc4b1af)

Full Changelog: v1.1.0-beta.5...v1.1.0-beta.6

v1.1.0-beta.5

13 Oct 03:31
Compare
Choose a tag to compare

v1.1.0-beta.5...v1.1.0-beta.5

v1.1.0-beta.4

22 Sep 07:35
Compare
Choose a tag to compare

v1.1.0-beta.4...v1.1.0-beta.4