Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayc0 committed Mar 20, 2023
1 parent 848eca8 commit d1114af
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@

- Upgrade for MDX 2 **BREAKING CHANGE**
- Switch to ESM only (it depends on `@mdx-js/mdx` that also switched to ESM only) **BREAKING CHANGE**
- Add `exports` field in `package.json`
- Add peer dependency on `@mdx-js/mdx` **BREAKING CHANGE**
- Add support for `recmaPlugins` in addition to `rehypePlugins` and `remarkPlugins` in `MDX` props
- `useMDX` can accept all kind of plugins
- Add `isReady` in `useMDX` return object
- Bundle size was reduced from [1.6 MB](https://bundlephobia.com/package/@blocz/[email protected]) to [23.7 kB](https://bundlephobia.com/package/@blocz/[email protected]-rc.2) (-98.5%)
- Bundle size was reduced from [1.6 MB](https://bundlephobia.com/package/@blocz/[email protected]) to [21.9 kB](https://bundlephobia.com/package/@blocz/[email protected]) (-98.6%)

### `@blocz/mdx-plugin-detect-imports`

- Update for MDX 2 (but still in CJS, and compatible in ESM)
- Add `exports` field in `package.json`
- Can only be used in MDX async function (like `compile`) but not the sync ones (like `compileSync`)
- Change format of `ImportStatement` to better represent named vs default exports:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"packages/*",
"tests/*"
],
"version": "0.2.0-rc.9",
"version": "0.2.0",
"repository": "[email protected]:bloczjs/mdx.git",
"author": "Ayc0 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/mdx-live/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocz/mdx-live",
"version": "0.2.0-rc.9",
"version": "0.2.0",
"type": "module",
"source": "src/index.ts",
"main": "lib/mdx-live.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mdx-plugin-detect-imports/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocz/mdx-plugin-detect-imports",
"version": "0.2.0-rc.9",
"version": "0.2.0",
"type": "commonjs",
"main": "src/plugin.cjs",
"module": "src/plugin.mjs",
Expand Down
2 changes: 1 addition & 1 deletion tests/esbuild-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocz/esbuild-test",
"version": "0.2.0-rc.9",
"version": "0.2.0",
"private": true,
"author": "Ayc0 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion tests/mdx-js-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocz/mdx-js-test",
"version": "0.2.0-rc.9",
"version": "0.2.0",
"private": true,
"author": "Ayc0 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion tests/rollup-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocz/rollup-test",
"version": "0.2.0-rc.9",
"version": "0.2.0",
"private": true,
"author": "Ayc0 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion tests/webpack-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocz/webpack-test",
"version": "0.2.0-rc.9",
"version": "0.2.0",
"private": true,
"author": "Ayc0 <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit d1114af

Please sign in to comment.