Commit Graph

253 Commits

Author SHA1 Message Date
Lino Le Van
3001bfc431
refactor: remove unnecessary returns (#3046) 2022-12-24 20:13:11 +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
Matias Volpe
01696ce149
fix(encoding): base58 decoding (#2982) 2022-12-13 21:14:23 +09:00
Yoshiya Hinosawa
40fdfdefaa
chore: update for CLI canary (#2992) 2022-12-08 21:53:13 +09:00
李瑞丰
d90ca8db6b
docs: removed types from jsdoc directives (#2988) 2022-12-08 18:56:08 +09:00
李瑞丰
45087440aa
docs(encoding/front_matter): fix doc error when render page (#2985) 2022-12-08 01:46:59 +09:00
Carlos Scheidegger
b6dba51043
perf(encoding/yaml) Don't allocate buffers unnecessarily (#2967) 2022-12-05 11:50:59 -05: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
Asher Gomez
b7e9dee53c
chore: upgrade rust to 0.165.0 and wasmbuild to 0.10.2 (#2850) 2022-11-08 21:15:44 +09:00
Proudust
52791bb091
docs(encoding): remove ColumnDetails["fn"] (#2840) 2022-11-07 16:12:53 +09:00
Asher Gomez
60466e8618
refactor(_util): remove deepAssign (#2847) 2022-11-07 15:16:37 +09:00
Asher Gomez
5c8bd0b6f6
refactor(encoding): move varint/_wasm_varint/ to varint/_wasm/ (#2844) 2022-11-07 15:10:38 +09:00
李瑞丰
fea04e5247
docs(encoding): remove await (#2831) 2022-11-04 20:42:07 +09:00
Schwarzkopf Balázs
11e3cb70c7
feat(encoding/front_matter): add support for different formats of front matter (#2801) 2022-10-28 17:07:56 +09:00
Basti Ortiz
deef340b55
docs: add/improve JSDoc comments for various modules (#2764)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-10-11 11:29:29 -04:00
ayame113
e6189c08e9
docs: Using absolute paths in jsdoc import statements (#2762) 2022-10-10 10:05:56 -04:00
Asher Gomez
40d071763f
chore(encoding): remove deprecated APIs (#2718) 2022-09-30 14:40:09 +09:00
Asher Gomez
eeb696cc29
chore: upgrade wasmbuild to 0.10.0 and rust to 1.64.0 (#2721) 2022-09-30 14:22:27 +09:00
Tim Reichen
2f7713a164
chore(tools): add deprecation check (#2613) 2022-09-15 16:06:04 +09:00
Tim Reichen
3d06fb82dc
refactor: move varint and crypto wasm dirs (#2618) 2022-09-12 14:32:33 +09:00
Tim Reichen
6dd2814a8c
BREAKING(encoding/csv): sync stringify function (#2611) 2022-09-08 13:57:21 +09:00
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