Skip to content

Commit e8075c8

Browse files
authored
Update for Deno 1.4.0 (#113)
1 parent d4adc30 commit e8075c8

12 files changed

Lines changed: 26 additions & 27 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
timeout-minutes: 60
1010
strategy:
1111
matrix:
12-
os: [macOS-latest, windows-2019, ubuntu-16.04]
12+
os: [macOS-latest, windows-2019, ubuntu-latest]
1313

1414
steps:
1515
- name: Setup Environment
@@ -25,15 +25,15 @@ jobs:
2525
- name: Install rust
2626
uses: hecrj/setup-rust-action@v1
2727
with:
28-
rust-version: 1.44.0
28+
rust-version: 1.46.0
2929
- name: Install clippy and rustfmt
3030
run: |
3131
rustup component add clippy
3232
rustup component add rustfmt
3333
- name: Install Deno
3434
uses: denolib/setup-deno@master
3535
with:
36-
deno-version: 1.2.2
36+
deno-version: 1.4.0
3737
- name: Log versions
3838
run: |
3939
deno --version
@@ -43,16 +43,12 @@ jobs:
4343
- name: Cache
4444
uses: actions/cache@v2
4545
with:
46-
path: |-
46+
path: |
4747
~/.cargo/registry
4848
~/.cargo/git
49-
target/*/.*
50-
target/*/build
51-
target/*/deps
52-
key:
53-
${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
54-
restore-keys: |
55-
${{ matrix.os }}-
49+
target/
50+
key: ${{ runner.os }}-${{ github.sha }}
51+
restore-keys: ${{ runner.os }}-
5652

5753
# Lint
5854
- name: Clippy
@@ -67,7 +63,7 @@ jobs:
6763
run: cargo build --release --locked --all-targets
6864

6965
# Start MongoDB
70-
- name: Start MongoDB (MacOs)
66+
- name: Start MongoDB (macOS)
7167
if: startsWith(matrix.os, 'mac')
7268
run: |
7369
brew tap mongodb/brew
@@ -79,6 +75,7 @@ jobs:
7975
with:
8076
mongoDBVersion: 4.2
8177
# MongoDB is auto started on Windows by default
78+
8279
# Tests
8380
- name: Test Rust
8481
run: cargo test --release --locked --all-targets

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"deno.enable": true
3-
}
2+
"deno.enable": true,
3+
"deno.unstable": true
4+
}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deno_mongo"
3-
version = "0.11.0"
3+
version = "0.11.2"
44
authors = ["Enok <416828041@qq.com>"]
55
edition = "2018"
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ deno run --allow-net --allow-write --allow-read --allow-plugin --unstable xxx.ts
2525
## Examples
2626

2727
```ts
28-
import { MongoClient } from "https://deno.land/x/mongo@v0.11.1/mod.ts";
28+
import { MongoClient } from "https://deno.land/x/mongo@v0.11.2/mod.ts";
2929

3030
const client = new MongoClient();
3131
client.connectWithUri("mongodb://localhost:27017");

deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { prepare } from "https://deno.land/x/plugin_prepare@v0.7.2/mod.ts";
1+
export { prepare } from "https://deno.land/x/plugin_prepare@v0.7.5/mod.ts";

mod.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ export * from "./ts/client.ts";
44
export * from "./ts/collection.ts";
55
export * from "./ts/database.ts";
66
export * from "./ts/result.ts";
7-
export { ObjectId, UpdateOptions } from "./ts/types.ts";
7+
export { ObjectId } from "./ts/types.ts";
8+
export type { UpdateOptions } from "./ts/types.ts";
89
export * from "./ts/util.ts";
9-
export const VERSION = "v0.11.1";
10+
export const VERSION = "v0.11.2";
1011
export const RELEASE_URL =
1112
`https://github.com/manyuanrong/deno_mongo/releases/download/${VERSION}`;
1213

test.deps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export { exists } from "https://deno.land/std@0.63.0/fs/mod.ts";
1+
export { exists } from "https://deno.land/std@0.69.0/fs/mod.ts";
22
export {
33
assert,
44
assertEquals,
55
assertThrows,
66
assertThrowsAsync,
7-
} from "https://deno.land/std@0.63.0/testing/asserts.ts";
7+
} from "https://deno.land/std@0.69.0/testing/asserts.ts";

ts/collection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { MongoClient } from "./client.ts";
2-
import { UpdateResult } from "./result.ts";
1+
import type { MongoClient } from "./client.ts";
2+
import type { UpdateResult } from "./result.ts";
33
import {
44
ChainBuilderPromise,
55
CommandType,

ts/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MongoClient } from "./client.ts";
1+
import type { MongoClient } from "./client.ts";
22
import { Collection } from "./collection.ts";
33
import { CommandType } from "./types.ts";
44
import { dispatchAsync, encode } from "./util.ts";

0 commit comments

Comments
 (0)