Bartek Iwańczuk
e35e8981f0
test(std): make test output less noisy ( #8445 )
...
This commit makes output of std/ tests less noisy
by passing "--quiet" flag to Deno subprocesses run
as part of test suite.
2020-11-20 18:01:58 +01:00
William Perron
8a6a2a50f7
docs(std): add missing jsdoc comments to exported functions ( #8442 )
...
includes:
- http/file_server.ts
- testing/_diff.ts
- testing/asserts.ts
Relates to #7487
2020-11-19 21:59:45 -05:00
Bartek Iwańczuk
b55cc51351
build: fix linting problems ( #8431 )
2020-11-19 15:19:37 +01:00
Gyubong
d5772a937b
feat(std/node): add os.totalmem, os.freemem ( #8317 )
2020-11-19 07:56:32 -05:00
crowlKats
723fbb8f68
feat(std/io): ReadableStream from AsyncIterator & WritableStream from Writer ( #8378 )
2020-11-19 07:39:45 -05:00
Steven Guerrero
315d889afa
fix(std/node): correct typings for global, globalThis, window ( #8363 )
2020-11-19 07:23:42 -05:00
silence
e3c3fc58cb
feat(std/hash): add the sha1Hmac ( #8418 )
2020-11-19 07:09:30 -05:00
Mark Tiedemann
6bb5fedc69
feat(std/log): Log error stack ( #8401 )
2020-11-19 06:58:53 -05:00
inokawa
a1852d38cf
Add JSDocs to std/fs/walk.ts ( #8426 )
2020-11-19 06:53:43 -05:00
lideming
60d9ab08db
fix(std/http): fix error handling in the request iterator ( #8365 )
...
If the request body is using chunked encoding, errors may
be thrown in "request.finalize()".
In this case, we should untrack and close the connection.
2020-11-18 17:47:47 +01:00
Steven Guerrero
b6fa6d6aac
fix(std/node) Fix event extendability ( #8409 )
2020-11-17 19:49:57 -05:00
Yasser A.Idrissi
f7afe2b78f
feat(std/http): Check if cookie property is valid ( #7189 )
...
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2020-11-17 21:06:06 +01:00
Behnam Mohammadi
4e99d8fb6f
refactor(std): remove unnecessary back direction for import ( #8403 )
2020-11-17 10:24:21 +11:00
Steven Guerrero
06cf6df954
feat(std/node): Add util.deprecate ( #8407 )
2020-11-16 18:20:46 -05:00
Steven Guerrero
8ab20a4582
feat(std/node): implement process.nextTick ( #8386 )
2020-11-16 14:44:37 -05:00
Bartek Iwańczuk
ab7b8ba8d1
v1.5.3
2020-11-16 11:14:00 +01:00
Elisée Maurer
1079e59cf4
docs(std/async): fix a couple typos in std/async/README.md ( #8388 )
2020-11-15 13:57:36 +01:00
Yusuke Tanaka
9029003046
build: update dlint to v0.2.10 ( #8284 )
...
Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics
for "require-await" rule.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-11-14 20:27:37 +01:00
Behnam Mohammadi
a59f5eadd8
refactor(std): add std/_util/os.ts module ( #8370 )
...
This commit adds "std/_util/os.ts" module which contains
common os detection logic and is browser compatible.
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2020-11-14 00:21:11 +01:00
Behnam Mohammadi
a52d883921
refactor(std/fs): moved isCopyFolder to options ( #8319 )
2020-11-13 09:13:13 +11:00
Mark Tiedemann
952c8f21e7
fix(std/http): flush body chunks for HTTP chunked encoding ( #8349 )
...
Fixes #8339
2020-11-13 09:11:09 +11:00
Behnam Mohammadi
4cc919a742
refactor(std/fs): remove unnecessary if else block ( #8321 )
2020-11-10 15:38:46 +11:00
Behnam Mohammadi
568b7d6afb
refactor(std/fs): improve performance by using some instead filter method ( #8322 )
2020-11-10 09:43:44 +11:00
Behnam Mohammadi
b0e38bffc3
refactor(std): remove redundant code in move.ts ( #8269 )
2020-11-09 18:21:33 +01:00
Guy Bedford
8b7f5531ee
feat(std/node): consistent Node.js builtin shapes ( #8274 )
2020-11-09 09:25:13 -05:00
Kitson Kelly
71d7482577
v1.5.2 ( #8301 )
2020-11-09 10:58:21 +11:00
Guy Bedford
9fc5b6510c
fix(std/node): only define Node.js globals when loading std/node/global ( #8281 )
2020-11-07 20:27:07 +01:00
Mo
bb1a673b21
docs(std/fmt): add JSDoc ( #8278 )
2020-11-07 09:05:37 -05:00
Fukuda Naoto
fd9b6e03af
docs(std): add some missing JSDoc ( #7765 )
...
Refs #7487
2020-11-06 13:33:59 +11:00
Hanseo Jo
731de86976
docs(std/node/util): add missing JSdoc ( #7806 )
...
Refs #7487
2020-11-06 12:33:41 +11:00
Bhumij Gupta
2259e99aef
docs(std/node/url): Added JSDocs for std/node/url ( #7805 )
2020-11-06 12:28:00 +11:00
ayntee
dc232d8489
docs(std/node/querystring): add missing JSDoc ( #8242 )
2020-11-04 12:03:59 -05:00
Bartek Iwańczuk
8e914be742
build: migrate to dlint ( #8176 )
...
This commit migrates repository from using "eslint"
to "dlint" for linting JavaScript code.
2020-11-03 16:19:29 +01:00
The Wizard Bear
43d4978cea
fix(std/flags): Fix parse incorrectly parsing alias flags with equals signs in the value #8136 ( #8216 )
2020-11-02 23:17:26 +01:00
X
6d63391a38
feat(std/node/fs): add realpath and realpathSync ( #8169 )
2020-11-02 19:11:42 +01:00
Casper Beyer
c5611636fb
feat(std/wasi): add start method to Context ( #8141 )
...
This adds a start method to the Context to make starting a command less
tedious and yield consistent errors.
Manually setting the memory is still valid for more complex scenarios,
just undocumented for the time being.
2020-11-02 18:50:45 +01:00
Khushraj Rathod
e3b096f6f6
docs: fix typo in std/fs README.md ( #8104 )
2020-11-02 18:33:13 +01:00
Luca Casonato
03769f11b5
v1.5.1
2020-10-31 15:32:43 +01:00
Steven Guerrero
5aeac00971
feat(std/node/crypto): randomBytes and pbkdf2 ( #8191 )
...
* crypto
* Other thing
* Test for pdkdf2
* Add randomBytes
* Refactor pbkdf2
* Lint and format
2020-10-29 22:53:27 -04:00
Casper Beyer
a2f126068e
fix(std/wasi): remove stray console.log call ( #8156 )
...
A stray console.log call made it into path_open which should have been
reverted, it was only meant for debugging on the CI.
2020-10-27 21:45:31 -04:00
Bartek Iwańczuk
dd01f206da
v1.5.0
...
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-27 16:00:23 +01:00
Luca Casonato
30f3b831d3
fix: path traversal in std/http/file_server.ts ( #8134 )
2020-10-27 11:48:45 +01:00
Casper Beyer
b9dc2c3521
test(std/wasi): re-enable clock_time_get tests ( #8098 )
...
This brings in revised tests for clock_time_get from upstream and
re-enables them.
This revision of these tests allow for lower precision clocks (we only
provide millisecond precision, and that is conformant but previous
tests for this in the upstream test suite were a bit more aggressive).
2020-10-26 16:57:09 +01:00
Yasser A.Idrissi
35caa160bf
feat(std/testing): Add assertExists assertion ( #7874 )
2020-10-26 16:46:38 +01:00
Tim Reichen
ae86cbb551
rename(std/testing): rename assert*Contains to assert*Includes ( #7951 )
...
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
2020-10-26 16:03:30 +01:00
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