Skip to content

Commit

Permalink
Update to latest deno 1.39.3, [email protected].
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspurlock-skymethod committed Jan 12, 2024
1 parent ecfa016 commit a769def
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/npm_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ -z "$VERSION" ]; then
fi

# install deno
DENO_VERSION="v1.38.3"
DENO_VERSION="v1.39.3"
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=./deno-$DENO_VERSION sh -s $DENO_VERSION

# run unit tests as a sanity check
Expand Down
4 changes: 2 additions & 2 deletions src-x/sqlite.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertInstanceOf } from 'https://deno.land/std@0.208.0/assert/assert_instance_of.ts';
import { AssertionError } from 'https://deno.land/std@0.208.0/assert/assertion_error.ts';
import { assertInstanceOf } from 'https://deno.land/std@0.212.0/assert/assert_instance_of.ts';
import { AssertionError } from 'https://deno.land/std@0.212.0/assert/assertion_error.ts';
import { encodeHex, equalBytes } from '../src/bytes.ts';
import { packKey, unpackKey } from '../src/kv_key.ts';
import { AtomicCheck, Kv, KvCommitError, KvCommitResult, KvConsistencyLevel, KvEntry, KvEntryMaybe, KvKey, KvListOptions, KvListSelector, KvService } from '../src/kv_types.ts';
Expand Down
2 changes: 1 addition & 1 deletion src-x/sqlite_e2e_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseArgs as parseFlags } from 'https://deno.land/std@0.208.0/cli/parse_args.ts';
import { parseArgs as parseFlags } from 'https://deno.land/std@0.212.0/cli/parse_args.ts';
import { endToEnd } from '../src/e2e.ts';
import { makeSqliteService } from './sqlite.ts';

Expand Down
4 changes: 2 additions & 2 deletions src/bytes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { encodeHex, decodeHex } from 'https://deno.land/std@0.208.0/encoding/hex.ts';
import { concat } from 'https://deno.land/std@0.208.0/bytes/concat.ts';
export { encodeHex, decodeHex } from 'https://deno.land/std@0.212.0/encoding/hex.ts';
import { concat } from 'https://deno.land/std@0.212.0/bytes/concat.ts';

