Skip to content

Commit 9905869

Browse files
author
subshell
committed
[tag] v0.2.45-4
1 parent 6530374 commit 9905869

File tree

13 files changed

+43
-52
lines changed

13 files changed

+43
-52
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Here are Subshell's advantages over existing Node.js based shells.
153153
In fact, you can load the Subshell init script in Deno.
154154

155155
```
156-
$ deno repl --unstable --eval-file=https://deno.land/x/[email protected]3/init.ts
156+
$ deno repl --unstable --eval-file=https://deno.land/x/[email protected]4/init.ts
157157
...
158158
Deno 1.23.2
159159
exit using ctrl+d or close()

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 0.2.45-4 Dec 30, 2024
4+
5+
- switch to npm: specifier
6+
37
## 0.2.45-3 Dec 30, 2024
48

59
- fix release tag

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ RUN chmod 644 /cache/deno_history.txt
4343

4444
USER subshell
4545

46-
ENV SUBSHELL_VERSION 0.2.45-3
46+
ENV SUBSHELL_VERSION 0.2.45-4
4747

4848
CMD hub

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ a Deno 🦕 repl, using polkadot-js extension as remote signer ✍️.
44
Start with browser extension integration
55

66
```
7-
$ deno repl --allow-net --allow-env --eval-file=https://deno.land/x/[email protected]3/init.ts
7+
$ deno repl --allow-net --allow-env --eval-file=https://deno.land/x/[email protected]4/init.ts
88
```
99

1010
Start in lite mode
1111

1212
```
13-
$ deno repl --allow-net --allow-env --eval-file=https://deno.land/x/[email protected]3/tini.ts
13+
$ deno repl --allow-net --allow-env --eval-file=https://deno.land/x/[email protected]4/tini.ts
1414
```

cache.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
ApiPromise,
3-
WsProvider,
4-
} from "https://deno.land/x/[email protected]/api/mod.ts";
1+
import { ApiPromise, WsProvider } from "npm:@polkadot/api";
52

63
import fs from "node:fs";
74

ci-release.ts

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
#!/usr/bin/env -S deno run --allow-read --allow-run --allow-write --allow-env
12
// Copyright 2017-2022 @polkadot/deno authors & contributors
23
// SPDX-License-Identifier: Apache-2.0
34

45
// execute with
56
// deno run --allow-read --allow-run --allow-write --allow-env ci-release.ts
67

7-
import { stringCamelCase } from "https://deno.land/x/[email protected]/util/mod.ts";
8+
import { stringCamelCase } from "npm:@polkadot/util";
89

910
// tighter specification for git arguments
1011
type GitArgs =
@@ -113,7 +114,7 @@ async function gitSetup(): Promise<void> {
113114
await git("config", "user.email", MAIL);
114115
await git("config", "push.default", "simple");
115116
await git("config", "merge.ours.driver", "true");
116-
await git("config", "--unset", "http.https://github.com/.extraheader");
117+
// await git("config", "--unset", "http.https://github.com/.extraheader");
117118
await git("checkout", "main");
118119
}
119120

@@ -176,4 +177,4 @@ await setPkgVersion(
176177
POLKADOT_VERSION,
177178
".",
178179
);
179-
await gitPush(version);
180+
// await gitPush(version);

client/mod.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
import {
2-
ApiPromise,
3-
WsProvider,
4-
} from "https://deno.land/x/[email protected]/api/mod.ts";
5-
import type {
6-
Signer,
7-
SignerResult,
8-
} from "https://deno.land/x/[email protected]/api/types/index.ts";
1+
import { ApiPromise, WsProvider } from "npm:@polkadot/api";
2+
import type { Signer, SignerResult } from "npm:@polkadot/api/types";
93
import type {
104
Registry,
115
SignerPayloadJSON,
126
SignerPayloadRaw,
13-
} from "https://deno.land/x/[email protected]/types/types/index.ts";
7+
} from "npm:@polkadot/types/types";
148

159
export class Client implements Signer {
1610
private encoder = new TextEncoder();

init.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
import "https://deno.land/x/[email protected]/api-augment/mod.ts";
2-
import {
3-
ApiPromise,
4-
WsProvider,
5-
} from "https://deno.land/x/[email protected]/api/mod.ts";
6-
import { GearApi } from "https://gear-js.deno.dev/api/src/index.ts";
7-
import { Client } from "https://deno.land/x/[email protected]/client/mod.ts";
8-
// import { VerboseSigner } from "https://deno.land/x/[email protected]/signer/mod.ts";
9-
import { stringToU8a } from "https://deno.land/x/[email protected]/util/mod.ts";
1+
import "npm:@polkadot/api-augment";
2+
import { ApiPromise, WsProvider } from "npm:@polkadot/api";
3+
import { GearApi } from "npm:@gear-js/api";
4+
import { Client } from "https://deno.land/x/[email protected]/client/mod.ts";
5+
// import { VerboseSigner } from "https://deno.land/x/[email protected]/signer/mod.ts";
6+
import { stringToU8a } from "npm:@polkadot/util";
107

118
const GEAR = !!Deno.env.get("GEAR");
129
const DEFAULT_PROVIDER = GEAR
13-
? "wss://rpc.vara-network.io"
10+
? "wss://rpc.vara.network"
1411
: "wss://rpc.polkadot.io";
1512
const SESSION_ID = Deno.env.get("SESSION_ID") ?? "";
1613
const PROVIDER = Deno.env.get("PROVIDER") ?? DEFAULT_PROVIDER;
@@ -24,8 +21,12 @@ function progInfo() {
2421
// "⚙️ v8 version ": Deno.version.v8,
2522
// "🇹 TypeScript version ": Deno.version.typescript,
2623
"🦕 Deno": Deno.version.deno,
27-
"📗 Wiki": GEAR ? "https://github.com/btwiuse/gear.sh/wiki" : "https://wiki.subshell.xyz",
28-
"🙋 Issues": GEAR ? "https://github.com/btwiuse/gear.sh/issues" : "https://github.com/btwiuse/subshell/issues",
24+
"📗 Wiki": GEAR
25+
? "https://github.com/btwiuse/gear.sh/wiki"
26+
: "https://wiki.subshell.xyz",
27+
"🙋 Issues": GEAR
28+
? "https://github.com/btwiuse/gear.sh/issues"
29+
: "https://github.com/btwiuse/subshell/issues",
2930
// "⛓️ RPC Pprvider": PROVIDER,
3031
// "🪄 Custom types": JSON.stringify(TYPES) != '{}' ? 'Yes' : 'None',
3132
// "📖 Runtime api reference": 'https://substrate.rs',

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ const status = await Deno.run({
88
"--allow-env",
99
"--no-prompt",
1010
"--unstable",
11-
"--eval-file=https://deno.land/x/[email protected]3/init.ts",
11+
"--eval-file=https://deno.land/x/[email protected]4/init.ts",
1212
],
1313
}).status();

signer/mod.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
import {
2-
ApiPromise,
3-
WsProvider,
4-
} from "https://deno.land/x/[email protected]/api/mod.ts";
5-
import type {
6-
Signer,
7-
SignerResult,
8-
} from "https://deno.land/x/[email protected]/api/types/index.ts";
1+
import { ApiPromise, WsProvider } from "npm:@polkadot/api";
2+
import type { Signer, SignerResult } from "npm:@polkadot/api/types";
93
import type {
104
Registry,
115
SignerPayloadJSON,
126
SignerPayloadRaw,
13-
} from "https://deno.land/x/[email protected]/types/types/index.ts";
14-
import { Keyring } from "https://deno.land/x/[email protected]/api/mod.ts";
15-
import { createTestPairs } from "https://deno.land/x/[email protected]/keyring/mod.ts";
7+
} from "npm:@polkadot/types/types";
8+
import { Keyring } from "npm:@polkadot/api";
9+
import { createTestPairs } from "npm:@polkadot/keyring";
1610

1711
export function VerboseSigner(inner: Signer): Signer {
1812
async function signRaw(payload: SignerPayloadRaw): Promise<SignerResult> {

0 commit comments

Comments
 (0)