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
Simon Lecoq
46fc7058a4
feat(encoding/yaml): add support for JS types and user types ( #789 )
2021-03-15 21:22:10 +09:00
Yusuke Tanaka
b134d54319
refactor: fix codes to pass no-unused-vars
lint ( #764 )
2021-03-02 15:31:37 +09:00
Zhangyuan Nie
5bc18f5d86
BREAKING(encoding): remove module utf8.ts ( #728 )
2021-02-16 13:22:07 +01:00
Casper Beyer
d6ab8bfeef
chore: format with canary ( #717 )
2021-02-10 01:55:53 +09:00
Casper Beyer
d5bad95a71
chore: Setup CI and tests
...
Create ci.yml
chore: add wasi-test-suite as a submodule
chore: remove legacy configuration files and scripts
chore: remove outdated redirection notice
chore: add git attributes to ensure text files use unix line endings
chore: format
test(http): copy tls testdata from denoland/deno
2021-02-01 12:20:35 +01:00
Jesse Jackson
1a8acd5a28
Typo ( denoland/deno#9221 )
2021-02-01 10:46:59 +00:00
Bartek Iwańczuk
84ee144ba8
chore: Enforce ban-untagged-todo lint rule ( denoland/deno#9135 )
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
Yacine Hmito
858b57e6e6
docs: Remove outdated information about third_party/ directory ( denoland/deno#8973 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
a0bfd92db8
fix: Don't use JSDoc syntax for browser-compatibility headers ( denoland/deno#8960 )
2021-02-01 10:46:58 +00:00
Anh Hong
152f1e68a9
chore: fixed various misspellings and other typos ( denoland/deno#8691 )
2021-02-01 10:46:58 +00:00
Yuki Tanaka
5269f12310
fix(encoding): Rewrite toml parser not to use eval() ( denoland/deno#8624 )
2021-02-01 10:46:58 +00:00
Jesse Jackson
d336162012
fix(encoding/csv): Correct readme formatting due to dprint issues ( denoland/deno#8503 )
2021-02-01 10:46:58 +00:00
Jesse Jackson
ecf5bde405
feat(encoding/csv): Add stringify functionality ( denoland/deno#8408 )
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
timonson
68d4f03e45
fix(encoding): base64 properly encodes mbc and handles Uint8Arrays ( denoland/deno#7807 )
...
Fixes denoland/deno#6094
Fixes denoland/deno#4794
2021-02-01 10:46:58 +00:00