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
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
Oliver Lenehan
9986475ca1
fix: Use Deno.errors where possible. ( denoland/deno#4356 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
589ac5af6f
reduce unnecessary output on tests ( denoland/deno#4148 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
b490e1199c
fix: [ws] sock shouldn't throw eof error when failed to read frame ( denoland/deno#4083 )
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
Nayeem Rahman
2f43947408
feat(io): Export readDelim(), readStringDelim() and readLines() from bufio.ts ( denoland/deno#4019 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.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
Ry Dahl
8c250d5668
fix: Deno.mkdir should conform to style guide ( denoland/deno#3617 )
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
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
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
Robert Jack Will
4b3c56b714
std: fix BufReader.readString to actually return Deno.EOF at end ( denoland/deno#3191 )
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
Yoshiya Hinosawa
c3fe858f98
Update eslint and @typescript-eslint ( #621 )
2019-10-05 12:02:34 -04:00
timonson
f3bdf1a77b
added type number to 'size' parameter ( #618 )
2019-09-29 10:11:18 -04:00
Dmitry Sharshakov
20b6408e10
Implement readString ( #607 )
2019-09-22 13:04:46 -04:00
Bartek Iwańczuk
c44e5367bf
feat: test runner ( #516 )
2019-08-14 20:04:56 -04:00
Yoshiya Hinosawa
3ea90d54f6
Upgrade to v0.11.0 (update Reader interface) ( #527 )
2019-07-07 15:20:41 -04:00
Axetroy
b04fda30c8
lint: add max line length rules ( #507 )
2019-06-18 21:22:01 -07:00
Bert Belder
679b203053
io: make port BufReader.readByte() return number | EOF
2019-05-30 18:35:00 -07:00
Bartek Iwańczuk
be24677d15
chore: Implement strict mode ( #453 )
2019-05-30 08:59:30 -04:00
Bert Belder
0ee6334b69
io: refactor BufReader/Writer interfaces to be more idiomatic ( #444 )
...
Thanks Vincent Le Goff (@zekth) for porting over the CSV reader
implementation.
Fixes : #436
2019-05-29 09:50:12 -07:00
Axetroy
2f003fa35c
rename strings/strings.ts to strings/mod.ts ( #449 )
2019-05-27 02:58:31 +03:00
Yusuke Sakurai
782e3f690f
feat: ws client ( #394 )
2019-05-14 15:19:11 -04:00
Vincent LE GOFF
4543b563a9
Eslint fixes ( #356 )
...
Make warnings fail
2019-04-24 07:41:22 -04:00
Vincent LE GOFF
0bb040e8d4
Test reorganization ( #290 )
2019-03-18 12:49:54 -04:00
Yoshiya Hinosawa
395392912d
Use Deno global var instead of built-in "deno" module ( #247 )
2019-03-07 19:25:16 -05:00
Ryan Dahl
4cf39d4a14
Rename assertEq to assertEquals ( #242 )
...
After some discussion it was found that assertEquals is more common
in JS (vs assertEqual, assertEq) and sounds better in the negated form:
assertNotEquals vs assertNE.
2019-03-06 19:42:24 -05:00
Vincent LE GOFF
e1d5c00279
Testing refactor ( #240 )
2019-03-06 16:39:50 -05:00
Kitson Kelly
c0390ade3d
Add eslint for linting ( #235 )
2019-03-04 19:53:35 -05:00
Bert Belder
6063378a92
Change import { x } from "deno"
to const { x } = Deno
( #218 )
2019-02-26 00:35:50 -05:00
Ryan Dahl
57c9176b19
Revert "Redesign of http server module ( #188 )"
...
We need to consider the API changes here more carefully.
This reverts commit da188a7d30
.
and commit 8569f15207
.
2019-02-19 13:18:41 -05:00
Yusuke Sakurai
8569f15207
Redesign of http server module ( #188 )
2019-02-15 11:03:57 -05:00
Yusuke Sakurai
fda9c98d05
feat: multipart, etc.. ( #180 )
2019-02-10 18:49:48 -05:00
Dmitry Sharshakov
f2d23f8fcd
Clean up tests ( #176 )
2019-02-08 12:23:51 -05:00
Dmitry Sharshakov
5440377495
Add missiong copyright headers ( #177 )
2019-02-07 11:45:47 -05:00
Max Graey
2081f03a07
fix possible range issues for copyBytes in io/util ( #146 )
2019-01-21 21:56:35 -06:00
Andy Hayden
e28c9a4079
Remove race-condition in file_server tests ( #125 )
2019-01-17 13:08:59 -05:00
Andy Hayden
c5e6e015b5
Reorgnanize repos, examples and tests ( #105 )
2019-01-12 16:50:04 -05:00