Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
taoeffect committed Jan 18, 2025
1 parent 5ca2aa0 commit fd1cc32
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# HISTORY

### v3.0.0

- Breaking change: sses new Shelter Protocol CIDs to be able to identify hashes for manifests, contracts, events, and files.

### v2.2.3

- Use `/dev-file` for file upload to URL endpoint on `deploy`
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ cp -r path/to/contracts/* test/assets/ && ls ./test/assets/*-slim.js | sed -En '
Current release hashes will always be listed here.

```
eefc0c783937e879153c2bc36f3aa435570d6ab4b8d786af2c11c72d21984a91 dist/chel-v2.2.3-aarch64-apple-darwin.tar.gz
8211e8f01ebe06020e2cb383b931d761d103a3de7a7e3fac7948aa0feb275358 dist/chel-v2.2.3-aarch64-unknown-linux-gnu.tar.gz
924e00ee0b3a7aa87bea58baad44bed75e41cab0581da9ea3409e713a594f64c dist/chel-v2.2.3-x86_64-apple-darwin.tar.gz
30671935a46194b4e4dcbc56e9f5272421f45dc602a0fef9536ba8d5e9eaa26d dist/chel-v2.2.3-x86_64-pc-windows-msvc.tar.gz
88aef6fbc2fe671a2a2b3bf6ed99cfdae3a1083b452cc963b5162bcacb03979f dist/chel-v2.2.3-x86_64-unknown-linux-gnu.tar.gz
8a267d23405085ac4b01e55fca235b68f07875d1f7898f711c07da5b1d384b80 dist/chel-v3.0.0-aarch64-apple-darwin.tar.gz
e46f8b42bb8c2c1f0c0263ffa7b28d0b4030f0892f68e65541fe4e4dd7b2f7e4 dist/chel-v3.0.0-aarch64-unknown-linux-gnu.tar.gz
497468d57887e2a922045d5f82200c99336fd807762f200621a8dc8a761032c1 dist/chel-v3.0.0-x86_64-apple-darwin.tar.gz
f8fc1dba11045519d172868c54433a983de04248a1bb61edf206eacee6ad65fa dist/chel-v3.0.0-x86_64-pc-windows-msvc.tar.gz
301e5fd7fc483f40520090f810d0d463f092b50855e0259aa2dec8b15ee67029 dist/chel-v3.0.0-x86_64-unknown-linux-gnu.tar.gz
```

## History
Expand Down
14 changes: 9 additions & 5 deletions build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ async function upload(args, internal = false) {
for (const filepath_ of files) {
let type = multicodes.RAW;
let filepath = filepath_;
if (filepath_[1] === "|") {
if (internal) {
if (filepath_[1] !== "|")
throw new Error("Invalid path format");
switch (filepath_[0]) {
case "r":
break;
Expand Down Expand Up @@ -367,6 +369,8 @@ function handleFetchResult(type) {
}

// src/deploy.ts
var CONTRACT_TEXT_PREFIX = `t|`;
var CONTRACT_MANIFEST_PREFIX = `m|`;
async function deploy(args) {
const [urlOrDirOrSqliteFile, ...manifests] = args;
if (manifests.length === 0)
Expand All @@ -376,11 +380,11 @@ async function deploy(args) {
const json = JSON.parse(Deno.readTextFileSync(manifestPath));
const body = JSON.parse(json.body);
const dirname = path.dirname(manifestPath);
toUpload.push("t|" + path.join(dirname, body.contract.file));
toUpload.push(CONTRACT_TEXT_PREFIX + path.join(dirname, body.contract.file));
if (body.contractSlim) {
toUpload.push("t|" + path.join(dirname, body.contractSlim.file));
toUpload.push(CONTRACT_TEXT_PREFIX + path.join(dirname, body.contractSlim.file));
}
toUpload.push("m|" + manifestPath);
toUpload.push(CONTRACT_MANIFEST_PREFIX + manifestPath);
}
await upload([urlOrDirOrSqliteFile, ...toUpload], true);
}
Expand Down Expand Up @@ -961,7 +965,7 @@ var verifySignature2 = async (args, internal = false) => {

// src/version.ts
function version() {
console.log("2.2.3");
console.log("3.0.0");
}

// src/main.ts
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chelonia/cli",
"version": "2.2.3",
"version": "3.0.0",
"description": "Chelonia Command-line Interface",
"main": "src/main.ts",
"scripts": {
Expand Down

0 comments on commit fd1cc32

Please sign in to comment.