Commit Graph

253 Commits

Author SHA1 Message Date
Tim Reichen
abfa1a229a
refactor(yaml): inline readPlainScalar() (#5813)
initial commit
2024-08-26 09:13:15 +10: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
b91817f29d
refactor(yaml): move getDuplicateReferences() into stringify() (#5804) 2024-08-25 18:18:47 +10:00
Tim Reichen
7f5318d80d
refactor(yaml): inline writeFoldedLines() (#5812) 2024-08-25 18:17:55 +10:00
Tim Reichen
08f40794c9
refactor(yaml): remove Mark class (#5805)
initial commit
2024-08-25 13:54:48 +10:00
Tim Reichen
6a93c48903
refactor(yaml): inline testDocumentSeparator() (#5793)
initial commit
2024-08-25 13:39:03 +10:00
Tim Reichen
b87ff9c12c
refactor(yaml): remove any types (#5782)
* initial commit

* update

* update
2024-08-25 13:38:17 +10:00
Tim Reichen
c8fe63417a
refactor(yaml): remove schema property from DumperState (#5798) 2024-08-24 13:55:41 +09:00
Tim Reichen
23cefc3068
refactor(yaml): remove type mod file (#5795) 2024-08-24 13:52:09 +09:00
Tim Reichen
95d7b4385b
refactor(yaml): inline skipSeparationSpace() (#5792) 2024-08-23 06:22:02 +00:00
Tim Reichen
a81742a781
refactor(yaml): inline readLineBreak() (#5783) 2024-08-23 07:55:40 +10:00
Tim Reichen
f14f74b035
refactor(yaml): inline storeMappingPair() (#5779) 2024-08-23 07:47:49 +10:00
Tim Reichen
076acf5665
refactor(yaml): remove storeMappingPair() result null type (#5781)
initial commit

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-22 21:18:58 +00:00
Tim Reichen
60402c697f
test(yaml): add condenseFlow() test (#5780)
initial commit
2024-08-23 07:09:16 +10:00
Tim Reichen
bb0db58caa
refactor(yaml): inline mergeMappings() (#5777) 2024-08-22 23:01:34 +10:00
Tim Reichen
1d2d33ad1a
refactor(yaml): use Set in inspectNode() (#5778) 2024-08-22 22:11:25 +10:00
Tim Reichen
5e5827d59e
refactor(yaml): inline readBlockSequence() (#5776)
initial commit
2024-08-22 20:19:41 +10:00
Tim Reichen
310b1a35b2
refactor(yaml): inline captureSegment() (#5775) 2024-08-22 19:55:48 +10:00
Tim Reichen
0f84a54967
refactor(yaml): inline tagDirectiveHandler() (#5771)
initial commit
2024-08-22 18:29:51 +10:00
Tim Reichen
9bcab52637
refactor(yaml): cleanup stringifyFlowSequence() (#5744)
initial commit
2024-08-22 17:48:13 +10:00
Tim Reichen
ba1bc9164a
refactor(yaml): change styleMap type to Map (#5760)
* initial commit

* update
2024-08-22 12:46:32 +10:00
Tim Reichen
55a6b77e65
refactor(yaml): inline yamlDirectiveHandler() (#5763)
initial commit
2024-08-22 12:44:18 +10:00
Tim Reichen
349fb8f8f1
refactor(yaml): remove ResultType (#5765)
initial commit
2024-08-22 12:43:07 +10:00
Tim Reichen
0332f0ada8
refactor(yaml): remove ArrayObject (#5761) 2024-08-22 07:58:27 +10:00
Tim Reichen
1894abdb69
refactor(yaml): add BOM constant (#5764) 2024-08-22 07:56:05 +10:00
Tim Reichen
c05c91416e
refactor(yaml): move options to options object (#5740) 2024-08-21 16:00:08 +09:00
Tim Reichen
b8d31866a0
refactor(yaml): replace chooseScalarType() callback with implicitTypes argument (#5750)
initial commit
2024-08-21 10:14:19 +10:00
Tim Reichen
99200dcd90
refactor(yaml): remove variable underscore (#5741) 2024-08-20 18:32:45 +10:00
Tim Reichen
6c70fa9cb6
refactor(yaml): rename DumperState methods (#5738)
* initial commit

* update
2024-08-20 07:42:39 +00:00
Tim Reichen
701b6df3df
refactor(yaml): remove dump property (#5683)
* initial commit

* update
2024-08-20 17:13:19 +10:00
Tim Reichen
9ed80af65f
refactor(yaml): remove tag property (#5689)
* initial commit

* update

* tweak

* Update _dumper_state.ts

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

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-20 06:09:58 +00:00
Tim Reichen
8cb84965e4
refactor(yaml): cleanup Schema (#5715)
* initial commit

* update

* update

* update

* update

* update

* tweaks

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-20 14:32:08 +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
Tim Reichen
9a66879102
refactor(yaml): use Maps for TypeMap (#5694) 2024-08-19 13:06:43 +09:00
Tim Reichen
aa836f2d9b
refactor(yaml): add stringify() method to DumperState (#5707)
initial commit
2024-08-19 12:55:32 +09:00
Tim Reichen
1bc290b1ac
refactor(yaml): boolean constants (#5699) 2024-08-18 11:58:11 +09:00
Tim Reichen
ec52491b00
refactor(yaml): use Set for overridableKeys (#5697) 2024-08-17 16:46:02 +09:00
Tim Reichen
17c372f271
refactor(yaml): use Map for tagMap and anchorMap (#5696) 2024-08-17 16:41:08 +09:00
Tim Reichen
1ab4880823
refactor(yaml): redefine include as optional Schema (#5693) 2024-08-17 16:38:24 +09:00
Tim Reichen
010784cd03
refactor(yaml): remove schema property (#5692) 2024-08-16 19:17:58 +09:00
Tim Reichen
10691731ef
refactor(yaml): make version property required (#5691)
initial commit
2024-08-16 19:16:30 +09:00
denobot
f7f275bd3b
chore: release 2024.08.16 (#5687)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-16 15:33:08 +09:00
Tim Reichen
233f5fe24f
refactor(yaml): remove result property (#5684) 2024-08-16 12:51:41 +09:00
Tim Reichen
8e32dac73f
refactor(yaml): move exports to import file (#5651)
* initial commit

* remove state argument
2024-08-08 15:53:55 +02:00
denobot
fdadd531af
chore: release 2024.08.05 (#5632)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-06 00:08:58 +09:00
Tim Reichen
ddfeff9159
refactor(yaml): move functions to class methods (#5625)
initial commit
2024-08-05 08:37:55 +03:00
denobot
0e4f294cdf
chore: release 2024.08.02 (#5621)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-02 20:27:08 +09:00
Asher Gomez
606838bace
docs(fmt,fs,text,yaml): fix Markdown alerts (#5568) 2024-07-29 21:31:14 +10:00
Asher Gomez
9d572e086a
docs(yaml): correct core schema note (#5552) 2024-07-26 17:01:42 +09:00
Asher Gomez
8d78a51367
refactor(yaml): cleanup dead sexagesimal regexp code in float type (#5545) 2024-07-25 15:49:49 +09:00
Yoshiya Hinosawa
d53303f9c7
docs(yaml): document compatibility policy (#5542)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-25 15:48:11 +09:00
Asher Gomez
43e08a655d
refactor(yaml): remove deprecated sexagesimal functionality for integer types (#5539)
* refactor(yaml): remove deprecated sexagesimal functionality for integer types

* fix
2024-07-25 15:46:44 +09:00
Asher Gomez
42693da902
chore(yaml): release yaml@1.0.0 (#5264)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-25 14:38:18 +10: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
Asher Gomez
ff2f1f1946
refactor(yaml): cleanup dead code in float Type implementation (#5526) 2024-07-24 15:35:22 +09:00
Asher Gomez
e689f43eee
docs(yaml): document different schemas (#5531)
* docs(yaml): document different schemas

* work
2024-07-24 15:26:56 +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
d6dde6f0d1
test(yaml): check the use of reserved characters (#5519) 2024-07-23 15:12:20 +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
Yoshiya Hinosawa
c3ccd67cce
test(yaml): add check of merge of list of mapping (#5496) 2024-07-20 19:02:55 +09:00
denobot
3ee4c4dd43
chore: release 2024.07.19 (#5494)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-19 20:22:43 +09:00
Tim Reichen
d0b3079f9c
refactor(yaml): change object type from any to unknown in writeNode (#5404)
* initial commit

* update

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-18 04:49:09 +00:00
Yoshiya Hinosawa
02ba10a009
refactor(yaml): remove instanceOf field of Type (#5462) 2024-07-17 13:58:36 +09:00
Asher Gomez
8b8333f1fd
refactor(yaml): add KindType generic type argument to Type (#5461) 2024-07-17 14:30:32 +10:00
Asher Gomez
d708abee9a
refactor(yaml): improve Type.predicate behavior (#5460) 2024-07-17 14:16:33 +10:00
Asher Gomez
1be2726cce
refactor(yaml): remove Type.loadKind property (#5459) 2024-07-17 13:12:35 +09:00
Asher Gomez
dff594bb2a
BREAKING(yaml): replace YamlError with TypeError in stringify() (#5452) 2024-07-16 14:17:33 +02:00
Asher Gomez
07af28c275
refactor(yaml): remove dead code in Schema constructor (#5445) 2024-07-16 13:20:13 +02:00
Asher Gomez
997139d092
BREAKING(yaml): replace YamlError with SyntaxError in parse() (#5446) 2024-07-16 20:12:33 +10:00
Asher Gomez
13e23ab0e3
docs(yaml): list extended schema (#5444) 2024-07-16 14:32:25 +10:00
Asher Gomez
d50ba9bdf1
refactor(yaml): make Type.kind required (#5442) 2024-07-16 14:28:29 +10:00
denobot
f54eab4355
chore: release 2024.07.12 (#5431)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-12 19:45:19 +09:00
Tim Reichen
edacfa8688
refactor(yaml): fix onWarning arg type (#5395)
* initial commit

* update

* update
2024-07-12 10:02:52 +10:00
Tim Reichen
64b9d25d7f
refactor(yaml): rearrange constants and functions (#5411)
initial commit

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-12 09:59:03 +10:00
Tim Reichen
aa71c96689
refactor(yaml): remove passing this.dump as method param (#5413)
* initial commit

* update
2024-07-12 07:42:55 +10:00
Tim Reichen
9a322253dd
refactor(yaml): add writeNode options (#5409) 2024-07-11 19:30:37 +09:00
Tim Reichen
d3a3bcad6a
refactor(yaml): remove obsolete export from trimTrailingNewline() (#5412)
initial commit
2024-07-11 19:24:54 +10:00
Tim Reichen
4ca2e20eee
refactor(yaml): remove nested functions (#5389)
* initial commit

* adjust

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-11 19:24:15 +10:00
Tim Reichen
24c7dc39b7
refactor(yaml): make Type generic (#5394)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-11 17:20:57 +09:00
Tim Reichen
f40b9ef74c
refactor(yaml): replace indexOf() tests with includes() (#5390)
* initial commit

* update float and int

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-11 17:58:10 +10:00
Tim Reichen
8fa352260d
refactor(yaml): correct testAmbiguousType type (#5399)
initial commit
2024-07-11 10:27:41 +10:00
Tim Reichen
00831e1214
refactor(yaml): correct duplicate and usedDuplicates types (#5398)
initial commit
2024-07-11 10:18:17 +10:00
Tim Reichen
0db2aa0bae
refactor(yaml): correct sortKeys type (#5397)
initial commit
2024-07-11 10:17:05 +10:00
Tim Reichen
1841ba7732
refactor(yaml): replace keyNode any type (#5396)
initial commit
2024-07-11 10:16:10 +10:00
Tim Reichen
7e464c36a9
refactor(yaml): replace implicit any[] type with Type[] (#5393)
initial commit
2024-07-11 09:48:04 +10:00
Tim Reichen
9f259c19ca
refactor(yaml): replace any with unknown in ResultType constituents (#5392)
initial commit
2024-07-11 09:39:09 +10:00
Tim Reichen
29cd266e39
refactor(yaml): extract and rename regexp constant (#5391)
initial commit
2024-07-11 09:34:11 +10:00
Tim Reichen
56d7c43a01
refactor(yaml): move state functions inside class (#5388)
initial commit
2024-07-11 09:26:22 +10:00
Tim Reichen
301577a153
refactor(yaml): simplify foldLine() (#5386)
initial commit
2024-07-11 09:23:35 +10: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
Tim Reichen
dac34fc7d0
refactor(yaml): camelcase iskey (#5365) 2024-07-09 20:32:26 +10:00
Tim Reichen
9dafbfbcc4
refactor(yaml): remove Any type (#5306) 2024-07-09 18:22:53 +09:00
denobot
dc14633394
chore: release 2024.07.09 (#5363)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-09 15:13:21 +09:00