Commit Graph

119 Commits

Author SHA1 Message Date
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
familyboat
8ee7766677
refactor(archive/tar): improve clean function (#3431)
Co-authored-by: familyboat <familyboat@163.com>
2023-06-07 20:37:10 +09:00
Asher Gomez
a11c957053
chore(streams, archive): remove deprecated exports (#3107) 2023-01-14 19:10:03 +09:00
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Asher Gomez
22cdb7f0fc
refactor(archive): rework single-export files (#3060) 2022-12-27 13:38:03 +09:00
Asher Gomez
2f9baf6794
refactor: remove Deno namespace IO types (#3030) 2022-12-23 14:33:12 +09:00
Asher Gomez
ae3663e74c
chore: move deprecated removal versions back (#3032) 2022-12-22 17:01:00 +09:00
Asher Gomez
c78061eef3
refactor: replace String.prototype.substr() with String.prototype.slice() (#2993) 2022-12-12 15:21:59 +09:00
Asher Gomez
259d5a71e2
BREAKING(archive): move to single-export files (#2958) 2022-12-04 20:41:50 +09:00
Asher Gomez
5dabeb2d91
refactor(streams): move to single-export files (#2957) 2022-11-29 08:55:38 -05:00
Leo Kettmeir
aba5017d43
docs: reorganize docs (#2658) 2022-11-25 12:40:23 +01:00
Asher Gomez
792f1334fe
refactor: use _util/asserts.ts for non-test code (#2857) 2022-11-10 16:28:20 +09:00
ayame113
6b04b730b1
chore: Avoid using rid-based filesystem functions (#2763) 2022-10-10 10:07:24 -04:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation (#2511) 2022-08-11 21:51:20 +10:00
cuobiezi
dab98b6e1b
fix(archive/tar): export TarEntry class (#2429) 2022-07-11 17:38:23 +09:00
Mark Ladyshau
1bba810b48
refactor: replace TS private with private identifiers (#2272) 2022-05-27 21:27:13 +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
Kitson Kelly
00463cba18
docs: improve module JSDoc for archive, async, bytes (#2162) 2022-04-28 14:08:08 +10:00
TrickyPi
3e7c4501a1
BREAKING(io/readers): use an array as a MultiReader constructor parameter to avoid Maximum call stack size exceeded (#2016) 2022-04-08 15:03:51 +09:00
Yoshiya Hinosawa
b061c817c4
chore(archive): fix lint error in tar.ts (#1960) 2022-02-25 23:20:47 +09:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header (#1871) 2022-02-02 23:21:39 +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
Craig Morten
c4600fbd75
docs: correct typos (#1207) 2021-09-07 16:40:05 +09:00
Guilherme J. Tramontina
c27b2593d4
fix(testing/asserts): cater for different class constructor functions (#1000) 2021-07-22 13:53:53 +09:00
Luca Casonato
81314bcab8
feat: add copy util to std/io (#1016)
This is in preparation of deprecation in Deno, and removal in Deno 2.0.
2021-07-12 14:46:07 +02:00
Kitson Kelly
039271fa6c
chore: update std for TypeScript 4.3 changes (#938)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-05-30 10:46:38 +10: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
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
Yoshiya Hinosawa
3b352a3e89 chore: update copyright year (denoland/deno#9094) 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
Behnam Mohammadi
5079c793ca style(archive): add default value on argument (denoland/deno#8582) 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
Marcos Casagrande
9883043694 fix(tar): fix constant condition (denoland/deno#8010) 2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
f560c5ff93 upgrade: deno_doc, deno_lint, dprint, swc (denoland/deno#8009) 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
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
Casper Beyer
a14384cd0c test(archive): make tests runnable from any directory (denoland/deno#7366) 2021-02-01 10:46:58 +00:00
zfx
04e6fd2ddd fix(tar): directory type bug (denoland/deno#6905) 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
Marcos Casagrande
81f8f44f4d fix(archive): untar (denoland/deno#6217)
- Fix `Untar` for tarballs with multiple files (Currently throwing `"checksum error"`)
- Fix parsing, now all `ustar` versions should be supported. Linux `tar -cvf deno.tar dir/` is not working on master. 
- Added `asyncIterator`
- Added README.md
2021-02-01 10:46:57 +00:00
Marcos Casagrande
a3564c2251 cleanup tar (denoland/deno#6185) 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
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
Bert Belder
14ff9a84b4 Rename FileInfo time fields and represent them as Date objects (denoland/deno#4932)
This patch also increases the resolution of reported file times to
sub-millisecond precision.
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
5f53c9808c BREAKING CHANGE: remove Deno.OpenMode (denoland/deno#4884)
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
214d4bf8e4 BREAKING CHANGE: change order of args in Deno.copy() (denoland/deno#4885) 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
Kitson Kelly
7914eae5f0 Update to Prettier 2 and use ES Private Fields (denoland/deno#4498) 2021-02-01 10:46:57 +00:00
dubiousjim
635881632d BREAKING CHANGE FileInfo.len renamed to FileName.size (denoland/deno#4338) 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
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
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
Yoshiya Hinosawa
c3fe858f98 Update eslint and @typescript-eslint (#621) 2019-10-05 12:02:34 -04:00
Axetroy
06958a4ada bump prettier to 1.18.2 (#592) 2019-09-11 23:31:23 -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
Ryan Dahl
86b7499e65
upgrade: deno to v0.8.0 (#487) 2019-06-09 21:42:06 -04:00
Bartek Iwańczuk
be24677d15 chore: Implement strict mode (#453) 2019-05-30 08:59:30 -04:00
Jun Kato
98257ef303 feat: add Tar and Untar classes (#388)
Ported from danoweb
fccb5bfc60/server/tar.ts
fccb5bfc60/server/tar_test.ts
2019-05-14 17:59:42 -04:00