Skip to content

Commit 0a73119

Browse files
committed
chore: release 0.19.0
1 parent 85b303a commit 0a73119

File tree

10 files changed

+36
-692
lines changed

10 files changed

+36
-692
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ Molt can update to dependencies written in different formats. URL imports,
6969
...
7070
```
7171

72+
> [!NOTE]\
73+
> Molt uses a similar versioning strategy as `increase-if-necessary` in
74+
> `dependabot` to bump version ranges[^1].
75+
7276
## Packages
7377

7478
### [@molt/cli]
@@ -130,6 +134,11 @@ Molt is inspired by prior works such as
130134

131135
and of full respect to the authors.
132136

137+
<!-- Footnotes -->
138+
139+
[^1]: See
140+
[Dependabot's versioning strategy](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#versioning-strategy).
141+
133142
<!-- Links -->
134143

135144
[Deno]: https://deno.land

cli/deno.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@molt/cli",
3-
"version": "0.19.0-rc.10",
3+
"version": "0.19.0",
44
"exports": {
55
".": "./main.ts"
66
},
77
"publish": {
88
"include": [
9-
"deno.json",
9+
"README.md",
1010
"main.ts",
1111
"src/*.ts"
1212
],

cli/deno.lock

-510
This file was deleted.

core/deno.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@molt/core",
3-
"version": "0.19.0-rc.10",
3+
"version": "0.19.0",
44
"exports": {
55
".": "./mod.ts",
66
"./bumps": "./bumps.ts",
@@ -12,14 +12,11 @@
1212
"./updates": "./updates.ts"
1313
},
1414
"publish": {
15-
"include": [
16-
"deno.json",
17-
"*.ts",
18-
"deno_lockfile/js"
19-
],
2015
"exclude": [
21-
"*_test.ts",
22-
"!deno_lockfile/js"
16+
"!deno_lockfile/js",
17+
"deno_lockfile/js/deno.json",
18+
"deno_lockfile/js/test.ts",
19+
"*_test.ts"
2320
]
2421
}
2522
}

core/deno.lock

-21
This file was deleted.

core/updates_test.ts

+12-19
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ import { assertEquals } from "@std/assert";
22
import { describe, it } from "@std/testing/bdd";
33
import { parse } from "./specs.ts";
44
import { get } from "./updates.ts";
5-
import { MOLT_VERSION } from "./internal.ts";
65

76
describe("get", () => {
8-
const latest = MOLT_VERSION;
9-
107
it("should get a released update to deno.land/std", async () => {
118
const dep = parse("https://deno.land/std@0.220.0/bytes/copy.ts");
129
assertEquals(await get(dep), {
@@ -34,40 +31,36 @@ describe("get", () => {
3431
});
3532

3633
it("should get an update to a fixed jsr dep", async () => {
37-
const dep = parse("jsr:@molt/core@0.18.0");
34+
const dep = parse("jsr:@luca/flag@1.0.0");
3835
assertEquals(await get(dep), {
39-
released: "0.18.5",
40-
latest,
36+
constrainted: "1.0.0",
37+
released: "1.0.1",
4138
});
4239
});
4340

44-
it("should get an update to a jsr dep", async () => {
45-
const dep = parse("jsr:@molt/core@^0.18.0");
41+
it("should get an update to a ranged jsr dep", async () => {
42+
const dep = parse("jsr:@luca/flag@^1.0.0");
4643
assertEquals(await get(dep), {
47-
constrainted: "0.18.5",
48-
latest,
44+
constrainted: "1.0.1",
4945
});
5046
});
5147

5248
it("should get a constrainted update to an outdated locked jsr dep", async () => {
5349
const dep = {
54-
...parse("jsr:@molt/core@^0.18.0"),
55-
locked: "0.18.2",
50+
...parse("jsr:@luca/flag@^1.0.0"),
51+
locked: "1.0.0",
5652
};
5753
assertEquals(await get(dep), {
58-
constrainted: "0.18.5",
59-
latest,
54+
constrainted: "1.0.1",
6055
});
6156
});
6257

6358
it("should not get a released update to a jsr dep locked to the latest", async () => {
6459
const dep = {
65-
...parse("jsr:@molt/core@^0.18.0"),
66-
locked: "0.18.5",
60+
...parse("jsr:@luca/flag@^1.0.0"),
61+
locked: "1.0.1",
6762
};
68-
assertEquals(await get(dep), {
69-
latest,
70-
});
63+
assertEquals(await get(dep), undefined);
7164
});
7265

7366
it("should get an update to a npm dep", async () => {

deno.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"@core/unknownutil": "jsr:@core/unknownutil@^3.18.1",
2020
"@david/dax": "jsr:@david/dax@^0.41.0",
2121
"@deno/graph": "jsr:@deno/graph@^0.80.0",
22+
"@molt/core": "jsr:@molt/core@^0.19.0",
23+
"@molt/integration": "jsr:@molt/integration@^0.19.0",
24+
"@molt/lib": "jsr:@molt/lib@^0.19.0",
2225
"@octokit/rest": "npm:@octokit/rest@^21.0.0",
2326
"@std/assert": "jsr:@std/assert@^1.0.0",
2427
"@std/collections": "jsr:@std/collections@^1.0.1",
@@ -32,13 +35,6 @@
3235
"@std/testing": "jsr:@std/testing@^0.225.0",
3336
"dedent": "npm:dedent@^1.5.3"
3437
},
35-
"scopes": {
36-
"./": {
37-
"@molt/core": "jsr:@molt/core@^0.19.0-rc.1",
38-
"@molt/integration": "jsr:@molt/integration@^0.19.0-rc.1",
39-
"@molt/lib": "jsr:@molt/lib@^0.19.0-rc.1"
40-
}
41-
},
4238
"lint": {
4339
"exclude": [
4440
"test/fixtures"

0 commit comments

Comments
 (0)