export function checkEnd(bytes: Uint8Array, pos: number) {
const extra = bytes.length - pos;
Expand Down
18 changes: 9 additions & 9 deletions src/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// deno-lint-ignore-file no-explicit-any
import { assert } from 'https://deno.land/std@0.208.0/assert/assert.ts';
import { assertEquals } from 'https://deno.land/std@0.208.0/assert/assert_equals.ts';
import { assertExists } from 'https://deno.land/std@0.208.0/assert/assert_exists.ts';
import { assertFalse } from 'https://deno.land/std@0.208.0/assert/assert_false.ts';
import { assertMatch } from 'https://deno.land/std@0.208.0/assert/assert_match.ts';
import { assertNotEquals } from 'https://deno.land/std@0.208.0/assert/assert_not_equals.ts';
import { assertRejects } from 'https://deno.land/std@0.208.0/assert/assert_rejects.ts';
import { assertThrows } from 'https://deno.land/std@0.208.0/assert/assert_throws.ts';
import { assert } from 'https://deno.land/std@0.212.0/assert/assert.ts';
import { assertEquals } from 'https://deno.land/std@0.212.0/assert/assert_equals.ts';
import { assertExists } from 'https://deno.land/std@0.212.0/assert/assert_exists.ts';
import { assertFalse } from 'https://deno.land/std@0.212.0/assert/assert_false.ts';
import { assertMatch } from 'https://deno.land/std@0.212.0/assert/assert_match.ts';
import { assertNotEquals } from 'https://deno.land/std@0.212.0/assert/assert_not_equals.ts';
import { assertRejects } from 'https://deno.land/std@0.212.0/assert/assert_rejects.ts';
import { assertThrows } from 'https://deno.land/std@0.212.0/assert/assert_throws.ts';
import { checkString } from './check.ts';
import { KvListOptions, KvListSelector, KvService } from './kv_types.ts';
import { sleep } from './sleep.ts';
import { AssertionError } from 'https://deno.land/std@0.208.0/assert/assertion_error.ts';
import { AssertionError } from 'https://deno.land/std@0.212.0/assert/assertion_error.ts';

export async function endToEnd(service: KvService, { type, subtype, path }: { type: 'deno' | 'userland', subtype?: 'in-memory' | 'napi' | 'remote' | 'sqlite', path: string }) {

Expand Down
6 changes: 3 additions & 3 deletions src/e2e_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { chunk } from 'https://deno.land/std@0.208.0/collections/chunk.ts';
import { parseArgs as parseFlags } from 'https://deno.land/std@0.208.0/cli/parse_args.ts';
import { parse as parseVersion, compare as compareVersion } from 'https://deno.land/std@0.208.0/semver/mod.ts';
import { chunk } from 'https://deno.land/std@0.212.0/collections/chunk.ts';
import { parseArgs as parseFlags } from 'https://deno.land/std@0.212.0/cli/parse_args.ts';
import { parse as parseVersion, compare as compareVersion } from 'https://deno.land/std@0.212.0/semver/mod.ts';
import { makeRemoteService } from './remote.ts';
import { makeNativeService } from './native.ts';
import { endToEnd } from './e2e.ts';
Expand Down
4 changes: 2 additions & 2 deletions src/in_memory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertInstanceOf } from 'https://deno.land/std@0.208.0/assert/assert_instance_of.ts';
import { RedBlackTree } from 'https://deno.land/std@0.208.0/data_structures/red_black_tree.ts';
import { assertInstanceOf } from 'https://deno.land/std@0.212.0/assert/assert_instance_of.ts';
import { RedBlackTree } from 'https://deno.land/std@0.212.0/data_structures/red_black_tree.ts';
import { compareBytes, equalBytes } from './bytes.ts';
import { packKey, unpackKey } from './kv_key.ts';
import { AtomicCheck, KvCommitError, KvCommitResult, KvConsistencyLevel, KvEntry, KvEntryMaybe, KvKey, KvListOptions, KvListSelector, KvService } from './kv_types.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/kv_key_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { KvKey } from './kv_types.ts';
import { packKey, unpackKey } from './kv_key.ts';
import { assertEquals } from 'https://deno.land/std@0.208.0/assert/assert_equals.ts';
import { assertEquals } from 'https://deno.land/std@0.212.0/assert/assert_equals.ts';

Deno.test({
name: 'packKey/unpackKey',
Expand Down
4 changes: 2 additions & 2 deletions src/kv_u64_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals } from 'https://deno.land/std@0.208.0/assert/assert_equals.ts';
import { assertThrows } from 'https://deno.land/std@0.208.0/assert/assert_throws.ts';
import { assertEquals } from 'https://deno.land/std@0.212.0/assert/assert_equals.ts';
import { assertThrows } from 'https://deno.land/std@0.212.0/assert/assert_throws.ts';
import { _KvU64 } from './kv_u64.ts';

Deno.test({
Expand Down
4 changes: 2 additions & 2 deletions src/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ProtoBasedKv, WatchCache } from './proto_based.ts';
import { sleep } from './sleep.ts';
import { makeUnrawWatchStream } from './unraw_watch_stream.ts';
import { decodeV8 as _decodeV8, encodeV8 as _encodeV8 } from './v8.ts';
import { _exponentialBackoffWithJitter } from 'https://deno.land/std@0.208.0/async/_util.ts';
import { exponentialBackoffWithJitter } from 'https://deno.land/std@0.212.0/async/_util.ts';

type Fetcher = typeof fetch;

Expand Down Expand Up @@ -234,7 +234,7 @@ class RemoteKv extends ProtoBasedKv {
} else if (endOfStreamReached && !readerCancelled) {
const readDuration = readStarted > -1 ? (Date.now() - readStarted) : 0;
if (readDuration > 60000) attempt = 1; // we read for at least a minute, reset attempt counter to avoid missing updates
const timeout = Math.round(_exponentialBackoffWithJitter(
const timeout = Math.round(exponentialBackoffWithJitter(
60000, // max timeout
1000, // min timeout
attempt,
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/build_npm.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join } from 'https://deno.land/std@0.208.0/path/join.ts';
import { join } from 'https://deno.land/std@0.212.0/path/join.ts';
import { LibName, build, emptyDir } from 'https://deno.land/x/[email protected]/mod.ts';
import { parseArgs as parseFlags } from 'https://deno.land/std@0.208.0/cli/parse_args.ts';
import { parseArgs as parseFlags } from 'https://deno.land/std@0.212.0/cli/parse_args.ts';
import { generateNapiIndex } from './generate_napi_index.ts';
import { run } from './process.ts';

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/process.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TextLineStream } from 'https://deno.land/std@0.208.0/streams/text_line_stream.ts';
import { TextLineStream } from 'https://deno.land/std@0.212.0/streams/text_line_stream.ts';

type Opts = { command: string, cwd?: string, args: string[], stdinFn?: (stream: WritableStream<Uint8Array>) => Promise<void>, stdoutFn?: (stream: ReadableStream<Uint8Array>) => Promise<void>, signal?: AbortSignal };

Expand Down
2 changes: 1 addition & 1 deletion src/v8_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { encodeV8, decodeV8 } from './v8.ts';
import { assertEquals } from 'https://deno.land/std@0.208.0/assert/assert_equals.ts';
import { assertEquals } from 'https://deno.land/std@0.212.0/assert/assert_equals.ts';

Deno.test({
name: 'encodeV8/decodeV8',
Expand Down

0 comments on commit a769def

Please sign in to comment.