@astrojs/markdoc 0.7.2 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -20,7 +20,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
22
 
23
-
24
23
  """
25
24
  This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository:
26
25
 
@@ -33,7 +32,6 @@ The above copyright notice and this permission notice shall be included in all c
33
32
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
33
  """
35
34
 
36
-
37
35
  """
38
36
  This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository:
39
37
 
@@ -1,17 +1,17 @@
1
- import type { AstroInstance } from 'astro';
2
1
  import type { RenderableTreeNode } from '@markdoc/markdoc';
3
2
  import Markdoc from '@markdoc/markdoc';
3
+ import type { AstroInstance } from 'astro';
4
+ import type { HTMLString } from 'astro/runtime/server/index.js';
4
5
  import {
5
6
  createComponent,
6
- renderComponent,
7
+ createHeadAndContent,
8
+ isHTMLString,
7
9
  render,
10
+ renderComponent,
8
11
  renderScriptElement,
12
+ renderTemplate,
9
13
  renderUniqueStylesheet,
10
- createHeadAndContent,
11
14
  unescapeHTML,
12
- renderTemplate,
13
- HTMLString,
14
- isHTMLString,
15
15
  } from 'astro/runtime/server/index.js';
16
16
 
17
17
  export type TreeNode =
@@ -89,10 +89,7 @@ export const ComponentNode = createComponent({
89
89
  );
90
90
 
91
91
  // Let the runtime know that this component is being used.
92
- // `result.propagators` has been moved to `result._metadata.propagators`
93
- // TODO: remove this fallback in the next markdoc integration major
94
- const propagators = result._metadata.propagators || result.propagators;
95
- propagators.add({
92
+ result._metadata.propagators.add({
96
93
  init() {
97
94
  return headAndContent;
98
95
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/markdoc",
3
3
  "description": "Add support for Markdoc in your Astro site",
4
- "version": "0.7.2",
4
+ "version": "0.8.1",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -56,33 +56,32 @@
56
56
  "template"
57
57
  ],
58
58
  "dependencies": {
59
- "@markdoc/markdoc": "^0.3.0",
60
- "esbuild": "^0.19.2",
59
+ "@markdoc/markdoc": "^0.3.5",
60
+ "esbuild": "^0.19.6",
61
61
  "github-slugger": "^2.0.0",
62
62
  "gray-matter": "^4.0.3",
63
63
  "htmlparser2": "^9.0.0",
64
64
  "kleur": "^4.1.5",
65
- "shikiji": "^0.6.8",
65
+ "shikiji": "^0.6.13",
66
66
  "zod": "^3.22.4",
67
67
  "@astrojs/internal-helpers": "0.2.1",
68
68
  "@astrojs/prism": "3.0.0"
69
69
  },
70
70
  "peerDependencies": {
71
- "astro": "^3.0.0"
71
+ "astro": "^3.0.0 || ^4.0.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@types/chai": "^4.3.5",
75
- "@types/html-escaper": "^3.0.0",
76
- "@types/markdown-it": "^13.0.0",
77
- "@types/mocha": "^10.0.1",
74
+ "@types/chai": "^4.3.10",
75
+ "@types/html-escaper": "^3.0.2",
76
+ "@types/markdown-it": "^13.0.6",
77
+ "@types/mocha": "^10.0.4",
78
78
  "chai": "^4.3.7",
79
79
  "devalue": "^4.3.2",
80
- "linkedom": "^0.15.1",
80
+ "linkedom": "^0.16.4",
81
81
  "mocha": "^10.2.0",
82
- "rollup": "^3.28.1",
83
- "vite": "^4.4.9",
84
- "@astrojs/markdown-remark": "3.5.0",
85
- "astro": "3.5.4",
82
+ "vite": "^5.0.10",
83
+ "@astrojs/markdown-remark": "4.0.1",
84
+ "astro": "4.0.7",
86
85
  "astro-scripts": "0.0.14"
87
86
  },
88
87
  "engines": {