Skip to content

Commit a3941d9

Browse files
bump sway-libs repo, uncomment version getters (#309)
1 parent 52f4282 commit a3941d9

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

scripts/update-nightly/versions.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ export function getExistingVersions() {
88
rust: getRustSDKVersion(false),
99
ts: getTSSDKVersion(false),
1010
wallet: getWalletVersion(false),
11-
// TODO: uncomment when sway-libs is bumped to 0.22.0
12-
// sway_libs: getSwayLibsVersion(false),
11+
sway_libs: getSwayLibsVersion(false),
1312
sway_standards: getSwayStandardsVersion(false),
1413
};
1514
versions.nightly = {
1615
forc: getForcVersion(true),
1716
rust: getRustSDKVersion(true),
1817
ts: getTSSDKVersion(true),
1918
wallet: getWalletVersion(true),
20-
// sway_libs: getSwayLibsVersion(true),
19+
sway_libs: getSwayLibsVersion(true),
2120
sway_standards: getSwayStandardsVersion(true),
2221
};
2322

src/config/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rust": "0.63.0",
55
"ts": "0.89.1",
66
"wallet": "0.21.0",
7-
"sway_libs": "0.21.0",
7+
"sway_libs": "0.22.0",
88
"sway_standards": "0.5.0"
99
}
1010
}

src/lib/versions.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@ function getForcVersion(docsDir: string) {
6363
}
6464

6565
function getSwayLibsVersion(docsDir: string) {
66-
// TODO: uncomment this once sway-libs 0.22.0 is released
67-
// const filedir = join(docsDir, 'sway-libs/Cargo.toml');
68-
// const file = fs.readFileSync(filedir, 'utf-8');
69-
// const tomfile = toml.parse(file);
70-
// const version = tomfile.package.version;
71-
const version = '0.21.0';
66+
const filedir = join(docsDir, 'sway-libs/Cargo.toml');
67+
const file = fs.readFileSync(filedir, 'utf-8');
68+
const tomfile = toml.parse(file);
69+
const version = tomfile.package.version;
7270
return {
7371
name: 'sway-libs',
7472
category: 'Sway Libraries',

0 commit comments

Comments
 (0)