1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
Commit graph

753 commits

Author SHA1 Message Date
Steven Guerrero
d52fb903cd
fix(std/node): Buffer.copy doesn't work as expected (#8125) 2020-10-26 15:42:36 +01:00
Ryan Dahl
6a8d0d81c1
Remove timezone dependent tests (#8131) 2020-10-26 10:40:24 -04:00
uki00a
b65171e37d
fix(std/http/file_server): File server should ignore query params (#8116) 2020-10-26 14:55:26 +01:00
Kitson Kelly
78429496e0
revert new std/jwt module so issues can be addressed (#8127)
This reverts commit aa0e64b579.
This reverts commit 034ab48086.
2020-10-26 08:10:48 -04:00
Nayeem Rahman
822e5b6536
fix(core/runtime): Indicate exceptions in promises (#8124)
Fixes #4879
2020-10-26 14:34:00 +11:00
Casper Beyer
9adbca6d19
docs(std/wasi): mark sched_yield as implemented (#8055)
This marks sched_yield as implemented, it is a no-op but will probably
always be and we have passing tests for it.
2020-10-24 16:05:30 +02:00
Casper Beyer
2a83b22385
fix(std/wasi): disallow path_open outside of pre-opened dirfd (#8078) 2020-10-24 16:04:59 +02:00
btoo
1d9c7a0a22
docs(std/path): fix typo in globToRegExp docs (#8081) 2020-10-23 12:19:38 +11:00
Eugen Cazacu
9fa59f0ca8
test(std/datetime): test datetime constants (#8068)
Fixes: #8067
2020-10-23 10:14:57 +11:00
Bartek Iwańczuk
9b20cfbee8
upgrade: deno_doc, deno_lint, dprint, swc (#8077)
- deno_doc 0.1.13
- deno_lint 0.2.5
- dprint-plugin-typescript 0.32.6
- swc_bundler 0.12.0
- swc_ecmascript 0.11.1
2020-10-22 20:36:06 +02:00
Max Drosdo.www
17eaede643
docs: fix command examples use outdated default file_server port (#8062) 2020-10-22 17:17:38 +02:00
Carter Snook
4b43f8cffa
docs(std/uuid): creat -> create (#8064) 2020-10-22 14:03:54 +11:00
Simon Lecoq
23df1c563e
feat(std/testing): Add support for object assertion against object subset (#8001)
This commit add supports for a new assertion function 
"assertObjectMatch" which allows to test an actual object 
against an expected object subset (i.e. inclusivity, not equality).
2020-10-21 18:53:27 +02:00
Casper Beyer
be89bdfed7
test(std/wasi): reduce test duplication (#8053)
This fast-forwards wasi-test-suite a couple of commits removed
duplicate, or near duplicate tests with not much additional value.

Other tests have been merged to reduce the number of modules to make
tests topical to the syscall that is being tested.
2020-10-20 22:54:27 +02:00
KNnut
aa0e64b579
docs(std/jwt): Fix examples (#8044) 2020-10-20 13:59:10 +02:00
Casper Beyer
17467d01da
fix(std/io): remove trivial internal util.ts module (#8032) 2020-10-20 13:51:57 +02:00
timonson
034ab48086
feat(std/jwt): add a JSON Web Token library (#7991)
Co-authored-by: Tim Reichen <timreichen@users.noreply.github.com>
2020-10-20 14:08:34 +11:00
Nayeem Rahman
19b918d112
feat(std/path): Add toFileUrl() (#7971) 2020-10-19 14:36:53 +02:00
Yoshiya Hinosawa
342b151b5d
docs(std/datetime): document toIMF, isLeap, difference, and constants (#7931) 2020-10-19 14:35:48 +02:00
Marcos Casagrande
d3dea24560
fix(std/tar): fix constant condition (#8010) 2020-10-19 13:33:51 +02:00
Casper Beyer
065db9df19
test(std/io): use a real tempdir (#8019)
This replaces a case of a temp file in the working tree with a tempfile
in a real temporary directory avoiding pollution of the working
directory.
2020-10-18 12:16:26 -04:00
Bartek Iwańczuk
c1c7601304
upgrade: deno_doc, deno_lint, dprint, swc (#8009) 2020-10-17 17:08:23 +02:00
ali ahmed
5bed06fb94
feat(std/fs/node): adding some functions (#7921) 2020-10-14 11:59:28 -04:00
timonson
1956cb8137
fix(std/encoding): base64 properly encodes mbc and handles Uint8Arrays (#7807)
Fixes #6094
Fixes #4794
2020-10-13 12:12:10 +11:00
Peter
08f3ae92d3
fix(std): Parsing inline arrays of inline tables in toml (#7902) 2020-10-11 21:33:23 +02:00
Bartek Iwańczuk
7af5041a06
Revert "feat(std/node/fs): adding readdir, rename, and some others (#7666)" (#7917)
This reverts commit 40324ff748.
2020-10-10 15:05:19 +02:00
Yoshiya Hinosawa
6897ea8ebe
docs(std/bytes): add missing docs to README (#7885) 2020-10-08 15:39:02 -04:00
Bartek Iwańczuk
b5e4b63a88
v1.4.5 2020-10-08 14:20:18 +02:00
Cedric Vangout
b5f06adbf3
docs(std/encoding/csv): update the usage of ParseOptions (#7857) 2020-10-07 18:01:35 +02:00
ali ahmed
40324ff748
feat(std/node/fs): adding readdir, rename, and some others (#7666) 2020-10-06 01:35:22 -04:00
ali ahmed
a51408a4bc
fix(std/node/fs): allow appendFileSync to accept Uint8Array as type for data (#7835) 2020-10-06 01:26:12 -04:00
tokiedokie
3d65177dbc
docs(std): version all imports in README (#7442)
Use $STD_VERSION in std/ README files to automatically
display proper version.
2020-10-04 14:18:36 +02:00
tokiedokie
ec96323823
chore(std/http): rename http_bench.ts -> bench.ts (#7509) 2020-10-04 13:34:52 +02:00
Trivikram Kamat
d0eb179132
docs: end sentences with a period in markdown (#7813) 2020-10-04 07:19:11 +11:00
Atakan Ermiş
920c0b3515
docs(std/encoding): add missing JSDoc (#7809) 2020-10-03 16:44:08 +02:00
Casper Beyer
f9973364dd
docs(std/wasi): remove outdated testing section (#7812) 2020-10-03 16:41:24 +02:00
Nayeem Rahman
315724b856
feat(unstable): revert "enable importsNotUsedAsValues by default #7413" (#7800)
This reverts commit fbb18d40d3.
2020-10-03 16:40:26 +02:00
Casper Beyer
e8b93674ed
docs(std/wasi): fix usage example (#7808)
The usage example is a bit out of date and not compatible with the
stricter definition of the WebAssembly namespace.

This fixes that and makes it a bit cleaner.
2020-10-03 15:52:34 +02:00
Bartek Iwańczuk
ae1ed2d166
v1.4.4 2020-10-03 14:58:10 +02:00
Bartek Iwańczuk
63efa5f15d
v1.4.3 2020-10-02 14:37:48 +02:00
Bartek Iwańczuk
e5348a6a38
upgrade: swc, deno_doc, deno_lint, dprint (#7793) 2020-10-02 13:51:37 +02:00
tokiedokie
5590b97670
refactor(std/testing): Get rid of default export and make std/testing/diff.ts private (#7592) 2020-10-01 19:15:05 +02:00
aakhtar3
da29ccece5
docs(std/uuid): Added JSdocs for the std/uuid module (#7735) 2020-10-01 11:40:40 +02:00
Nayeem Rahman
326ccb1095
feat(std/path): Align globToRegExp() with bash glob expansion (#7209)
- feat: Support escaping glob characters
- feat: Support more character classes
- feat: Match characters literally on segment parse failure
- fix: Match nothing for empty globs
- fix: Contain any glob syntax to its path segment
- perf: Remove extraneous separators from generated regex
- doc: Add detailed JSDoc
- chore: Remove old copyright headers
2020-10-01 11:37:03 +02:00
Nayeem Rahman
27ee4b2551
feat(cli/console): Add Deno.InspectOptions::colors (#7742)
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
2020-09-30 12:59:50 +10:00
Casper Beyer
71a8b1fe27
chore(std/wasi): enable and fix lint errors in snapshot_preview1 (#7360) 2020-09-29 11:41:22 +02:00
uki00a
94dcef714d
BREAKING(std/encoding/csv): improve the definition of ParseOptions (#7714) 2020-09-27 14:20:46 -04:00
David Sherret
df02e31507
feat(fmt): Sort named import and export specifiers (#7711) 2020-09-27 12:22:32 +02:00
tokiedokie
04836dc700
refactor(std/example): Inconsistencies in the example tests (#7684) 2020-09-26 11:54:26 -04:00
KNnut
e0d4696a72
Fix typos (#7687) 2020-09-26 10:14:56 -04:00
Andrew Mitchell
98c9798cb7
docs(std): add async and signal readme (#7683)
Resolves #7608
2020-09-26 09:15:18 +10:00
Casper Beyer
eb7f70c0b0
test(std/async): remove redundant export in test (#7682) 2020-09-25 13:45:57 -04:00
Tim Reichen
f1231ff58e
fix(std/datetime): add timezone to date strings in tests (#7675) 2020-09-25 11:03:01 -04:00
Bartek Iwańczuk
dacb340f8f
v1.4.2 2020-09-25 16:53:48 +02:00
Csaba Okrona
826e899bbc
test(std): unit test for async/delay (#7671) 2020-09-25 14:57:31 +02:00
Tim Reichen
9c75e4876f
fix(std/datetime):: 12 and 24 support (#7661) 2020-09-24 18:06:22 -04:00
Casper Beyer
3ac9f1e209
fix(std/fs): mark createWalkEntry(Sync) as internal (#7643) 2020-09-23 14:09:09 -04:00
Luca Casonato
cf0c49191e
chore(std/hash): update crates (#7631) 2020-09-22 23:03:11 +02:00
Schwarzkopf Balázs
f601721851
feat(std/node): implement getSystemErrorName() (#7624) 2020-09-22 16:07:35 -04:00
Casper Beyer
9d738fc197
test(std/wasi): add fd_renumber test (#7574) 2020-09-21 15:17:01 +02:00
tokiedokie
c4ed3fb7e7
chore: add copyright (#7593) 2020-09-21 08:26:41 -04:00
Bartek Iwańczuk
79e5b57663
chore: reenable disabled test in std/ (#7578) 2020-09-19 14:07:54 +02:00
Bert Belder
d6f3de6feb
v1.4.1 2020-09-18 21:28:11 +02:00
Casper Beyer
38196f7850
fix(cli/console): always quote and escape inspected strings (#7546) 2020-09-18 09:28:30 -04:00
Bartek Iwańczuk
7845740637
refactor: deno_fetch op crate (#7524) 2020-09-18 09:20:55 -04:00
Jarrett Helton
cead79f5b8
feat(std/node) stub out process.stdin, stdout, stderr (#7184) 2020-09-17 23:31:50 -04:00
Ryan Dahl
46bf660e36
refactor: make fetch use op_fetch_read instead of op_read (#7529) 2020-09-17 16:11:55 +02:00
Casper Beyer
1e6d37f88c
test(std/wasi): add sched_yield test (#7511) 2020-09-16 16:30:12 -04:00
Pig Fang
aa657d6493
fix(std/testing): assertion diff color (#7499) 2020-09-16 12:42:51 +02:00
Tim Reichen
28c9d90b4b
fix(std/datetime): timezone bug (#7466) 2020-09-15 10:09:40 -04:00
tokiedokie
04d3472257
refactor(cli/tests): change std_path to root_path in std_tests() (#7438) 2020-09-15 06:26:57 +02:00
Casper Beyer
f457ff9157
remove stub implementation of v3 in std/uuid (#7488) 2020-09-15 00:12:45 -04:00
tasshi / Masaharu TASHIRO
85b98f6dd8
fix typo miliseconds -> milliseconds (#7469) 2020-09-14 22:48:49 -04:00
Schwarzkopf Balázs
f6bfdd66a6
feat(std/node): Add AssertionError class (#7210) 2020-09-14 16:22:07 +02:00
Casper Beyer
bee36a4de8
test(std/http): make tests runnable from any directory (#7441)
This makes std/http tests runnable from any directory by spawning test
processes in the module directory resolved from import.meta.url and
resolving test data relative to the same module directory.
2020-09-14 12:58:43 +02:00
Bartek Iwańczuk
b3fa81f867
v1.4.0 2020-09-13 16:35:31 +02:00
Bartek Iwańczuk
b216d48e5f
upgrade: deno_doc, deno_lint, dprint, swc (#7434)
upgrades:
- swc_ecmascript 0.7.7
- dprint-plugin-typescript 0.31.3
- deno_lint 0.2.0
- deno_doc 0.1.9

Split std_lint test into std_lint and unit_test_lint.

Added lint ignores to CommonJS files in std/node.
2020-09-13 14:15:38 +02:00
Luca Casonato
fbb18d40d3
feat(unstable): enable importsNotUsedAsValues by default (#7413) 2020-09-11 16:22:10 +02:00
Luca Casonato
a3bcdb2b69
chore(std): remove std/ws connect method (#7403) 2020-09-09 21:33:38 +02:00
Casper Beyer
5b89e82164
test(std/examples): make tests runnable from any directory (#7399) 2020-09-09 20:57:49 +02:00
Casper Beyer
79b2510617
test(std/mime): make tests runnable from any directory (#7398) 2020-09-09 11:24:47 +02:00
Casper Beyer
11afd071ae
test(std/node): make tests runnable from any directory (#7397)
This makes std/node tests runnable from any directory by resolving the
testdata directory and files relative to the module directory resolved
from import.meta.url.
2020-09-08 11:37:58 -04:00
Casper Beyer
c5d50737f0
test(std/fs): make tests runnable from any directory (#7388) 2020-09-08 11:43:43 +02:00
Casper Beyer
334ed0e2f4
BREAKING(std/fs): remove writeJson and writeJsonSync (#7256) 2020-09-07 19:12:24 +02:00
Casper Beyer
d4b6b25def
BREAKING(std/fs): remove readJson and readJsonSync (#7255) 2020-09-07 18:04:29 +02:00
Casper Beyer
7a8b27aa25
test(std/hash): make tests runnable from any directory (#7376) 2020-09-07 11:32:24 +02:00
Casper Beyer
16a9c92aba
test(std/archive): make tests runnable from any directory (#7366) 2020-09-06 19:52:53 +02:00
Casper Beyer
bd32f9d6e1
test(std/encoding): make tests runnable from any directory (#7368) 2020-09-06 19:48:53 +02:00
Bartek Iwańczuk
a14b3c9e30
v1.3.3 2020-09-04 18:15:24 +02:00
Casper Beyer
15649b61bd
test(std/wasi): explicitly list modules for deterministic test runs (#7245)
This explicitly lists std/wasi test modules in a pre-sorted array for deterministic test runs.

As a side effect it makes it a bit more visible when a test has been added or removed aside
from having to look at the submodule update.
2020-09-04 07:14:51 -04:00
Casper Beyer
c10900b2c1
chore(std/wasi): enable and fix lint errors in tests (#7324) 2020-09-04 07:13:08 -04:00
Casper Beyer
7f32a4e19b
docs(std/uuid): remove mention of v3 which is not supported (#7318) 2020-09-01 19:18:40 -04:00
Casper Beyer
87e513ffc5
fix: use millisecond precision for Deno.futime and Deno.utime (#7299) 2020-09-01 10:03:07 -04:00
Casper Beyer
644190eed8
test(std): ensure mod.ts modules have a test coverage (#7264) 2020-08-31 22:26:55 -04:00
Yusuke Tanaka
71f0171ab0
fix no-inner-declaration lint rule (#7287) 2020-08-31 14:11:17 -04:00
Casper Beyer
15fd1e8d30
chore(std/wasi): fix no-inner-declarations lints (#7286) 2020-08-31 17:13:55 +02:00
Casper Beyer
a451a97486
fix(cli): use upstream type definitions for WebAssembly (#7216) 2020-08-31 12:04:47 +02:00
Yusuke Tanaka
7799b797d1
chore: remove unreachable code to pass linter (#7270) 2020-08-31 11:10:28 +02:00
Casper Beyer
39912f2018
refactor(std/uuid): remove dependency on isString from std/node (#7273) 2020-08-30 22:46:58 +02:00
Casper Beyer
0ea0c87b15
test(std/uuid): reorganize to use one test module per public module (#7272) 2020-08-30 14:39:51 -04:00