Commit Graph

253 Commits

Author SHA1 Message Date
Asher Gomez
9c9ed80a28
test(yaml): add parse() test for duplicate keys (#5240) 2024-07-02 13:58:47 +10:00
Asher Gomez
cadf85c8ad
BREAKING(yaml): remove ParseOptions.legacy option (#5229)
BREAKING(yaml): remove `ParseOptions.legacy`
2024-07-02 11:57:58 +10:00
Asher Gomez
f1a71fcc19
chore(yaml): remove example folder (#5238) 2024-07-02 11:57:25 +10:00
Yoshiya Hinosawa
9e19c392da
test(yaml): add test cases of handling ? mark in YAML (#5234) 2024-07-02 10:51:53 +09:00
Yoshiya Hinosawa
a889ffeb5d
test(yaml): test !!timestamp type handling (#5237) 2024-07-02 10:48:22 +09:00
Tim Reichen
b15707dc53
refactor(yaml): simplify schema (#5236)
* initial commit

* remove default schema option

* Update yaml/stringify.ts

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>

* revert schema strings

* refactor: use `Map` for `SCHEMA_MAP`

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-02 08:42:32 +10:00
Yoshiya Hinosawa
442b0180a5
test(yaml): test stringify() case when string encoded into hex sequences (#5230) 2024-07-01 19:35:59 +09:00
Asher Gomez
19be4f89c9
BREAKING(yaml): remove filename option from parse() and stringify() (#5223)
* BREAKING(yaml): remove `filename` option from `parse()` and `stringify()`

* update
2024-07-01 19:30:43 +10:00
Asher Gomez
ef71997cb4
refactor(yaml): consolidate yaml/schema/*.ts code into yaml/_schema.ts (#5225) 2024-07-01 18:13:21 +09:00
Asher Gomez
c787328c70
BREAKING(yaml): remove listener option from parse() and stringify() (#5224) 2024-07-01 18:08:42 +09:00
Asher Gomez
d102a10235
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199)
* refactor: import from `@std/assert`

* update
2024-06-30 08:30:10 +00:00
Yoshiya Hinosawa
9c543c9f36
fix(yaml): fix !!pairs parsing (#5192) 2024-06-29 16:47:35 +09:00
Yoshiya Hinosawa
965833b791
refactor(yaml): remove unused func type (#5191) 2024-06-29 16:38:56 +09:00
Yoshiya Hinosawa
48bff59160
test(yaml): test anchor and alias handling of parse() (#5190) 2024-06-29 16:38:30 +09:00
Yoshiya Hinosawa
05f25df97e
refactor(yaml): remove dead code (#5189) 2024-06-29 16:37:42 +09:00
Yoshiya Hinosawa
26914ff7a8
test(yaml): add misc parse() test cases (#5188) 2024-06-28 20:46:09 +09:00
Yoshiya Hinosawa
fa48bea8a7
test(yaml): add test for block scalars (#5187) 2024-06-28 19:52:05 +09:00
Yoshiya Hinosawa
2ad437d04f
BREAKING(yaml): make Schema and Type private and stop supporting user-defined schemas (#5175)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-28 19:28:55 +09:00
Yoshiya Hinosawa
9bcec15d1e
refactor(yaml): simplify map initializations (#5183) 2024-06-28 15:07:04 +09:00
Yoshiya Hinosawa
23e55f72cb
fix(yaml): fix merge (<<) type handling in parse() (#5185) 2024-06-28 15:05:37 +09:00
Yoshiya Hinosawa
de998e7149
test(yaml): improve parse() testing (#5182) 2024-06-28 14:43:22 +09:00
Yoshiya Hinosawa
40522563ae
BREAKING(yaml): rename DumpOptions to StringifyOptions (#5171) 2024-06-27 19:04:00 +09:00
Asher Gomez
a7b4d899e9
BREAKING(yaml): remove iterator argument from parseAll() (#5148) 2024-06-27 20:03:12 +10:00
Asher Gomez
ef4231e90e
refactor(yaml): rename YAMLError to YamlError (#5149)
BREAKING(yaml): rename `YAMLError` to `YamlError`
2024-06-27 15:06:36 +09:00
denobot
04f23c8a0a
chore: release 2024.06.26 (#5152)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-26 19:12:11 +09:00
Yoshiya Hinosawa
9411d0957e
docs(yaml): improve yaml document (#5127)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-25 15:01:58 +09:00
Yoshiya Hinosawa
a4d4e51cfa
feat(yaml): support schema name for 'schema' option (#5118) 2024-06-25 10:17:26 +09:00
denobot
7d1d9cc34a
chore: release 2024.06.21 (#5107)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-21 19:15:49 +09:00
Madhav Ganesan
ab458a38fa
refactor(archive,expect,io,log,toml,yaml): remove private and public access modifiers (#5077)
* replaced public and private access modifiers #5066

* fix: run `deno fmt`

* fix: apply suggestions

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-21 14:13:08 +10:00
denobot
673c436739
chore: release 2024.05.29 (#4883)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-05-29 18:56:12 +09:00
Yoshiya Hinosawa
2a6e912ce2
test(yaml): test handling of omap (#4851) 2024-05-24 21:30:38 +09:00
Yoshiya Hinosawa
5d7cb3c010
test(yaml): test float handling (#4850) 2024-05-24 19:01:37 +09:00
Yoshiya Hinosawa
860cf0e18a
refactor(yaml): remove dead code (#4849) 2024-05-24 13:29:09 +09:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
Asher Gomez
3f9d4a8494
chore: simplify deprecation notice check (#4577) 2024-04-17 15:36:50 +09:00
Asher Gomez
7cef1d9f51
deprecation(yaml): cleanup schema exports (#4566) 2024-04-11 05:04:48 +10:00
Dan Hudlow
6be1650a32
fix(yaml): speciously restrictive type for stringify() (#4507)
* fix(yaml): speciously restrictive type for stringify()

* fmt

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-03-23 13:02:44 +11:00
Gabriele Belluardo
2990aa6de5
chore: enable single-var-declarator lint rule (#4488) 2024-03-14 22:18:00 +11:00
Gabriele Belluardo
de23a761cd
refactor(yaml): prepare for noUncheckedIndexedAccess (#4457)
* refactor(yaml): prepare for `noUncheckedIndexedAccess`

* fix: requested changes

* Update yaml/_dumper/dumper.ts

* Revert "Update yaml/_dumper/dumper.ts"

This reverts commit ec9bd21e10.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-03-11 17:09:26 +11:00
David Sherret
ef6b95f0c7
refactor: make the code work under verbatimModuleSyntax (#4406)
* Start

* Update

* Format

* Revert deno.json change

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-27 21:57:25 +00:00
David Luis
ad4abccb66
docs: replace markdown hyperlink syntax with {@link} tag where necessary. (#4253)
docs: replaces markdown hyperlink syntax with `{@link}` tag when necessary.
2024-02-01 09:19:46 +11:00
Asher Gomez
805b926032
fix: add --no-lock to spawned process args in tests (#4168) 2024-01-12 13:38:41 +09:00
Tim Reichen
01451f7c1d
refactor(yaml): format test names (#4061)
initial commit
2024-01-03 10:45:25 +11:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
David Sherret
ceb107f4ef
chore: add more explicit types (#4018)
* Add explicit types

* Format.

* Revert
2023-12-22 15:35:15 +11:00
David Sherret
b0803619af
refactor: add some missing explicit types (#3997)
* refactor: add some missing return types and mark some non-exported types as `@internal`

* Update expect/fn.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Remove @internals

* nits

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-19 00:26:13 +00:00
Asher Gomez
a8a133e3d2
refactor: remove top-level arrow sytnax use (#3687) 2023-10-11 16:19:48 +09:00
Yoshiya Hinosawa
f6ddd891fc
BREAKING(yaml): change binary handling (#3586) 2023-08-31 13:48:11 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals (#3566)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Jacob Avery
7a25a12797
fix(yaml): parse always return null when file is empty, whitespace or only comments (#3442) 2023-06-15 19:35:50 +09:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +09:00
Asher Gomez
85ef580622
BREAKING(yaml): move to top-level folder (#3251) 2023-03-14 16:40:02 +09:00