Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @vuepress/shared-utils from 1.5.0 to 1.9.10 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tanaysethi
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade @vuepress/shared-utils from 1.5.0 to 1.9.10.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 22 versions ahead of your current version.

  • The recommended version was released on 9 months ago.

Release notes
Package name: @vuepress/shared-utils
  • 1.9.10 - 2023-08-14

    Bug Fixes

    • core: failed to resolve theme components when using theme inheritance (close: #3163) (#3164) (546499b)
    • markdown: replace double quotation marks in classname(fix #3152) (#3154) (cef64e6)
  • 1.9.9 - 2023-02-25

    v1.9.9

  • 1.9.8 - 2023-01-06

    v1.9.8

  • 1.9.7 - 2022-01-18

    v1.9.7

  • 1.9.6 - 2022-01-17

    v1.9.6

  • 1.9.5 - 2021-12-25

    v1.9.5

  • 1.9.4 - 2021-12-24

    v1.9.4

  • 1.9.3 - 2021-12-23

    v1.9.3

  • 1.9.2 - 2021-12-23

    TS Support for VuePress Plugin and Theme.

    Motivation

    We've announced VuePress 1.9 that takes full TypeScript Support for Config File, while VuePress 1.9.2 ships with TS Support for VuePress Plugin and Theme:

    Quick Start

    In order to make the plugin developer not dependent on VuePress for development, we provide a completely independent type package @ vuepress/types:

    npm i @ vuepress/types -D

    @ vuepress/types exports four functions:

    • defineConfig
    • defineConfig4CustomTheme
    • defineTheme
    • definePlugin

    Note that using @ vuepress/types is equivalent to using vuepress/config.

    Plugin Type

    If you already have some VuePress plugins written in JS, you can leverage your IDE's intellisense with jsdoc type hints:

    /**
     * @ type {import('@ vuepress/types').Plugin}
     */
    module.exports = {
      ready() {
        // ...
      }
    };

    Alternatively, you can use the defineConfig helper which should provide intellisense without the need for jsdoc annotations:

    import { definePlugin } from "@ vuepress/types";

    export default definePlugin({
    // ...
    });

    Plugin Options Type

    Type of plugin options also supports passing in through generic type:

    import { definePlugin } from "@ vuepress/types";

    interface Options {
    name: string;
    }

    export default definePlugin<Options>((options, ctx) => {
    return {
    ready() {
    return ctx.base + options.name;
    }
    };
    });

    Theme Type

    Similar to plugin, the only difference is the type you use, and the define function:

     /**
    - * @ type {import('@ vuepress/types').Plugin}
    + * @ type {import('@ vuepress/types').Theme}
      */
    -import { definePlugin } from "@ vuepress/types";
    +import { defineTheme } from "@ vuepress/types";

    -export default definePlugin({
    +export default defineTheme({
    // ...
    });

    Theme Config Type

    Type of theme config also supports passing in through generic type:

    import { defineTheme } from "@ vuepress/types";

    interface ThemeConfig {
    lang: string;
    }

    export default defineTheme<ThemeConfig>((themeConfig, ctx) => {
    return {
    ready() {
    return ctx.base + themeConfig.lang;
    }
    };
    });

    Notes

    It is worth noting that, unlike the site configuration, i.e. .vuepress/config.js, if you use TypeScript to write theme or plugin, you still need to compile it into JavaScript before publishing it to NPM.

  • 1.9.1 - 2021-12-22

    v1.9.1

  • 1.9.0 - 2021-12-22
  • 1.8.3 - 2021-12-20
  • 1.8.2 - 2021-02-18
  • 1.8.1 - 2021-02-11
  • 1.8.0 - 2021-01-05
  • 1.7.1 - 2020-10-15
  • 1.7.0 - 2020-10-13
  • 1.6.0 - 2020-09-25
  • 1.5.4 - 2020-08-23
  • 1.5.3 - 2020-08-05
  • 1.5.2 - 2020-06-14
  • 1.5.1 - 2020-06-09
  • 1.5.0 - 2020-05-11
from @vuepress/shared-utils GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade @vuepress/shared-utils from 1.5.0 to 1.9.10.

See this package in npm:
@vuepress/shared-utils

See this project in Snyk:
https://app.snyk.io/org/tanaysethi/project/12c1d07f-c66b-4f09-a1ac-cdcc0c44d751?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants