Skip to content

Commit

Permalink
Migrate from MDX v0 to v1
Browse files Browse the repository at this point in the history
MDX 1.0.0 (1) has been released including an official
migration guide for v0 to v1 (2).

The `@mdx-js/tag` package has been replaced with the `@mdx-js/react`
package. The new v1 pragma allows to use MDX with any renderer like
React, Vue or Preact.

References:
  (1) https://mdxjs.com/blog/v1
  (2) https://mdxjs.com/migrating/v1

GH-137
  • Loading branch information
arcticicestudio committed Apr 25, 2019
1 parent 1e80ed1 commit eda9240
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -52,7 +52,6 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "7.4.3",
"@babel/plugin-proposal-optional-chaining": "7.2.0",
"@mdx-js/mdx": "1.0.14",
"@mdx-js/tag": "0.20.3",
"@svgr/webpack": "4.2.0",
"babel-eslint": "10.0.1",
"babel-jest": "24.7.1",
Expand Down Expand Up @@ -90,6 +89,7 @@
"webpack-bundle-analyzer": "3.3.2"
},
"dependencies": {
"@mdx-js/react": "1.0.6",
"arctic-landscape": ">=0.1.0 <1.0.0",
"arctic-ocean-fractal": ">=0.1.0 <1.0.0",
"axios": "0.18.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/blog/BlogPost.jsx
Expand Up @@ -9,7 +9,7 @@

import React from "react";
import MDXRenderer from "gatsby-mdx/mdx-renderer";
import { MDXProvider } from "@mdx-js/tag";
import { MDXProvider } from "@mdx-js/react";
import { graphql } from "gatsby";

import BaseLayout from "layouts/core/BaseLayout";
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/docs/DocsPage.jsx
Expand Up @@ -9,7 +9,7 @@

import React from "react";
import MDXRenderer from "gatsby-mdx/mdx-renderer";
import { MDXProvider } from "@mdx-js/tag";
import { MDXProvider } from "@mdx-js/react";
import { graphql } from "gatsby";

import { WaveFooter } from "atoms/core/vectors/divider";
Expand Down

0 comments on commit eda9240

Please sign in to comment.