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
Casper Beyer
17467d01da
fix(std/io): remove trivial internal util.ts module ( #8032 )
2020-10-20 13:51:57 +02:00
David Sherret
df02e31507
feat(fmt): Sort named import and export specifiers ( #7711 )
2020-09-27 12:22:32 +02:00
tokiedokie
c4ed3fb7e7
chore: add copyright ( #7593 )
2020-09-21 08:26:41 -04:00
Casper Beyer
79b2510617
test(std/mime): make tests runnable from any directory ( #7398 )
2020-09-09 11:24:47 +02:00
Casper Beyer
644190eed8
test(std): ensure mod.ts modules have a test coverage ( #7264 )
2020-08-31 22:26:55 -04:00
David Sherret
cde4dbb351
Use dprint for internal formatting ( #6682 )
2020-07-14 15:24:17 -04:00
Anton Dmytriichuk
d4f9457536
fix(std/mime): boundary random hex values ( #6646 )
2020-07-05 18:23:59 -04:00
Nayeem Rahman
1fff6f55c3
refactor: Don't destructure the Deno namespace ( #6268 )
2020-06-12 15:23:38 -04:00
Chris Knight
3ef94c5473
refactor(std): remove testing dependencies from non-test code ( #5838 )
2020-06-07 09:20:33 -04:00
Casper Beyer
ed5aedc6b4
Rename abbreviated assertions in std/testing ( #6118 )
2020-06-05 23:43:00 -04:00
Kitson Kelly
3fe6bc1b82
fix: Better use of @ts-expect-error ( #6038 )
2020-06-02 00:24:44 -04:00
Henrique Emanoel Viana
d8c681d37a
feat(std/mime/multipart): Added multiple FormFile input ( #6027 )
2020-06-01 18:39:47 -04:00
Kitson Kelly
228f9c207f
Use ts-expect-error instead of ts-ignore. ( #5869 )
2020-05-26 10:02:16 -04:00
zfx
7589d4d7c4
fix(multipart): fix error when parsing file name in utf8 format ( #5428 )
2020-05-19 14:22:26 -04:00
Marcos Casagrande
4d3bcd807d
docs(std): Fix default value in comment ( #5539 )
2020-05-17 12:31:19 +02:00
Dante Calderón
c3a205bae8
Fix typos across the repo ( #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"
* std/encoding/_yaml/dumper/dumper_state.ts:57:63: corrected "everwhere" to "everywhere"
* std/encoding/csv.ts:37:43: corrected "referal" to "referral"
* std/fmt/sprintf.ts:209:20: corrected "unusuable" to "unusable"
* std/fmt/README.md:21:40: corrected "Alternativly" to "Alternatively"
* std/fmt/README.md:35:68: corrected "seperated" to "separated"
* std/fmt/README.md:179:59: corrected "provded" to "provided"
* std/mime/multipart.ts:581:46: corrected "writen" to "written"
* std/path/_globrex.ts:19:52: corrected "equivelant" to "equivalent"
* std/node/events_test.ts:447:9: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:475:9: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:500:29: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:530:40: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:555:9: corrected "asyncronous" to "asynchronous"
* tools/deno_tcp_proxy.ts:1:42: corrected "perfromance" to "performance"
* std/node/module.ts:1003:18: corrected "existend" to "existed"
2020-05-14 06:38:42 +02:00
Nayeem Rahman
f184332c09
BREAKING(std): reorganization ( #5087 )
...
* Prepend underscores to private modules
* Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result.
* Move std/_util/async.ts to std/async
* Move std/util/sha*.ts to std/hash
2020-05-09 08:34:47 -04:00
Marcos Casagrande
78e0ae643c
Fix MultipartReader for big files ( #4865 )
2020-04-29 16:38:24 -04:00
Bartek Iwańczuk
d308e8d0c0
BREAKING: remove custom implementation of Deno.Buffer.toString() ( #4992 )
...
Keep in mind Buffer.toString() still exists, but returns [object Object].
Reason for removal of Buffer.toString() was that it implicitly used
TextDecoder with fixed "utf-8" encoding and no way to customize
the encoding.
2020-04-29 22:38:10 +02:00
Nayeem Rahman
678313b176
BREAKING: Remove Deno.EOF, use null instead ( #4953 )
2020-04-28 12:40:43 -04:00
Bartek Iwańczuk
8feb30e325
BREAKING: remove overload of Deno.test() ( #4951 )
...
This commit removes overload of Deno.test() that accepted named
function.
2020-04-28 12:33:09 +02:00
Akshat Agarwal
4f9bb11444
reorder copyN arguments to match Deno.copy ( #4900 )
2020-04-26 16:26:02 -04:00
Bartek Iwańczuk
4a8d25646a
BREAKING CHANGE: remove Deno.OpenMode ( #4884 )
...
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
2020-04-25 00:45:55 +02:00
Bartek Iwańczuk
0cb1bb98cc
BREAKING CHANGE: change order of args in Deno.copy() ( #4885 )
2020-04-25 00:09:14 +02:00
Yusuke Sakurai
6e0c9a0c32
refactor(std/multipart): make readForm() return value more type safe ( #4710 )
2020-04-12 01:24:58 -04:00
Ryan Dahl
12c6b2395b
Move encode, decode helpers to /std/encoding/utf8.ts, delete /std/strings/ ( #4565 )
...
also removes std/encoding/mod.ts and std/archive/mod.ts which are useless.
2020-04-01 15:23:39 -04:00
Kitson Kelly
bced52505f
Update to Prettier 2 and use ES Private Fields ( #4498 )
2020-03-28 13:03:49 -04:00
Bartek Iwańczuk
6e2df8c64f
feat: Deno.test() sanitizes ops and resources ( #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 #4208
2020-03-18 19:25:55 -04:00
Oliver Lenehan
0f6acf2753
fix(std): Use Deno.errors where possible. ( #4356 )
2020-03-13 21:40:13 -04:00
Bartek Iwańczuk
61273085e4
refactor: rewrite tests in std/ to use Deno.test ( #3930 )
2020-02-11 17:24:27 +01:00
Yusuke Sakurai
c2986891f6
remove non-null assertion operator from std (part1) ( #3900 )
2020-02-07 02:23:38 -05:00
Nayeem Rahman
9d5f0f2d23
Remove std/multipart ( #3647 )
...
since it overlaps with std/mime/multipart
2020-01-10 12:29:09 -07:00
Ry Dahl
bfab4ed0df
Happy new year! ( #3578 )
2020-01-02 15:13:47 -05:00
Nayeem Rahman
e8d82a6348
feat: Add missing mod.ts files in std ( #3509 )
...
std/archive/tar.ts:
- Remove FileReader.
- Remove FileWriter.
std/encoding/csv.ts:
- ExtendedParseOptions -> ParseOptions
- HeaderOption -> HeaderOptions
- ParseOptions -> ReadOptions
- readAll() -> readMatrix()
std/encoding/yaml.ts:
- DumpOptions -> StringifyOptions
std/fmt/colors.ts:
- getEnabled() -> getColorEnabled()
- setEnabled() -> setColorEnabled()
std/testing/mod.ts:
- Re-export sibling modules.
2019-12-20 15:21:30 -05:00
Kitson Kelly
9837d324a7
Update to TypeScript 3.7 ( #3275 )
...
and update to prettier 1.19
Also, update `assert()` and remove not null assertions where possibly
in `cli`.
Closes #3273
2019-11-13 13:42:34 -05:00
Nayeem Rahman
f51dcc12d7
std: Move fs/path to the top-level ( #3100 )
2019-10-16 14:39:33 -04:00
Ryan Dahl
93f7f00c95
Run deno_std tests in github actions
2019-10-09 17:22:22 -04:00
Ryan Dahl
151ce0266e
Move everything into std subdir
2019-10-09 17:10:09 -04:00