Commit Graph

49 Commits

Author SHA1 Message Date
Tim Reichen
6c684b8bc8
fix(yaml): handle string instances (#5897)
initial commit
2024-09-04 09:28:55 +10:00
Tim Reichen
890958ca48
fix(yaml): handle Boolean instances correctly (#5894) 2024-09-03 20:15:31 +09:00
Tim Reichen
538be90fe0
fix(yaml): handle integer number instances (#5895)
* initial commit

* update
2024-09-03 18:54:48 +10:00
Tim Reichen
25de700ed5
fix(yaml): handle float number instances (#5896)
initial commit
2024-09-03 18:50:34 +10:00
Tim Reichen
d01e301921
fix(yaml): fix sortKey error message (#5873)
initial commit
2024-09-03 14:52:38 +10:00
Tim Reichen
23f47386ea
test(yaml): add invalid represent type test (#5874)
* initial commit

* update
2024-09-02 17:46:17 +10:00
Tim Reichen
d279c0a49a
test(yaml): add int type tests (#5868)
initial commit
2024-08-30 10:02:13 +10:00
Tim Reichen
3dbccc5a84
refactor(yaml): change error message in stringifyNode() (#5839) 2024-08-27 18:40:03 +10:00
Tim Reichen
eeaada9c18
test(yaml): add duplicate binary references test (#5837) 2024-08-27 18:26:08 +10:00
Ian Bull
64d80042b1
refactor(yaml): align additional error messages (#5806)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-27 14:03:26 +09:00
Tim Reichen
95ad45b118
test(yaml): add undefined array entry with skipInvalid and flowLevel options test (#5828)
initial commit
2024-08-27 09:27:21 +10:00
Tim Reichen
78bb214da3
test(yaml): add duplicate array reference test (#5825)
initial commit
2024-08-27 09:22:54 +10:00
Tim Reichen
3946983d7c
test(yaml): add undefined object entry with skipInvalid and flowLevel option test (#5829) 2024-08-26 18:56:26 +09:00
Tim Reichen
b2129ee4cf
test(yaml): add undefined array entry test with skipInvalid option (#5814)
initial commit
2024-08-26 09:09:53 +10:00
Tim Reichen
60402c697f
test(yaml): add condenseFlow() test (#5780)
initial commit
2024-08-23 07:09:16 +10:00
Tim Reichen
b929d05156
test(yaml): add test for deprecated boolean syntax (#5713)
* initial commit

* Update yaml/stringify_test.ts

* Update yaml/stringify_test.ts

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-20 09:38:22 +10:00
Tim Reichen
36817b7985
test(yaml): add edge case test for stringify (#5704) 2024-08-19 13:24:21 +09:00
Yoshiya Hinosawa
3cc0091c2a
test(yaml): test arrayIndent = false option (#5521)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-24 18:49:38 +09:00
Asher Gomez
35e0c96410
test(yaml): improve test coverage for sequence type (#5536) 2024-07-24 07:44:06 +00:00
Asher Gomez
41961d4fea
test(yaml): improve test coverage for mapping type (#5535)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-24 07:32:17 +00:00
Asher Gomez
150603ed41
test(yaml): improve test coverage for string type (#5534) 2024-07-24 16:26:01 +09:00
Yoshiya Hinosawa
9679f73132
test(yaml): test sortKeys option behavior (#5523) 2024-07-24 15:51:12 +09:00
Yoshiya Hinosawa
c2ae25f45b
test(yaml): check lineWidth option behavior (#5524) 2024-07-24 15:25:08 +09:00
Asher Gomez
044fc27f59
test(yaml): improve coverage for nil Type (#5525)
tests(yaml): improve coverage for nil `Type`
2024-07-23 22:40:34 +09:00
Yoshiya Hinosawa
7ccb08621a
test(yaml): check stringify behavior when skipInvalid specified (#5522) 2024-07-23 15:11:52 +09:00
Yoshiya Hinosawa
74f9b14132
test(yaml): test indent option of stringify (#5520) 2024-07-23 15:10:55 +09:00
Asher Gomez
dff594bb2a
BREAKING(yaml): replace YamlError with TypeError in stringify() (#5452) 2024-07-16 14:17:33 +02:00
Tim Reichen
e4bf43f04b
refactor(yaml): simplify indentString() (#5335)
* initial commit

* add tests

* make tests use stringify
2024-07-11 09:20:53 +10:00
Yoshiya Hinosawa
1ff4af8a32
test(yaml): add test cases of stringify (#5350) 2024-07-08 19:31:02 +09:00
Yoshiya Hinosawa
01587e3409
test(yaml): test block scalar output of stringify (#5341) 2024-07-08 12:39:31 +09:00
Asher Gomez
b927e8c074
BREAKING(yaml): rename StringifyOptions.noRefs to StringifyOptions.useAnchors (#5288) 2024-07-05 15:24:13 +10:00
Yoshiya Hinosawa
59f5708e98
BREAKING(yaml): remove style aliases of !!int type (#5307) 2024-07-05 11:02:39 +09:00
Yoshiya Hinosawa
ed1ab2684a
fix(yaml): fix StringifyOptions.noRefs (#5292) 2024-07-04 14:56:40 +09:00
Yoshiya Hinosawa
f78f2f2cda
fix(yaml): fix !!int style variation handling in stringfiy (#5256) 2024-07-03 12:55:38 +09:00
Yoshiya Hinosawa
dbe94e83d5
test(yaml): test handling of boolean values (#5251) 2024-07-02 19:49:10 +09:00
Yoshiya Hinosawa
41385c003b
test(yaml): check handling of binary type (#5245) 2024-07-02 18:26:23 +09:00
Yoshiya Hinosawa
a889ffeb5d
test(yaml): test !!timestamp type handling (#5237) 2024-07-02 10:48:22 +09:00
Yoshiya Hinosawa
442b0180a5
test(yaml): test stringify() case when string encoded into hex sequences (#5230) 2024-07-01 19:35:59 +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
Asher Gomez
ef4231e90e
refactor(yaml): rename YAMLError to YamlError (#5149)
BREAKING(yaml): rename `YAMLError` to `YamlError`
2024-06-27 15:06:36 +09:00
Yoshiya Hinosawa
a4d4e51cfa
feat(yaml): support schema name for 'schema' option (#5118) 2024-06-25 10:17:26 +09:00
Yoshiya Hinosawa
5d7cb3c010
test(yaml): test float handling (#4850) 2024-05-24 19:01:37 +09:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09: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
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
Yoshiya Hinosawa
f6ddd891fc
BREAKING(yaml): change binary handling (#3586) 2023-08-31 13:48:11 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Asher Gomez
85ef580622
BREAKING(yaml): move to top-level folder (#3251) 2023-03-14 16:40:02 +09:00