Commit Graph

279 Commits

Author SHA1 Message Date
Lucas Henrique
d3b14b2aa0
BREAKING(encoding/csv): make column argument optional (#2168) 2022-09-07 19:53:56 +09:00
Yoshiya Hinosawa
e627b83343
BREAKING: replace ALL CAPS acronyms in public API names (#2582) 2022-08-30 16:08:43 +09:00
Lucas Henrique
822a5903d3
refactor(encoding/base58): using object for getting values at decode (#2563) 2022-08-29 17:26:38 +09:00
ayame113
e990ef3d18
fix(encoding/jsonc): Improve safety of JSONValue object type in jsonc.ts (#2568) 2022-08-26 15:05:55 +09:00
Jesse Jackson
a2df605817
fix(encoding/json): improve safety of JSONValue object type (#2565) 2022-08-26 13:59:32 +09:00
Lucas Henrique
398170a451
feat(encoding): add base58 encoding/decoding feature (#2539) 2022-08-25 14:54:03 +09:00
Tim Reichen
3641524c55
BREAKING(encoding/csv): remove ColumnOptions (#2536) 2022-08-25 14:35:42 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Yoshiya Hinosawa
d7fa0016c3
ci: fix browser type checking (#2549) 2022-08-23 19:06:52 +09:00
Tim Reichen
51bf5f7ab4
refactor(encoding/csv): merge files (#2524) 2022-08-16 15:09:35 +09:00
Tim Reichen
33afdfe0ad
feat(encoding/csv): sync parse (#2491) 2022-08-13 23:22:00 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation (#2511) 2022-08-11 21:51:20 +10:00
David Sherret
5cf22ead6b
chore: workaround swc emit issues (#2439) 2022-07-13 09:15:32 -04:00
Yoshiya Hinosawa
e2f3f58fb4
docs(encoding/front_matter): fix example (#2437) 2022-07-12 20:50:55 +09:00
nkronlage
eb4f512cc4
fix(encoding/csv/stream): cancel lineReader if readable is canceled (#2401) 2022-07-11 18:58:23 +09:00
Tim Reichen
6f0cb011c6
test(encoding/csv): restructure tests (#2332) 2022-07-05 16:24:11 +09:00
Jesse Jackson
3a27feab64
fix(encoding/json): add null to JSONValue union (#2384) 2022-06-25 01:20:01 +09:00
Yuki Tanaka
fdf5318709
fix(encoding/csv/stream): properly handle CR characters (#2325) 2022-06-22 09:21:33 -04:00
Yoshiya Hinosawa
8d60d1c35b
test(encoding/json): fix parse stream test expectation (#2373) 2022-06-20 20:27:53 +09:00
ayame113
6d33b18a8c
feat(encoding): add json/stream.ts (#2231) 2022-06-20 09:06:37 +09:00
Tim Reichen
1031c324b9
refactor(encoding/base64url): remove unnecessary export (#2363) 2022-06-17 23:17:59 +09:00
denobot
55addb3ad1
0.144.0 (#2351)
* 0.144.0

* fix(Releases.md): update note about collections/mod.ts

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>

* chore: fix formatting

* fix(tests): use `Deno.currentExe()` instead of `"deno"`

Co-authored-by: aslilac <aslilac@users.noreply.github.com>
Co-authored-by: Kayla Washburn <mckayla@hey.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-15 16:05:49 -06:00
Divy Srivastava
6dbb2121b5
encoding: add front matter module (#2335)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-06-14 16:46:52 +05:30
David Sherret
e72e13db63
refactor: use wasmbuild (#2319) 2022-06-08 11:19:50 -04:00
Skye
f415da4c62
feat(encoding): add unsigned LEB128 varint encoding (#2265)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-06-05 21:22:03 +09:00
Yoshiya Hinosawa
959e6c12cd
chore: update code format (#2278) 2022-05-27 21:26:01 +09:00
Mark Ladyshau
662f27ce84
feat(testing/asserts): return error from assertRejects and assertThrows (#2226)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-05-25 17:51:42 +09:00
Jesper van den Ende
11b2b7f7f7
BREAKING(testing/asserts): remove implicit any types from assert signatures. (#2203) 2022-05-20 14:08:49 +02:00
fadwamahmoud
5e28e39d47
fix(encoding/csv): improve error message for csv's parse function (#2191) 2022-05-18 14:14:40 +09:00
Jesse Jackson
88b774bf59
docs(encoding): fix fragment link to JSONC section (#2215) 2022-05-13 10:21:05 +02:00
ayame113
21824ca4e5
feat(encoding): add jsonc parser (#2154) 2022-05-07 20:06:04 +09:00
Yuki Tanaka
c5202f5dfd
feat: web streams based encoding/csv (#1993) 2022-04-06 06:46:45 +02:00
Yoshiya Hinosawa
2ec5e07a49
docs: fix doc testing errors (#2012) 2022-03-09 01:13:45 +09:00
Jesse Jackson
58204e6f56
refactor: mark modules as browser compatible (#1972) 2022-03-01 13:25:50 +09:00
Elisée Maurer
0bda42d822
chore: Enable "noImplicitOverride" compiler option and fix errors (#1940)
This commit makes deno_std "noImplicitOverride"-compliant and 
enables the compiler option in deno.json so that further changes 
don't regress it
2022-02-20 17:35:40 +01:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
Andrew Mitchell
373ecdfa68
BREAKING(encoding/csv): add return type to csv's parse and remove a parse func from args (#1724) 2022-01-20 11:05:30 +09:00
Zheyu Zhang
78d464a17f
feat(toml): align keys by option (#1693) 2021-12-09 23:15:38 +09:00
Zheyu Zhang
6686110e29
fix(toml): parse declaration correctly (#1682) 2021-12-08 15:57:32 +09:00
Jonah Snider
1d9cd65f95
perf: use Array.from instead of new Array (#1551)
Co-authored-by: Leon Strauss <me@lionc.de>
2021-11-11 10:21:06 +01:00
Leo K
b58b10c229
feat: streams utilities (#1141) 2021-10-12 11:51:48 +02:00
Nayeem Rahman
d21aa79126
BREAKING(io): Reorganize modules (#813)
This commit reogranizes many modules:
- Move exports of io/bufio.ts (removed) into io/buffer.ts.
- Move exports of io/util.ts (repurposed, see next bullet) into io/streams.ts.
* With the exception of readRange() and readRangeSync(), which have been moved to io/files.ts (new).
*Also rename iter() and iterSync() to iterateReader() and iterateReaderSync() respectively.
- Move exports of io/ioutil.ts (removed) into io/util.ts.

Deprecation messages were added to old modules to make this change backwards compatible.

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-10-08 03:42:33 +02:00
Harry Lachenmayer
bf53725e28
fix(encoding/base64url): allow passing strings to encode (#1361) 2021-10-07 22:51:43 +02:00
Yoshiya Hinosawa
ab349ccac4
chore: remove deno-fmt-ignore (#1351) 2021-10-05 22:04:47 +09:00
defectivepixel
7bc0fad6fd
docs(encoding): add hex docs (#1287) 2021-09-19 03:40:08 +09:00
Nayeem Rahman
159e2aeffc
feat(testing/asserts): add assertThrows() overload to receive error (#1219) 2021-09-16 00:35:21 +09:00
Bartek Iwańczuk
44c326dc5b
fix: update to latest signal API changes (#1211) 2021-09-15 01:32:26 +02:00
Aaron O'Mullan
d4145b7c7e
fix(tests/yaml): expect !!js/function parse/stringify to throw (#1276)
* fix(tests/yaml): expect !!js/function parse/stringify to throw

Following #1275
2021-09-14 15:55:34 +02:00
Aaron O'Mullan
d5abd74f47
security(encoding/yaml): disable functions (#1275)
Which could allow arbitrary code execution when parsing YAML files with the extended schema, e.g:

```js
import { parse, EXTENDED_SCHEMA } from "https://deno.land/std/encoding/yaml.ts";

const data = parse(`
fun: !!js/function >
  console.log(Deno.core);
`, {schema: EXTENDED_SCHEMA});
console.log(data);
```
2021-09-14 14:03:05 +02:00
Yuki Tanaka
76d8c0159b
chore: wrap examples in fenced code blocks (#1222) 2021-09-13 00:14:54 +09:00
Craig Morten
c4600fbd75
docs: correct typos (#1207) 2021-09-07 16:40:05 +09:00
GrosSacASacs
5537732ba3
refactor: use native hasOwn (#1177) 2021-09-02 13:23:41 +09:00
Fuji Haruka
9b04726d09
fix(encoding/toml): escape string key/value (#1176)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-01 15:16:10 +09:00
Kitson Kelly
b7c61a27a7
chore: updates related to TypeScript 4.4 (#1171)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 14:39:04 +10:00
Ryan Dahl
455077a905
fix: type check examples in README files (#1121)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-11 11:28:10 +02:00
Yasser A.Idrissi
eb69dbd380
feat(testing): add assertRejects, deprecate assertThrowsSync (#1101) 2021-08-09 14:59:52 +09:00
Yuki Tanaka
c1252a3cd4
docs(encoding/base64url): Add base64url encoding example (#1082) 2021-08-03 15:32:41 +09:00
Simon Lecoq
5606a10728
fix(testing): change assertThrows and assertThrowsAsync return type to void and Promise<void> (#1052) 2021-07-28 14:54:58 +09:00
Chase
68a671f2bb
fix(encoding/base64url): throw TypeError in case of invalid base64url string (#1040) 2021-07-26 14:08:13 +02:00
Fuji Haruka
43ef969569
fix(encoding/toml): fix inline table and nested array (#1042) 2021-07-21 16:17:25 -07:00
Fuji Haruka
f12982dc75
fix(encoding/yaml): fix parseAll type definition by using overloads (#1048) 2021-07-21 16:47:10 +09:00
Fuji Haruka
bac1c3eb86
fix(encoding/toml): parse keys correctly (#1019) 2021-07-13 23:34:50 +09:00
Fuji Haruka
6649e0abc9
fix(encoding/toml): fix comment line starting with whitespaces (#1017) 2021-07-13 23:16:45 +09:00
Zzzen
cb39391f02
fix(encoding/toml): serializes mixed array (#1001)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-07-12 23:03:46 +09:00
Fuji Haruka
c20aade2bd
fix(encoding/toml): throws parse error when toml uses invalid whitespaces (#1013) 2021-07-09 09:26:01 -04:00
Zhangyuan Nie
30a96695f6
BREAKING(encoding/hex): remove encodedLen, encodeToString, decodedLen, decodeString, errInvalidByte, errLength (#733) 2021-07-06 17:47:42 +02:00
Vincent LE GOFF
3f3a1a74ba
feat(encoding/toml): fix bad string format. Improve coverage (#991) 2021-06-30 12:12:12 -04:00
trgwii
3eea49d4cc
fix(encoding/binary): respect non 0 byte offsets (#826) 2021-05-31 15:26:00 +02:00
Yusuke Tanaka
81be5faad9
chore: remove ESLint directives (#941) 2021-05-30 15:25:01 +09:00
Hermes Espínola González
ac2f40e7e1
fix(encoding/binary): allow getNBytes to read until EOF (#932) 2021-05-25 13:19:14 +09:00
Vincent LE GOFF
69183a0526
perf(encoding/toml): delete useless replace (#900) 2021-05-07 10:15:32 +09:00
Yasser A.Idrissi
da2de64d01
docs(encoding): Add base64 encoding example (#846)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-04-14 09:17:14 +09:00
William Perron
69f3d67cb2
chore: remove Promise<void> return type annotation (#819)
There's a couple of instances where `Promise<void>` is still there,
those are the exceptions, for example functions that explicitely return
a `Promise` object or functions that return the promise from another
function call without any `await` statement.

used this one-liner to automatically remove everything:

```bash
grep -rli 'promise<void>' | xargs sed -i 's/: Promise<void>//g
```
2021-04-05 07:49:05 -04:00
Yusuke Tanaka
e95e58a779
chore: add underscore prefix to unused variables (#837) 2021-04-04 21:04:36 +02:00
Yasser A.Idrissi
d32c66e506
ref(encoding): Promise<void> return types are unnecessary boilerplate. (#818) 2021-03-26 08:15:28 -04:00
Luca Casonato
be89f5a714
feat: add io/buffer and io/util module (#808)
This moves the `Deno.Buffer` and `Deno.readAll` / `Deno.readAllSync` /
`Deno.writeAll` / `Deno.writeAllSync` implementations to std, so we can
deprecate them in Deno 1.9, and remove them in Deno 2.0.
2021-03-22 22:45:35 +01:00
Simon Lecoq
46fc7058a4
feat(encoding/yaml): add support for JS types and user types (#789) 2021-03-15 21:22:10 +09:00
Yusuke Tanaka
b134d54319
refactor: fix codes to pass no-unused-vars lint (#764) 2021-03-02 15:31:37 +09:00
Zhangyuan Nie
5bc18f5d86
BREAKING(encoding): remove module utf8.ts (#728) 2021-02-16 13:22:07 +01:00
Casper Beyer
d6ab8bfeef
chore: format with canary (#717) 2021-02-10 01:55:53 +09:00
Casper Beyer
d5bad95a71
chore: Setup CI and tests
Create ci.yml

chore: add wasi-test-suite as a submodule

chore: remove legacy configuration files and scripts

chore: remove outdated redirection notice

chore: add git attributes to ensure text files use unix line endings

chore: format

test(http): copy tls testdata from denoland/deno
2021-02-01 12:20:35 +01:00
Jesse Jackson
1a8acd5a28 Typo (denoland/deno#9221) 2021-02-01 10:46:59 +00:00
Bartek Iwańczuk
84ee144ba8 chore: Enforce ban-untagged-todo lint rule (denoland/deno#9135) 2021-02-01 10:46:59 +00:00
Ryan Dahl
48a2496dbe update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
Yacine Hmito
858b57e6e6 docs: Remove outdated information about third_party/ directory (denoland/deno#8973) 2021-02-01 10:46:58 +00:00
Nayeem Rahman
a0bfd92db8 fix: Don't use JSDoc syntax for browser-compatibility headers (denoland/deno#8960) 2021-02-01 10:46:58 +00:00
Anh Hong
152f1e68a9 chore: fixed various misspellings and other typos (denoland/deno#8691) 2021-02-01 10:46:58 +00:00
Yuki Tanaka
5269f12310 fix(encoding): Rewrite toml parser not to use eval() (denoland/deno#8624) 2021-02-01 10:46:58 +00:00
Jesse Jackson
d336162012 fix(encoding/csv): Correct readme formatting due to dprint issues (denoland/deno#8503) 2021-02-01 10:46:58 +00:00
Jesse Jackson
ecf5bde405 feat(encoding/csv): Add stringify functionality (denoland/deno#8408) 2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
57d903a06b build: migrate to dlint (denoland/deno#8176)
This commit migrates repository from using "eslint" 
to "dlint" for linting JavaScript code.
2021-02-01 10:46:58 +00:00
timonson
68d4f03e45 fix(encoding): base64 properly encodes mbc and handles Uint8Arrays (denoland/deno#7807)
Fixes denoland/deno#6094
Fixes denoland/deno#4794
2021-02-01 10:46:58 +00:00
Peter
329b75d1e5 fix: Parsing inline arrays of inline tables in toml (denoland/deno#7902) 2021-02-01 10:46:58 +00:00
Cedric Vangout
160ae04418 docs(encoding/csv): update the usage of ParseOptions (denoland/deno#7857) 2021-02-01 10:46:58 +00:00
tokiedokie
8567b960f8 docs: version all imports in README (denoland/deno#7442)
Use $STD_VERSION in  README files to automatically
display proper version.
2021-02-01 10:46:58 +00:00
Trivikram Kamat
eb1c38cfbf docs: end sentences with a period in markdown (denoland/deno#7813) 2021-02-01 10:46:58 +00:00
Atakan Ermiş
121500af6c docs(encoding): add missing JSDoc (denoland/deno#7809) 2021-02-01 10:46:58 +00:00
uki00a
1da9818eef BREAKING(encoding/csv): improve the definition of ParseOptions (denoland/deno#7714) 2021-02-01 10:46:58 +00:00
David Sherret
99e0dca320 feat(fmt): Sort named import and export specifiers (denoland/deno#7711) 2021-02-01 10:46:58 +00:00
tokiedokie
d3fa1bbf5d chore: add copyright (denoland/deno#7593) 2021-02-01 10:46:58 +00:00
tasshi / Masaharu TASHIRO
50ebf926ca fix typo miliseconds -> milliseconds (denoland/deno#7469) 2021-02-01 10:46:58 +00:00
Casper Beyer
d3f850240c test(encoding): make tests runnable from any directory (denoland/deno#7368) 2021-02-01 10:46:58 +00:00
Jakob Strobl
ed6a8f13c2 fix(encoding/toml): Comment after arrays causing incorrect output (denoland/deno#7224) 2021-02-01 10:46:58 +00:00
Yusuke Tanaka
267b83a053 chore(encoding): disable no-control-regex (denoland/deno#7219) 2021-02-01 10:46:58 +00:00
Kitson Kelly
d47cdf14aa feat: update to TypeScript 4.0 (denoland/deno#6514) 2021-02-01 10:46:58 +00:00
danielwippermann
d75b9d10b1 fix(encoding/toml): Stop TOML parser from detecting numbers in strings. (denoland/deno#7064)
Before this patch the TOML parser would incorrect treat the string
"base64data0xdamaged" in a declaration as a hex number because the
corresponding check triggers even when the "0x" is inside a double
quoted string literal as long as it is followed by at least one hex
character.
2021-02-01 10:46:58 +00:00
uki00a
49996e8687 fix(encoding/csv): improve error message on ParseError (denoland/deno#7057) 2021-02-01 10:46:58 +00:00
Rauf Islam
61d90c5770 fix(encoding/toml): Add boolean support to stringify (denoland/deno#6941) 2021-02-01 10:46:58 +00:00
Jarrett Helton
98f2de9255 fix(toml): parser error with inline comments (denoland/deno#6942) 2021-02-01 10:46:58 +00:00
Kid
0819976061 docs(encoding): Fix TOML docs (denoland/deno#6912) 2021-02-01 10:46:58 +00:00
Casper Beyer
9c302c2ed0 BREAKING(fs): remove readFileStr and readFileStrSync (denoland/deno#6848)
This removes the readFileStr and readFileStrSync functions which are
effectively duplicates of Deno.readTextFile and Deno.readTextFileSync.
2021-02-01 10:46:58 +00:00
uki00a
f6b5e3e4ed fix(encoding/toml): could not parse strings with apostrophes/semicolons (denoland/deno#6781) 2021-02-01 10:46:58 +00:00
David Sherret
1425960509 Use dprint for internal formatting (denoland/deno#6682) 2021-02-01 10:46:58 +00:00
Opliko
856d3de0c4 feat(encoding): add ascii85 module (denoland/deno#6711) 2021-02-01 10:46:58 +00:00
Marcos Casagrande
fae1aba117 BREAKING(encoding/hex): simplify API (denoland/deno#6690) 2021-02-01 10:46:58 +00:00
Kitson Kelly
9d4117f963 feat: add --no-check option (denoland/deno#6456)
This commit adds a "--no-check" option to following subcommands:
- "deno cache"
- "deno info"
- "deno run"
- "deno test"

The "--no-check" options allows to skip type checking step and instead 
directly transpiles TS sources to JS sources. 

This solution uses `ts.transpileModule()` API and is just an interim
solution before implementing it fully in Rust.
2021-02-01 10:46:58 +00:00
Marcos Casagrande
59a4141bbc fix: base64 in workers (denoland/deno#6681) 2021-02-01 10:46:58 +00:00
Marcos Casagrande
6bae7d68cf BREAKING(encoding/hex): reorder encode & decode arguments (denoland/deno#6410)
refactor to match other src/dst methods
2021-02-01 10:46:58 +00:00
Nayeem Rahman
ccb92613f0 refactor: Don't destructure the Deno namespace (denoland/deno#6268) 2021-02-01 10:46:58 +00:00
Ryan Dahl
f8eb45e39d make std deno-lint clean (denoland/deno#6240)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-02-01 10:46:58 +00:00
Ch3ri0ur
7d411434da Readme cleanup in encoding and ws (denoland/deno#6209) 2021-02-01 10:46:57 +00:00
Oliver Lenehan
431c07de25 feat(encoding/binary): add varnumBytes(), varbigBytes() (denoland/deno#5173) 2021-02-01 10:46:57 +00:00
Chris Knight
589fe4bd53 refactor: remove testing dependencies from non-test code (denoland/deno#5838) 2021-02-01 10:46:57 +00:00
timonson
1b9f565fb7 feat(encoding): add base64url module (denoland/deno#5976) 2021-02-01 10:46:57 +00:00
uki00a
7b1ccf23d3 re-enable the "HugeLines" test case (denoland/deno#6006) 2021-02-01 10:46:57 +00:00
uki00a
f7df64f442 docs(encoding/csv): improve the document and jsdoc comments (denoland/deno#6008) 2021-02-01 10:46:57 +00:00
skdltmxn
5437ef0705 feat(encoding): add base64 (denoland/deno#5811) 2021-02-01 10:46:57 +00:00
pontakornth
11e24677b8 docs: Fix typo (denoland/deno#5582) 2021-02-01 10:46:57 +00:00
Dante Calderón
558a04d2e5 Fix typos across the repo (denoland/deno#5295)
Corrections made:
* cli/js/tests/README.md:44:7: corrected "discoveres" to "discovers"
* cli/js/tests/chown_test.ts:111:37: corrected "priviledge" to "privilege"
* cli/worker.rs:231:56: corrected "decendants" to "descendants"
* deno_typescript/lib.rs:136:50: corrected "emmited" to "emitted"
* core/es_isolate.rs:492:67: corrected "registerd" to "registered"
* core/isolate.rs:103:28: corrected "initalize" to "initialize"
* docs/runtime.md:29:14: corrected "ect" to "etc"
* docs/tools/debugger.md:122:16: corrected "implementes" to "implements"
* encoding/_yaml/dumper/dumper_state.ts:57:63: corrected "everwhere" to "everywhere"
* encoding/csv.ts:37:43: corrected "referal" to "referral"
* fmt/sprintf.ts:209:20: corrected "unusuable" to "unusable"
* fmt/README.md:21:40: corrected "Alternativly" to "Alternatively"
* fmt/README.md:35:68: corrected "seperated" to "separated"
* fmt/README.md:179:59: corrected "provded" to "provided"
* mime/multipart.ts:581:46: corrected "writen" to "written"
* path/_globrex.ts:19:52: corrected "equivelant" to "equivalent"
* node/events_test.ts:447:9: corrected "asyncronous" to "asynchronous"
* node/events_test.ts:475:9: corrected "asyncronous" to "asynchronous"
* node/events_test.ts:500:29: corrected "asyncronous" to "asynchronous"
* node/events_test.ts:530:40: corrected "asyncronous" to "asynchronous"
* node/events_test.ts:555:9: corrected "asyncronous" to "asynchronous"
* tools/deno_tcp_proxy.ts:1:42: corrected "perfromance" to "performance"
* node/module.ts:1003:18: corrected "existend" to "existed"
2021-02-01 10:46:57 +00:00
Nayeem Rahman
fec1c3ba8d fix(encoding/yaml): Correct exports (denoland/deno#5191) 2021-02-01 10:46:57 +00:00
Nayeem Rahman
1eecc5c7d0 BREAKING: reorganization (denoland/deno#5087)
* Prepend underscores to private modules
* Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result.
* Move _util/async.ts to async
* Move util/sha*.ts to hash
2021-02-01 10:46:57 +00:00
David Sherret
bd3e3f875a Move the docs like @param [obj.prop] to the interface. (denoland/deno#4974) 2021-02-01 10:46:57 +00:00
Nayeem Rahman
e4cb19d01d BREAKING: Remove Deno.EOF, use null instead (denoland/deno#4953) 2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
4facff44f2 BREAKING: remove overload of Deno.test() (denoland/deno#4951)
This commit removes overload of Deno.test() that accepted named
function.
2021-02-01 10:46:57 +00:00
Ryan Dahl
1f1818d379 Move encode, decode helpers to /encoding/utf8.ts, delete /strings/ (denoland/deno#4565)
also removes encoding/mod.ts and archive/mod.ts which are useless.
2021-02-01 10:46:57 +00:00
Ondřej Žára
32b666947a used native padStart/End where possible (denoland/deno#4537) 2021-02-01 10:46:57 +00:00
uki00a
3d8a63d8c7 fix(encoding/csv): enable skipped tests (denoland/deno#4520) 2021-02-01 10:46:57 +00:00
Kitson Kelly
7914eae5f0 Update to Prettier 2 and use ES Private Fields (denoland/deno#4498) 2021-02-01 10:46:57 +00:00
Samrith Shankar
204ebc523d Add require-await lint rule (denoland/deno#4401) 2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
03d7177ca3 refactor: rename Deno.TestDefinition.skip to ignore (denoland/deno#4400) 2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
a19e660a30 feat: Deno.test() sanitizes ops and resources (denoland/deno#4399)
This PR brings assertOps and assertResources sanitizers to Deno.test() API.

assertOps checks that test doesn't leak async ops, ie. there are no unresolved
promises originating from Deno APIs. Enabled by default, can be disabled using 
Deno.TestDefinition.disableOpSanitizer.

assertResources checks that test doesn't leak resources, ie. all resources used
in test are closed. For example; if a file is opened during a test case it must be
explicitly closed before test case finishes. It's most useful for asynchronous
generators. Enabled by default, can be disabled using 
Deno.TestDefinition.disableResourceSanitizer.

We've used those sanitizers in internal runtime tests and it proved very useful in
surfacing incorrect tests which resulted in interference between the tests.

All tests have been sanitized.

Closes denoland/deno#4208
2021-02-01 10:46:57 +00:00
Nayeem Rahman
19ca3f53c4 refactor: Uncomment disabled tests, use skip option (denoland/deno#4378) 2021-02-01 10:46:57 +00:00
Oliver Lenehan
9986475ca1 fix: Use Deno.errors where possible. (denoland/deno#4356) 2021-02-01 10:46:57 +00:00
Oliver Lenehan
012fb2c219 feat (encoding): add binary module (denoland/deno#4274) 2021-02-01 10:46:57 +00:00
Kitson Kelly
2516a51343 upgrade: TypeScript 3.8 (denoland/deno#4100) 2021-02-01 10:46:57 +00:00
João Souto
d76d46f299 Remove ansi_term dependency (denoland/deno#4116) 2021-02-01 10:46:57 +00:00
Ryan Dahl
2cce592c15 Revert "Remove ansi_term dependency"
Broke colors
https://github.com/denoland/deno/issues/4112#issuecomment-590545385

This reverts commit c250778704a4e0065e54e6bf6ca6c39d556a6d8d.
2021-02-01 10:46:57 +00:00
João Souto
9b1c5ffac2 Remove ansi_term dependency (denoland/deno#4106) 2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
f5cbcf287e refactor: remove unneeded ErrorKinds (denoland/deno#3936) 2021-02-01 10:46:57 +00:00
Maximilien Mellen
623a601fd5 Enable TS strict mode by default (denoland/deno#3899)
Fixes denoland/deno#3324 

Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-02-01 10:46:57 +00:00