@primate/markdown 0.10.0 → 0.12.0

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.
@@ -1,6 +1,6 @@
1
1
  declare const _default: (input?: import("@rcompat/type").Unpack<({
2
2
  extensions?: string[] | undefined;
3
- spa?: boolean | undefined;
3
+ csr?: boolean | undefined;
4
4
  ssr?: boolean | undefined;
5
5
  } & {
6
6
  marked?: import("marked").MarkedExtension<string, string> | undefined;
@@ -81,8 +81,8 @@ export default frontend({
81
81
  name: "markdown",
82
82
  setup(build) {
83
83
  build.onResolve({ filter: /^markdown:/ }, ({ path }) => {
84
- const filePath = path.slice("markdown:".length);
85
- return { path: filePath, namespace: "markdown" };
84
+ const file_path = path.slice("markdown:".length);
85
+ return { path: file_path, namespace: "markdown" };
86
86
  });
87
87
  build.onLoad({ filter: /.*/, namespace: "markdown" }, async (args) => {
88
88
  const text = await fs.text(args.path);
@@ -5,7 +5,7 @@ type Pretransform = (text: string) => MaybePromise<string>;
5
5
  declare const schema: import("pema").ObjectType<import("pema").NormalizeSchemaObject<{
6
6
  readonly marked: import("pema").OptionalType<import("pema").PureType<MarkedExtension<string, string>, "PureType">>;
7
7
  readonly pretransform: import("pema").OptionalType<import("pema").PureType<Pretransform, "PureType">>;
8
- }>, {
8
+ }>, undefined, {
9
9
  marked: MarkedExtension<string, string> | undefined;
10
10
  pretransform: Pretransform | undefined;
11
11
  }>;
@@ -1,6 +1,6 @@
1
1
  declare const _default: (input?: import("@rcompat/type").Unpack<({
2
2
  extensions?: string[] | undefined;
3
- spa?: boolean | undefined;
3
+ csr?: boolean | undefined;
4
4
  ssr?: boolean | undefined;
5
5
  } & {
6
6
  marked?: import("marked").MarkedExtension<string, string> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primate/markdown",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Markdown for Primate",
5
5
  "homepage": "https://primate.run/docs/frontend/markdown",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",
@@ -17,18 +17,18 @@
17
17
  "!/**/*.spec.*"
18
18
  ],
19
19
  "dependencies": {
20
- "@rcompat/assert": "^0.8.1",
21
- "@rcompat/string": "^0.16.1",
22
- "marked": "^17.0.5",
23
- "pema": "^0.6.0",
24
- "@primate/core": "^0.6.0"
20
+ "@rcompat/assert": "^0.13.0",
21
+ "@rcompat/fs": "^0.33.2",
22
+ "@rcompat/string": "^0.21.0",
23
+ "marked": "^18.0.4",
24
+ "@primate/core": "^0.8.0",
25
+ "pema": "^0.8.0"
25
26
  },
26
27
  "devDependencies": {
27
- "@rcompat/type": "^0.11.1",
28
- "@primate/test": "^0.0.0"
28
+ "@rcompat/type": "^0.17.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "primate": "^0.37.0"
31
+ "primate": "^0.39.0"
32
32
  },
33
33
  "imports": {
34
34
  "#*": {
@@ -48,7 +48,7 @@
48
48
  }
49
49
  },
50
50
  "scripts": {
51
- "build": "npm run clean && tsc",
51
+ "build": "npm run clean && tsgo",
52
52
  "clean": "rm -rf ./lib",
53
53
  "lint": "eslint .",
54
54
  "test": "npm run build && npx proby"