Skip to content

Commit 92cad44

Browse files
committed
chore - update to 1.40.1's stdlib. add deno_ral to avoid this mess in the future
1 parent 396a8d7 commit 92cad44

734 files changed

Lines changed: 5542 additions & 28634 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"runtimeExecutable": "${workspaceFolder}/package/dist/bin/tools/deno",
1515
"runtimeArgs": [
1616
"run",
17-
"--unstable",
17+
"--unstable-ffi",
1818
"--importmap=${workspaceFolder}/src/import_map.json",
1919
"--inspect-brk",
2020
"--allow-all"
@@ -39,7 +39,7 @@
3939
"runtimeArgs": [
4040
"test",
4141
"--config=test-conf.json",
42-
"--unstable",
42+
"--unstable-ffi",
4343
"--allow-all",
4444
"--check",
4545
"--importmap=${workspaceFolder}/src/import_map.json",

package/launcher/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn main() {
8282

8383
// Define the base deno options
8484
let mut deno_options: Vec<String> = vec![
85-
String::from("--unstable"),
85+
String::from("--unstable-ffi"),
8686
String::from("--no-config"),
8787
String::from("--cached-only"),
8888
String::from("--allow-read"),

package/scripts/common/quarto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ fi
167167
export DENO_TLS_CA_STORE=system,mozilla
168168
export DENO_NO_UPDATE_CHECK=1
169169
# Be sure to include any already defined QUARTO_DENO_OPTIONS
170-
QUARTO_DENO_OPTIONS="--unstable --no-config ${QUARTO_CACHE_OPTIONS} --allow-read --allow-write --allow-run --allow-env --allow-net --allow-ffi ${QUARTO_DENO_OPTIONS}"
170+
QUARTO_DENO_OPTIONS="--unstable-ffi --no-config ${QUARTO_CACHE_OPTIONS} --allow-read --allow-write --allow-run --allow-env --allow-net --allow-ffi ${QUARTO_DENO_OPTIONS}"
171171

172172
if [ "$QUARTO_DENO_EXTRA_OPTIONS" == "" ]; then
173173
QUARTO_DENO_EXTRA_OPTIONS="--v8-flags=--max-old-space-size=8192,--max-heap-size=8192"

package/scripts/deno_std/deno_std.ts

Lines changed: 89 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -31,112 +31,110 @@ import * as http from "https://deno.land/[email protected]/http/mod.ts";
3131
import * as io from "https://deno.land/[email protected]/io/mod.ts";
3232
import * as log from "https://deno.land/[email protected]/log/mod.ts";
3333
import * as media_types from "https://deno.land/[email protected]/media_types/mod.ts";
34-
import * as path from "https://deno.land/[email protected]/path/mod.ts";
34+
import * as path from "https://deno.land/[email protected]/"../../../src/deno_ral/path.ts"";
3535
import * as permissions from "https://deno.land/[email protected]/permissions/mod.ts";
3636
import * as signal from "https://deno.land/[email protected]/signal/mod.ts";
3737
import * as streams from "https://deno.land/[email protected]/streams/mod.ts";
3838
import * as textproto from "https://deno.land/[email protected]/textproto/mod.ts";
3939
import * as uuid from "https://deno.land/[email protected]/uuid/mod.ts";
4040
*/
4141

42-
import * as tar from "https://deno.land/std@0.204.0/archive/tar.ts";
43-
import * as async from "https://deno.land/std@0.204.0/async/mod.ts";
44-
import * as bytes from "https://deno.land/std@0.204.0/bytes/mod.ts";
45-
import * as collections from "https://deno.land/std@0.204.0/collections/mod.ts";
46-
import * as crypto from "https://deno.land/std@0.204.0/crypto/mod.ts";
47-
import * as datetime from "https://deno.land/std@0.204.0/datetime/mod.ts";
48-
import * as dotenv from "https://deno.land/std@0.204.0/dotenv/mod.ts";
42+
import * as tar from "https://deno.land/std@0.217.0/archive/tar.ts";
43+
import * as async from "https://deno.land/std@0.217.0/async/mod.ts";
44+
import * as bytes from "https://deno.land/std@0.217.0/bytes/mod.ts";
45+
import * as collections from "https://deno.land/std@0.217.0/collections/mod.ts";
46+
import * as crypto from "https://deno.land/std@0.217.0/crypto/mod.ts";
47+
import * as datetime from "https://deno.land/std@0.217.0/datetime/mod.ts";
48+
import * as dotenv from "https://deno.land/std@0.217.0/dotenv/mod.ts";
4949

5050
// encoding has no mod.ts
51-
import * as ascii85 from "https://deno.land/[email protected]/encoding/ascii85.ts";
52-
import * as base32 from "https://deno.land/[email protected]/encoding/base32.ts";
53-
import * as base58 from "https://deno.land/[email protected]/encoding/base58.ts";
54-
import * as base64 from "https://deno.land/[email protected]/encoding/base64.ts";
55-
import * as base64url from "https://deno.land/[email protected]/encoding/base64url.ts";
56-
import * as binary from "https://deno.land/[email protected]/encoding/binary.ts";
57-
import * as csv from "https://deno.land/[email protected]/csv/mod.ts";
58-
import * as front_matter from "https://deno.land/[email protected]/front_matter/mod.ts";
59-
import * as hex from "https://deno.land/[email protected]/encoding/hex.ts";
60-
import * as jsonc from "https://deno.land/[email protected]/jsonc/mod.ts";
61-
import * as toml from "https://deno.land/[email protected]/toml/mod.ts";
62-
import * as varint from "https://deno.land/[email protected]/encoding/varint.ts";
63-
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts";
51+
import * as ascii85 from "https://deno.land/[email protected]/encoding/ascii85.ts";
52+
import * as base32 from "https://deno.land/[email protected]/encoding/base32.ts";
53+
import * as base58 from "https://deno.land/[email protected]/encoding/base58.ts";
54+
import * as base64 from "https://deno.land/[email protected]/encoding/base64.ts";
55+
import * as base64url from "https://deno.land/[email protected]/encoding/base64url.ts";
56+
import * as csv from "https://deno.land/[email protected]/csv/mod.ts";
57+
import * as front_matter from "https://deno.land/[email protected]/front_matter/mod.ts";
58+
import * as hex from "https://deno.land/[email protected]/encoding/hex.ts";
59+
import * as jsonc from "https://deno.land/[email protected]/jsonc/mod.ts";
60+
import * as toml from "https://deno.land/[email protected]/toml/mod.ts";
61+
import * as varint from "https://deno.land/[email protected]/encoding/varint.ts";
62+
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts";
6463

65-
import * as flags from "https://deno.land/[email protected]/flags/mod.ts";
66-
import * as fmt_bytes from "https://deno.land/[email protected]/fmt/bytes.ts";
67-
import * as fmt_colors from "https://deno.land/[email protected]/fmt/colors.ts";
68-
import * as fmt_printf from "https://deno.land/[email protected]/fmt/printf.ts";
69-
import * as fs from "https://deno.land/[email protected]/fs/mod.ts";
70-
import * as http from "https://deno.land/[email protected]/http/mod.ts";
71-
import * as io from "https://deno.land/[email protected]/io/mod.ts";
72-
import * as log from "https://deno.land/[email protected]/log/mod.ts";
73-
import * as mediaTypes from "https://deno.land/[email protected]/media_types/mod.ts";
74-
import * as path from "https://deno.land/[email protected]/path/mod.ts";
75-
import * as permissions from "https://deno.land/[email protected]/permissions/mod.ts";
76-
import * as semver from "https://deno.land/[email protected]/semver/mod.ts";
77-
import * as signal from "https://deno.land/[email protected]/signal/mod.ts";
78-
import * as streams from "https://deno.land/[email protected]/streams/mod.ts";
79-
import * as uuid from "https://deno.land/[email protected]/uuid/mod.ts";
80-
import * as version from "https://deno.land/[email protected]/version.ts";
64+
import * as flags from "https://deno.land/[email protected]/flags/mod.ts";
65+
import * as fmt_bytes from "https://deno.land/[email protected]/fmt/bytes.ts";
66+
import * as fmt_colors from "https://deno.land/[email protected]/fmt/colors.ts";
67+
import * as fmt_printf from "https://deno.land/[email protected]/fmt/printf.ts";
68+
import * as fs from "https://deno.land/[email protected]/fs/mod.ts";
69+
import * as http from "https://deno.land/[email protected]/http/mod.ts";
70+
import * as io from "https://deno.land/[email protected]/io/mod.ts";
71+
import * as log from "https://deno.land/[email protected]/log/mod.ts";
72+
import * as mediaTypes from "https://deno.land/[email protected]/media_types/mod.ts";
73+
import * as path from "https://deno.land/[email protected]/path/mod.ts";
74+
import * as permissions from "https://deno.land/[email protected]/permissions/mod.ts";
75+
import * as semver from "https://deno.land/[email protected]/semver/mod.ts";
76+
import * as streams from "https://deno.land/[email protected]/streams/mod.ts";
77+
import * as uuid from "https://deno.land/[email protected]/uuid/mod.ts";
78+
import * as version from "https://deno.land/[email protected]/version.ts";
8179

8280
/*
8381
8482
These would be useful imports to add, but they increase the
8583
size of the download cache significantly, so we're skipping
8684
them until they are needed.
8785
88-
import "https://deno.land/std@0.204.0/node/assert/strict.ts";
89-
import "https://deno.land/std@0.204.0/node/dns/promises.ts";
90-
import "https://deno.land/std@0.204.0/node/fs/promises.ts";
91-
import "https://deno.land/std@0.204.0/node/path/mod.ts";
92-
import "https://deno.land/std@0.204.0/node/readline/promises.ts";
93-
import "https://deno.land/std@0.204.0/node/stream/web.ts";
94-
import "https://deno.land/std@0.204.0/node/timers/promises.ts";
95-
import "https://deno.land/std@0.204.0/node/util/types.ts";
96-
import "https://deno.land/std@0.204.0/node/assert.ts";
97-
import "https://deno.land/std@0.204.0/node/assertion_error.ts";
98-
import "https://deno.land/std@0.204.0/node/async_hooks.ts";
99-
import "https://deno.land/std@0.204.0/node/async_hooks.ts";
100-
import "https://deno.land/std@0.204.0/node/buffer.ts";
101-
import "https://deno.land/std@0.204.0/node/child_process.ts";
102-
import "https://deno.land/std@0.204.0/node/cluster.ts";
103-
import "https://deno.land/std@0.204.0/node/console.ts";
104-
import "https://deno.land/std@0.204.0/node/constants.ts";
105-
import "https://deno.land/std@0.204.0/node/crypto.ts";
106-
import "https://deno.land/std@0.204.0/node/dgram.ts";
107-
import "https://deno.land/std@0.204.0/node/diagnostics_channel.ts";
108-
import "https://deno.land/std@0.204.0/node/dns.ts";
109-
import "https://deno.land/std@0.204.0/node/domain.ts";
110-
import "https://deno.land/std@0.204.0/node/events.ts";
111-
import "https://deno.land/std@0.204.0/node/fs.ts";
112-
import "https://deno.land/std@0.204.0/node/http.ts";
113-
import "https://deno.land/std@0.204.0/node/http2.ts";
114-
import "https://deno.land/std@0.204.0/node/https.ts";
115-
import "https://deno.land/std@0.204.0/node/inspector.ts";
116-
import "https://deno.land/std@0.204.0/node/module_all.ts";
117-
import "https://deno.land/std@0.204.0/node/module_esm.ts";
118-
import "https://deno.land/std@0.204.0/node/module.ts";
119-
import "https://deno.land/std@0.204.0/node/net.ts";
120-
import "https://deno.land/std@0.204.0/node/os.ts";
121-
import "https://deno.land/std@0.204.0/node/path.ts";
122-
import "https://deno.land/std@0.204.0/node/perf_hooks.ts";
123-
import "https://deno.land/std@0.204.0/node/process.ts";
124-
import "https://deno.land/std@0.204.0/node/punycode.ts";
125-
import "https://deno.land/std@0.204.0/node/querystring.ts";
126-
import "https://deno.land/std@0.204.0/node/readline.ts";
127-
import "https://deno.land/std@0.204.0/node/repl.ts";
128-
import "https://deno.land/std@0.204.0/node/stream.ts";
129-
import "https://deno.land/std@0.204.0/node/string_decoder.ts";
130-
import "https://deno.land/std@0.204.0/node/sys.ts";
131-
import "https://deno.land/std@0.204.0/node/timers.ts";
132-
import "https://deno.land/std@0.204.0/node/tls.ts";
133-
import "https://deno.land/std@0.204.0/node/tty.ts";
134-
import "https://deno.land/std@0.204.0/node/upstream_modules.ts";
135-
import "https://deno.land/std@0.204.0/node/url.ts";
136-
import "https://deno.land/std@0.204.0/node/util.ts";
137-
import "https://deno.land/std@0.204.0/node/v8.ts";
138-
import "https://deno.land/std@0.204.0/node/vm.ts";
139-
import "https://deno.land/std@0.204.0/node/wasi.ts";
140-
import "https://deno.land/std@0.204.0/node/worker_threads.ts";
141-
import "https://deno.land/std@0.204.0/node/zlib.ts";
86+
import "https://deno.land/std@0.217.0/node/assert/strict.ts";
87+
import "https://deno.land/std@0.217.0/node/dns/promises.ts";
88+
import "https://deno.land/std@0.217.0/node/fs/promises.ts";
89+
import "https://deno.land/std@0.217.0/node/path/mod.ts";
90+
import "https://deno.land/std@0.217.0/node/readline/promises.ts";
91+
import "https://deno.land/std@0.217.0/node/stream/web.ts";
92+
import "https://deno.land/std@0.217.0/node/timers/promises.ts";
93+
import "https://deno.land/std@0.217.0/node/util/types.ts";
94+
import "https://deno.land/std@0.217.0/node/assert.ts";
95+
import "https://deno.land/std@0.217.0/node/assertion_error.ts";
96+
import "https://deno.land/std@0.217.0/node/async_hooks.ts";
97+
import "https://deno.land/std@0.217.0/node/async_hooks.ts";
98+
import "https://deno.land/std@0.217.0/node/buffer.ts";
99+
import "https://deno.land/std@0.217.0/node/child_process.ts";
100+
import "https://deno.land/std@0.217.0/node/cluster.ts";
101+
import "https://deno.land/std@0.217.0/node/console.ts";
102+
import "https://deno.land/std@0.217.0/node/constants.ts";
103+
import "https://deno.land/std@0.217.0/node/crypto.ts";
104+
import "https://deno.land/std@0.217.0/node/dgram.ts";
105+
import "https://deno.land/std@0.217.0/node/diagnostics_channel.ts";
106+
import "https://deno.land/std@0.217.0/node/dns.ts";
107+
import "https://deno.land/std@0.217.0/node/domain.ts";
108+
import "https://deno.land/std@0.217.0/node/events.ts";
109+
import "https://deno.land/std@0.217.0/node/fs.ts";
110+
import "https://deno.land/std@0.217.0/node/http.ts";
111+
import "https://deno.land/std@0.217.0/node/http2.ts";
112+
import "https://deno.land/std@0.217.0/node/https.ts";
113+
import "https://deno.land/std@0.217.0/node/inspector.ts";
114+
import "https://deno.land/std@0.217.0/node/module_all.ts";
115+
import "https://deno.land/std@0.217.0/node/module_esm.ts";
116+
import "https://deno.land/std@0.217.0/node/module.ts";
117+
import "https://deno.land/std@0.217.0/node/net.ts";
118+
import "https://deno.land/std@0.217.0/node/os.ts";
119+
import "https://deno.land/std@0.217.0/node/path.ts";
120+
import "https://deno.land/std@0.217.0/node/perf_hooks.ts";
121+
import "https://deno.land/std@0.217.0/node/process.ts";
122+
import "https://deno.land/std@0.217.0/node/punycode.ts";
123+
import "https://deno.land/std@0.217.0/node/querystring.ts";
124+
import "https://deno.land/std@0.217.0/node/readline.ts";
125+
import "https://deno.land/std@0.217.0/node/repl.ts";
126+
import "https://deno.land/std@0.217.0/node/stream.ts";
127+
import "https://deno.land/std@0.217.0/node/string_decoder.ts";
128+
import "https://deno.land/std@0.217.0/node/sys.ts";
129+
import "https://deno.land/std@0.217.0/node/timers.ts";
130+
import "https://deno.land/std@0.217.0/node/tls.ts";
131+
import "https://deno.land/std@0.217.0/node/tty.ts";
132+
import "https://deno.land/std@0.217.0/node/upstream_modules.ts";
133+
import "https://deno.land/std@0.217.0/node/url.ts";
134+
import "https://deno.land/std@0.217.0/node/util.ts";
135+
import "https://deno.land/std@0.217.0/node/v8.ts";
136+
import "https://deno.land/std@0.217.0/node/vm.ts";
137+
import "https://deno.land/std@0.217.0/node/wasi.ts";
138+
import "https://deno.land/std@0.217.0/node/worker_threads.ts";
139+
import "https://deno.land/std@0.217.0/node/zlib.ts";
142140
*/

package/scripts/deno_std/download.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if NOT DEFINED QUARTO_DENO (
66
)
77

88
set DENO_DIR=%~dp0\..\..\..\src\resources\deno_std\cache
9-
%QUARTO_DENO% cache --unstable --lock %~dp0\..\..\..\src\resources\deno_std\deno_std.lock %~dp0\deno_std.ts
9+
%QUARTO_DENO% cache --unstable-ffi --lock %~dp0\..\..\..\src\resources\deno_std\deno_std.lock %~dp0\deno_std.ts

package/scripts/deno_std/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ fi
1010

1111

1212
export DENO_DIR="$QUARTO_SRC_PATH/resources/deno_std/cache"
13-
"$QUARTO_DENO" cache --no-config --unstable --lock "$QUARTO_SRC_PATH/resources/deno_std/deno_std.lock" "$@" "$QUARTO_PACKAGE_PATH/scripts/deno_std/deno_std.ts"
13+
"$QUARTO_DENO" cache --no-config --unstable-ffi --lock "$QUARTO_SRC_PATH/resources/deno_std/deno_std.lock" "$@" "$QUARTO_PACKAGE_PATH/scripts/deno_std/deno_std.ts"

package/scripts/vendoring/vendor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ if [[ ${return_code} -ne 0 ]]; then
4545
else
4646
rm -rf vendor-${today}
4747
fi
48-
$DENO_BIN_PATH run --no-config --unstable --allow-all --importmap=$QUARTO_SRC_PATH/import_map.json $QUARTO_PACKAGE_PATH/src/common/create-dev-import-map.ts
48+
$DENO_BIN_PATH run --no-config --unstable-ffi --allow-all --importmap=$QUARTO_SRC_PATH/import_map.json $QUARTO_PACKAGE_PATH/src/common/create-dev-import-map.ts

package/scripts/windows/quarto.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ IF NOT DEFINED QUARTO_DENO (
9696

9797
SET "DENO_TLS_CA_STORE=system,mozilla"
9898
SET "DENO_NO_UPDATE_CHECK=1"
99-
SET "QUARTO_DENO_OPTIONS=--unstable --no-config --cached-only --allow-read --allow-write --allow-run --allow-env --allow-net --allow-ffi"
99+
SET "QUARTO_DENO_OPTIONS=--unstable-ffi --no-config --cached-only --allow-read --allow-write --allow-run --allow-env --allow-net --allow-ffi"
100100

101101
IF NOT DEFINED QUARTO_DENO_EXTRA_OPTIONS (
102102
set "QUARTO_DENO_EXTRA_OPTIONS=--v8-flags=--max-old-space-size=8192,--max-heap-size=8192"

package/src/cmd/pkg-cmd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
*/
77
import { Command } from "cliffy/command/mod.ts";
8-
import { join } from "path/mod.ts";
8+
import { join } from "../../../src/deno_ral/path.ts";
99

1010
import { printConfiguration } from "../common/config.ts";
1111

package/src/common/archive-binary-dependencies.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* Copyright (C) 2020-2022 Posit Software, PBC
55
*/
6-
import { join } from "path/mod.ts";
7-
import { info } from "log/mod.ts";
6+
import { join } from "../../../src/deno_ral/path.ts";
7+
import { info } from "../../../src/deno_ral/log.ts";
88

99
import { execProcess } from "../../../src/core/process.ts";
1010
import { Configuration, withWorkingDir } from "./config.ts";

0 commit comments

Comments
 (0)