Skip to content

Commit

Permalink
Refactor some version numbers in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 25, 2023
1 parent 680445d commit 038bb68
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
3 changes: 1 addition & 2 deletions packages/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"exports": {
".": "./index.js",
"./internal-create-format-aware-processors": "./lib/util/create-format-aware-processors.js",
"./internal-extnames-to-regex": "./lib/util/extnames-to-regex.js",
"./internal-resolve-evaluate-options": "./lib/util/resolve-evaluate-options.js"
"./internal-extnames-to-regex": "./lib/util/extnames-to-regex.js"
},
"files": [
"lib/",
Expand Down
4 changes: 2 additions & 2 deletions packages/mdx/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ npm install @mdx-js/mdx
In Deno with [`esm.sh`][esmsh]:

```tsx
import {compile} from 'https://esm.sh/@mdx-js/mdx@2'
import {compile} from 'https://esm.sh/@mdx-js/mdx@3'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
import {compile} from 'https://esm.sh/@mdx-js/mdx@2?bundle'
import {compile} from 'https://esm.sh/@mdx-js/mdx@3?bundle'
</script>
```

Expand Down
6 changes: 3 additions & 3 deletions packages/mdx/test/evaluate.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @typedef {import('../lib/util/resolve-evaluate-options.js').Fragment} Fragment
* @typedef {import('../lib/util/resolve-evaluate-options.js').Jsx} Jsx
* @typedef {import('../lib/util/resolve-evaluate-options.js').JsxDev} JsxDev
* @typedef {import('@mdx-js/mdx').Fragment} Fragment
* @typedef {import('@mdx-js/mdx').Jsx} Jsx
* @typedef {import('@mdx-js/mdx').JsxDev} JsxDev
*/

import assert from 'node:assert/strict'
Expand Down
4 changes: 2 additions & 2 deletions packages/preact/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ npm install @mdx-js/preact
In Deno with [`esm.sh`][esmsh]:

```tsx
import {MDXProvider} from 'https://esm.sh/@mdx-js/preact@2'
import {MDXProvider} from 'https://esm.sh/@mdx-js/preact@3'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
import {MDXProvider} from 'https://esm.sh/@mdx-js/preact@2?bundle'
import {MDXProvider} from 'https://esm.sh/@mdx-js/preact@3?bundle'
</script>
```

Expand Down
4 changes: 2 additions & 2 deletions packages/react/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ npm install @mdx-js/react
In Deno with [`esm.sh`][esmsh]:

```tsx
import {MDXProvider} from 'https://esm.sh/@mdx-js/react@2'
import {MDXProvider} from 'https://esm.sh/@mdx-js/react@3'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
import {MDXProvider} from 'https://esm.sh/@mdx-js/react@2?bundle'
import {MDXProvider} from 'https://esm.sh/@mdx-js/react@3?bundle'
</script>
```

Expand Down
4 changes: 2 additions & 2 deletions packages/remark-mdx/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ npm install remark-mdx
In Deno with [`esm.sh`][esmsh]:

```tsx
import remarkMdx from 'https://esm.sh/remark-mdx@2'
import remarkMdx from 'https://esm.sh/remark-mdx@3'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
import remarkMdx from 'https://esm.sh/remark-mdx@2?bundle'
import remarkMdx from 'https://esm.sh/remark-mdx@3?bundle'
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion packages/rollup/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @typedef {import('@mdx-js/mdx').CompileOptions} CompileOptions
* @typedef {import('@mdx-js/mdx/internal-create-format-aware-processors').FormatAwareProcessors} FormatAwareProcessors
* @typedef {import('@mdx-js/mdx').CompileOptions} CompileOptions
* @typedef {import('@rollup/pluginutils').FilterPattern} FilterPattern
* @typedef {import('rollup').SourceDescription} SourceDescription
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ npm install @mdx-js/vue
In Deno with [`esm.sh`][esmsh]:

```tsx
import {MDXProvider} from 'https://esm.sh/@mdx-js/vue@2'
import {MDXProvider} from 'https://esm.sh/@mdx-js/vue@3'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
import {MDXProvider} from 'https://esm.sh/@mdx-js/vue@2?bundle'
import {MDXProvider} from 'https://esm.sh/@mdx-js/vue@3?bundle'
</script>
```

Expand Down

1 comment on commit 038bb68

@vercel
Copy link

@vercel vercel bot commented on 038bb68 Oct 25, 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
mdxjs.com
v2.mdxjs.com
mdx-mdx.vercel.app

Please sign in to comment.