Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 24, 2023
1 parent 78a1eb5 commit 9a40e18
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 53 deletions.
29 changes: 8 additions & 21 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,14 @@ This makes writing long-form content with components a blast. {/* more */}
[Continue reading »][what]

<div className="card big">
## New: MDX 2!

Version 2 of MDX was released after years of hard work, and has many
improvements.
Here are the highlights:

<div className="emoji-list">
* 📝 **Improved syntax** makes it easier to use markdown in JSX
* 🧑‍💻 **JavaScript expressions** turn `{2 * Math.PI}` into {2 * Math.PI}
* 🔌 New **esbuild**, **Rollup**, and **Node.js** integrations
* ⚛️ **Any JSX runtime**: React, Preact, Vue, Emotion, you name it, they’re
all supported
* 🌳 **Improved AST** exposes more info in greater detail
* 🏃‍♀️ Compiles at least **25% faster**
* 🚴 Generated code runs twice as fast (**100% faster**)
* 🚄 Bundle size of `@mdx-js/mdx` is more than three times as small
(**250% smaller**)
* 🧵 …and much, so much more
</div>
## New: MDX 3!

A small major this time, nothing big, which is also nice sometimes!
This mainly drops support for old Node (use 16 or later), adds modern ES2024
support in MDX, supports `await` in MDX (if your framework does too), and
removes several deprecated options.

[Continue reading »][v2]
[Continue reading »][v3]
</div>

## What does MDX do?
Expand Down Expand Up @@ -145,7 +132,7 @@ You’re using React, Preact, or Vue.

[what]: /docs/what-is-mdx/

[v2]: /blog/v2/
[v3]: /blog/v3/

[playground]: /playground/

Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions packages/esbuild/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/esbuild",
"version": "2.3.0",
"version": "3.0.0",
"description": "esbuild plugin for MDX",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -37,7 +37,7 @@
"index.js"
],
"dependencies": {
"@mdx-js/mdx": "^2.0.0",
"@mdx-js/mdx": "^3.0.0",
"@types/unist": "^3.0.0",
"vfile": "^6.0.0",
"vfile-message": "^4.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/loader",
"version": "2.3.0",
"version": "3.0.0",
"description": "Webpack loader for MDX",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -43,7 +43,7 @@
"index.d.ts"
],
"dependencies": {
"@mdx-js/mdx": "^2.0.0",
"@mdx-js/mdx": "^3.0.0",
"source-map": "^0.7.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/mdx",
"version": "2.3.0",
"version": "3.0.0",
"description": "MDX compiler",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -57,7 +57,7 @@
"hast-util-to-jsx-runtime": "^2.0.0",
"markdown-extensions": "^2.0.0",
"periscopic": "^3.0.0",
"remark-mdx": "^2.0.0",
"remark-mdx": "^3.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"source-map": "^0.7.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/node-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/node-loader",
"version": "2.3.0",
"version": "3.0.0",
"description": "Node.js loader for MDX",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -42,7 +42,7 @@
"index.js"
],
"dependencies": {
"@mdx-js/mdx": "^2.0.0",
"@mdx-js/mdx": "^3.0.0",
"vfile": "^6.0.0"
},
"devDependencies": {},
Expand Down
2 changes: 1 addition & 1 deletion packages/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/preact",
"version": "2.3.0",
"version": "3.0.0",
"description": "Preact context for MDX",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/react",
"version": "2.3.0",
"version": "3.0.0",
"description": "React context for MDX",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remark-mdx",
"version": "2.3.0",
"version": "3.0.0",
"description": "remark plugin to support MDX syntax",
"license": "MIT",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/rollup",
"version": "2.3.0",
"version": "3.0.0",
"description": "Rollup plugin for MDX",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -37,7 +37,7 @@
"index.js"
],
"dependencies": {
"@mdx-js/mdx": "^2.0.0",
"@mdx-js/mdx": "^3.0.0",
"@rollup/pluginutils": "^5.0.0",
"source-map": "^0.7.0",
"vfile": "^6.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/vue",
"version": "2.3.0",
"version": "3.0.0",
"description": "Vue provider for MDX",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This makes writing long-form content with components a blast.

```mdx
import {Chart} from './snowfall.js'
export const year = 2018
export const year = 2013

# Last year’s snowfall

Expand Down

1 comment on commit 9a40e18

@vercel
Copy link

@vercel vercel bot commented on 9a40e18 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mdx – ./

mdx-git-main-mdx.vercel.app
v2.mdxjs.com
mdxjs.com
mdx-mdx.vercel.app

Please sign in to comment.