Skip to content

Commit e75102b

Browse files
committed
chore: bump version
1 parent 6ba4ac1 commit e75102b

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.hooks/pre-commit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@ const parsedGitVersion = parse(latestTag);
1919
const cliAndCfgMatch = equals(parsedCliVersion, parsedCfgVersion);
2020
if (!cliAndCfgMatch) {
2121
throw new Error($.dedent`
22-
${colors.red(`mod.ts version and deno.jsonc version do not match`)}
22+
${colors.red(`cli.ts version and deno.jsonc version do not match`)}
2323
24-
Deno config "version" is ${colors.yellow(configVersion)} and mod.ts "version" is set to ${colors.blue(version)}
24+
Deno config "version" is ${colors.yellow(configVersion)} and cli.ts "version" is set to ${colors.blue(version)}
2525
2626
`);
2727
}
2828

2929
const nextIsNewer = greaterThan(parsedCliVersion, parsedGitVersion);
3030
if (!nextIsNewer) {
3131
throw new Error($.dedent`
32-
${colors.red(`mod.ts version is out of date`)}
32+
${colors.red(`cli.ts version is out of date`)}
3333
34-
Latest git tag is ${colors.yellow(latestTag)} and mod.ts "version" is set to ${colors.blue(version)}
34+
Latest git tag is ${colors.yellow(latestTag)} and cli.ts "version" is set to ${colors.blue(version)}
3535
3636
`);
3737
}
3838

3939
const daxVersionCorrect = depsDaxVersion === daxVersion;
4040
if (!daxVersionCorrect) {
4141
throw new Error($.dedent`
42-
${colors.red(`mod.ts daxVersion is out of date`)}
42+
${colors.red(`cli.ts daxVersion is out of date`)}
4343
44-
Version declared in dep.ts is ${colors.yellow(depsDaxVersion)} and mod.ts "daxVersion" is set to ${
44+
Version declared in dep.ts is ${colors.yellow(depsDaxVersion)} and cli.ts "daxVersion" is set to ${
4545
colors.blue(daxVersion)
4646
}`);
4747
}

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@andrewbrey/mdrb",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"exports": "./src/cli.ts",
55
"publish": {
66
"include": [

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { type CodeBlock, mdCodeBlocks, renderMDToString } from "./markdown.ts";
33
import { invariant, toFileURL } from "./util.ts";
44

55
/** Current version of MDRB */
6-
export const version = "3.0.3";
6+
export const version = "3.0.4";
77

88
/** Bundled version of `@david/dax` */
99
export const daxVersion = "0.42.0";

src/markdown.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Deno.test("mdCodeBlocks works for posix", () => {
1010
for (const ext of "ts|typescript|js|javascript".split("|")) {
1111
const code = $.dedent`
1212
${FENCE}${ext}
13-
import mod from "./mod.ts";
13+
import mod from "./add.ts";
1414
console.log("hello world");
1515
${FENCE}
1616
`;
@@ -21,7 +21,7 @@ Deno.test("mdCodeBlocks works for posix", () => {
2121
assertEquals(
2222
blocks.at(0)?.code,
2323
$.dedent`
24-
import mod from "file://a/b/mod.ts";
24+
import mod from "file://a/b/add.ts";
2525
console.log("hello world");
2626
`,
2727
);
@@ -34,7 +34,7 @@ Deno.test("mdCodeBlocks works for windows", () => {
3434
for (const ext of "ts|typescript|js|javascript".split("|")) {
3535
const code = $.dedent`
3636
${FENCE}${ext}
37-
import mod from "./mod.ts";
37+
import mod from "./add.ts";
3838
console.log("hello world");
3939
${FENCE}
4040
`;
@@ -45,7 +45,7 @@ Deno.test("mdCodeBlocks works for windows", () => {
4545
assertEquals(
4646
blocks.at(0)?.code,
4747
$.dedent`
48-
import mod from "file:///D:/a/b/mod.ts";
48+
import mod from "file:///D:/a/b/add.ts";
4949
console.log("hello world");
5050
`,
5151
);
@@ -58,17 +58,17 @@ Deno.test("mdCodeBlocks works for multiple blocks and block idx is accurate", ()
5858
for (const ext of "ts|typescript|js|javascript".split("|")) {
5959
const code = $.dedent`
6060
${FENCE}${ext}
61-
import mod from "./mod.ts";
61+
import mod from "./add.ts";
6262
console.log("hello world1");
6363
${FENCE}
6464
6565
${FENCE}${ext}
66-
import mod from "./mod.ts";
66+
import mod from "./add.ts";
6767
console.log("hello world2");
6868
${FENCE}
6969
7070
${FENCE}${ext}
71-
import mod from "./mod.ts";
71+
import mod from "./add.ts";
7272
console.log("hello world3");
7373
${FENCE}
7474
`;
@@ -84,7 +84,7 @@ Deno.test("mdCodeBlocks works for multiple blocks and block idx is accurate", ()
8484
assertEquals(
8585
block?.code,
8686
$.dedent`
87-
import mod from "file://a/b/mod.ts";
87+
import mod from "file://a/b/add.ts";
8888
console.log("hello world${idx}");
8989
`,
9090
);
@@ -118,7 +118,7 @@ Deno.test("mdCodeBlocks works for tilde blocks and block idx works", () => {
118118
for (const ext of "ts|typescript|js|javascript".split("|")) {
119119
const code = $.dedent`
120120
~~~${ext}
121-
import mod from "./mod.ts";
121+
import mod from "./add.ts";
122122
console.log("hello world");
123123
~~~
124124
`;
@@ -130,7 +130,7 @@ Deno.test("mdCodeBlocks works for tilde blocks and block idx works", () => {
130130
assertEquals(
131131
blocks.at(0)?.code,
132132
$.dedent`
133-
import mod from "file://a/b/mod.ts";
133+
import mod from "file://a/b/add.ts";
134134
console.log("hello world");
135135
`,
136136
);

0 commit comments

Comments
 (0)