Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 17, 2022

Bumps @nuxtjs/color-mode from 2.0.5 to 3.0.0.

Release notes

Sourced from @​nuxtjs/color-mode's releases.

v3.0.0

v3 of @nuxtjs/color-mode requires either Nuxt Bridge or Nuxt 3. If you are using Nuxt 2 without Bridge, you should continue to use v2.

🔥 Notable changes

  1. Uses @nuxt/module-builder to build module.
  2. Refactor structure (lib -> src/dist, templates -> runtime)
  3. rewrite in TypeScript
  4. Move from templating options to creating a virtual module for greater performance
  5. Use esbuild to minify the script - note: ⚠️ it's likely this raises the minimum browser target ⚠️

👉 Migration

  1. The main change between Nuxt 2 -> Nuxt 3 is that you will define your color mode at the page level with definePageMeta:

      \<template>
        <h1>This page is forced with light mode</h1>
      </template>
    <script>
    
    export default {
    colorMode: 'light',
    }
    
    
    definePageMeta({
    colorMode: 'light',
    })
    </script>
  2. ⚠️ If you are using Nuxt Bridge, you should not use definePageMeta but instead continue using the component option colorMode.

  3. The $colorMode helper remains the same, but there is also a new composable (useColorMode) which is the recommended way of accessing color mode information.

  4. If you were directly importing color mode configuration types, note that this has been renamed to ModuleOptions.

v2.1.1

  • fix: add script to webpack build (in dev) for storybook support (#99) · 54b482b

v2.1.0

  • feat: add csp hash for color script (#94) · e2f1ffc
  • test: migrate to @nuxt/test-utils (#96) · 30dcff2
  • test: fill out additional test targets (#97) · 2ca9edc

v2.0.10

Changelog

Sourced from @​nuxtjs/color-mode's changelog.

3.0.0 (2022-02-16)

⚠ BREAKING CHANGES

  • add support for nuxt 3/nuxt bridge (#118)

Features

2.1.1 (2021-08-02)

Bug Fixes

  • add script to webpack build (in dev) for storybook support (#99) (54b482b), closes #69

2.1.0 (2021-08-02)

Features

2.0.10 (2021-06-11)

Bug Fixes

2.0.9 (2021-05-24)

Bug Fixes

  • move ssr script injection into plugin for nitro compat (#86) (9002bb0)

2.0.8 (2021-05-20)

2.0.7 (2021-05-20)

Bug Fixes

  • move script injection into plugin for nitro compat (#85) (fb31651)

2.0.6 (2021-05-20)

Commits
Maintainer changes

This version was pushed to npm by danielroe, a new releaser for @​nuxtjs/color-mode since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@nuxtjs/color-mode](https://github.com/nuxt-community/color-mode-module) from 2.0.5 to 3.0.0.
- [Release notes](https://github.com/nuxt-community/color-mode-module/releases)
- [Changelog](https://github.com/nuxt-community/color-mode-module/blob/master/CHANGELOG.md)
- [Commits](nuxt-modules/color-mode@v2.0.5...v3.0.0)

---
updated-dependencies:
- dependency-name: "@nuxtjs/color-mode"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 17, 2022
@dependabot dependabot bot requested a review from amrdb February 17, 2022 00:23
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 22, 2022

Superseded by #75.

@dependabot dependabot bot closed this Feb 22, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/nuxtjs/color-mode-3.0.0 branch February 22, 2022 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants