Skip to content

Commit

Permalink
feat: upgrade to deno 1.17 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Dec 17, 2021
1 parent 23dde93 commit 817105f
Show file tree
Hide file tree
Showing 11 changed files with 160 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- uses: denoland/setup-deno@v1
with:
deno-version: ~1.16
deno-version: ~1.17
- run: deno lint --config deno.json
if: matrix.os == 'ubuntu-latest'
- run: deno fmt --config deno.json --check
Expand Down
12 changes: 11 additions & 1 deletion PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [x] **`File`**
- [x] 👻 **`FileInfo`**
- [x] 👻 **`FsEvent`**
- [x] 👻 **`FsEventFlag`**
- [x] 👻 **`FsWatcher`**
- [x] 👻 **`HrtimePermissionDescriptor`**
- [x] 👻 **`HttpConn`**
Expand Down Expand Up @@ -59,6 +60,7 @@
- [x] 🧪 👻 **`TestContext`**
- [x] 👻 **`TestDefinition`**
- [x] 👻 **`TlsConn`**
- [x] 👻 **`TlsHandshakeInfo`**
- [x] 👻 **`TlsListener`**
- [x] 👻 **`UnixAddr`**
- [ ] 👻 **`UpgradeWebSocketOptions`**
Expand Down Expand Up @@ -172,7 +174,7 @@

# Unstable Progress

26%. 14 unstable members to go:
30%. 16 unstable members to go:

- [ ] 👻 **`BasicAuth`**
- [ ] 🧪 👻 **`CompilerOptions`**
Expand All @@ -193,11 +195,17 @@
- [ ] 👻 **`NativeType`**
- [ ] 👻 **`Proxy`**
- [ ] 👻 **`SetRawOptions`**
- [ ] 👻 **`StartTlsOptions`**
- [ ] 👻 **`SystemMemoryInfo`**
- [x] 🧪 👻 **`TestContext`**
- [x] 🧪 👻 **`TestStepDefinition`**
- [x] 👻 **`TlsConn`**
- [x] 👻 **`TlsHandshakeInfo`**
- [ ] 👻 **`TypedArray`**
- [x] 👻 **`UnixConnectOptions`**
- [x] 👻 **`UnixListenOptions`**
- [ ] 🧪 **`UnsafePointer`**
- [ ] 🧪 **`UnsafePointerView`**
- [ ] 🧪 **`addSignalListener`**
- [ ] 🧪 **`applySourceMap`**
- [x] 🧪 **`connect`**
Expand All @@ -218,11 +226,13 @@
- [ ] 🧪 **`listenDatagram`**
- [ ] **`loadavg`**
- [ ] **`osRelease`**
- [ ] 🧪 **`refTimer`**
- [ ] 🧪 **`removeSignalListener`**
- [x] **`run`**
- [ ] 🧪 **`setRaw`**
- [ ] 🧪 **`sleepSync`**
- [ ] **`systemMemoryInfo`**
- [ ] 🧪 **`umask`**
- [ ] 🧪 **`unrefTimer`**
- [x] 🧪 **`utime`**
- [x] 🧪 **`utimeSync`**
146 changes: 135 additions & 11 deletions lib/deno.ns.lib.d.ts

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

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": "deno.ns",
"version": "0.7.3",
"version": "0.8.0",
"description": "Deno namespace shim for Node.js",
"keywords": [
"deno namespace",
Expand Down
6 changes: 4 additions & 2 deletions src/deno/internal/Conn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ export class Conn extends File implements Deno.Conn {
}

export class TlsConn extends Conn implements Deno.TlsConn {
handshake() {
handshake(): Promise<Deno.TlsHandshakeInfo> {
console.warn("deno.ns: Handshake is not supported.");
return Promise.resolve();
return Promise.resolve({
alpnProtocol: null,
});
}
}
4 changes: 2 additions & 2 deletions src/deno/internal/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const deno = "1.16.2";
export const typescript = "4.4.2";
export const deno = "1.17.0";
export const typescript = "4.5.2";
1 change: 1 addition & 0 deletions src/deno/stable/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type EnvPermissionDescriptor = Deno.EnvPermissionDescriptor;
export type FfiPermissionDescriptor = Deno.FfiPermissionDescriptor;
export type FileInfo = Deno.FileInfo;
export type FsEvent = Deno.FsEvent;
export type FsEventFlag = Deno.FsEventFlag;
export type FsWatcher = Deno.FsWatcher;
export type HrtimePermissionDescriptor = Deno.HrtimePermissionDescriptor;
export type HttpConn = Deno.HttpConn;
Expand Down
1 change: 1 addition & 0 deletions src/deno/unstable/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { errors } from "../stable/variables.js";

export type TestContext = Deno.TestContext;
export type TestStepDefinition = Deno.TestStepDefinition;
export type TlsHandshakeInfo = Deno.TlsHandshakeInfo;
export type UnixConnectOptions = Deno.UnixConnectOptions;
export type UnixListenOptions = Deno.UnixListenOptions;

Expand Down
2 changes: 1 addition & 1 deletion tools/denolib.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Project } from "./deps.ts";

if (!Deno.version.deno.startsWith("1.16")) {
if (!Deno.version.deno.startsWith("1.17")) {
console.error("Wrong Deno version: " + Deno.version.deno);
Deno.exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion tools/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/x/[email protected].0/mod.ts";
export * from "https://deno.land/x/[email protected].2/mod.ts";

0 comments on commit 817105f

Please sign in to comment.