Commit Graph

63 Commits

Author SHA1 Message Date
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
Bartek Iwańczuk
82a523639a refactor: rewrite tests in to use Deno.test (denoland/deno#3930) 2021-02-01 10:46:57 +00:00
Yusuke Sakurai
7534d8390a remove non-null assertion operator from std (part2) (denoland/deno#3927) 2021-02-01 10:46:57 +00:00
Yusuke Sakurai
ee8ec4b053 remove non-null assertion operator from std (part1) (denoland/deno#3900) 2021-02-01 10:46:57 +00:00
Rafael Vargas
500b97dde6 fix: Deno.remove() to properly remove dangling symlinks (denoland/deno#3860)
For some reason, the unit tests for Deno.remove() were not being imported to 
unit_tests.ts and, consequently, not being executed. Thus, I imported them, 
refactored some existent ones and wrote new ones for the symlink removal case.

Since the creation of a symlink is not implemented for Windows yet, assertions
that consider this state were added when the tests are executed in this OS.
2021-02-01 10:46:57 +00:00
Kevin (Kun) "Kassimo" Qian
6630b59cec encoding: add base32 support (denoland/deno#3855) 2021-02-01 10:46:57 +00:00
Takashi Idobe
085a04b6a1 change copyrights from 2019 to 2020 (denoland/deno#3733) 2021-02-01 10:46:56 +00:00
Brandon Kalinowski
32c750f8f0 std(yaml): correct sortKeys type (denoland/deno#3708) 2021-02-01 10:46:56 +00:00
uki00a
e48cfe78d8 fix(encoding/yaml): export parseAll (denoland/deno#3592) 2021-02-01 10:46:56 +00:00
Ry Dahl
3a9eb92372 Happy new year! (denoland/deno#3578) 2021-02-01 10:46:56 +00:00
Yoshiya Hinosawa
1239902a03 fix(encoding/yaml): support document separator in parseAll (denoland/deno#3535) 2021-02-01 10:46:56 +00:00
Nayeem Rahman
90bd2ad881 feat: Add missing mod.ts files in std (denoland/deno#3509)
archive/tar.ts:
- Remove FileReader.
- Remove FileWriter.

encoding/csv.ts:
- ExtendedParseOptions -> ParseOptions
- HeaderOption -> HeaderOptions
- ParseOptions -> ReadOptions
- readAll() -> readMatrix()

encoding/yaml.ts:
- DumpOptions -> StringifyOptions

fmt/colors.ts:
- getEnabled() -> getColorEnabled()
- setEnabled() -> setColorEnabled()

testing/mod.ts:
- Re-export sibling modules.
2021-02-01 10:46:56 +00:00
Yoshiya Hinosawa
c0485bf863 docs(encoding/yaml): add usage document (denoland/deno#3529) 2021-02-01 10:46:56 +00:00
Lilian Saget-Lethias
72a4a27d80 feat: Add encoding/yaml module (denoland/deno#3361) 2021-02-01 10:46:56 +00:00
Kitson Kelly
1c5db631f7 Update to TypeScript 3.7 (denoland/deno#3275)
and update to prettier 1.19

Also, update `assert()` and remove not null assertions where possibly
in `cli`.

Closes denoland/deno#3273
2021-02-01 10:46:56 +00:00
Nayeem Rahman
5b2aec7a62 std: Move fs/path to the top-level (denoland/deno#3100) 2021-02-01 10:46:56 +00:00
Ryan Dahl
d491d2e747 Run deno_std tests in github actions 2021-02-01 10:46:56 +00:00