Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from denoland:main #182

Open
wants to merge 2,151 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
2151 commits
Select commit Hold shift + click to select a range
cc6e465
chore: Revert "refactor(csv): minor cleanups (#5158)" (#5163)
kt3k Jun 27, 2024
1b092bf
BREAKING(semver): remove deprecated `rangeMax()`, `rangeMin()` and `t…
iuioiua Jun 27, 2024
162e000
docs(csv): add module docs (#5157)
iuioiua Jun 27, 2024
5811712
test(semver): add `tryParse()` tests (#5161)
iuioiua Jun 27, 2024
ef4231e
refactor(yaml): rename `YAMLError` to `YamlError` (#5149)
iuioiua Jun 27, 2024
7bf534f
docs(csv): fix description of `ParseResult` (#5170)
kt3k Jun 27, 2024
f36ac2b
BREAKING(csv): make `ReadOptions` private (#5169)
kt3k Jun 27, 2024
410053b
chore(csv): release `[email protected]` (#5159)
iuioiua Jun 27, 2024
04b7229
BREAKING(semver): make invalid SemVer constants private (#5168)
kt3k Jun 27, 2024
aaf09a8
docs: cleanup README (#5174)
iuioiua Jun 27, 2024
a7b4d89
BREAKING(yaml): remove `iterator` argument from `parseAll()` (#5148)
iuioiua Jun 27, 2024
4052256
BREAKING(yaml): rename `DumpOptions` to `StringifyOptions` (#5171)
kt3k Jun 27, 2024
de998e7
test(yaml): improve `parse()` testing (#5182)
kt3k Jun 28, 2024
7af9f89
docs(semver): minor documentation cleanups (#5178)
iuioiua Jun 28, 2024
23e55f7
fix(yaml): fix merge (<<) type handling in `parse()` (#5185)
kt3k Jun 28, 2024
9bcec15
refactor(yaml): simplify map initializations (#5183)
kt3k Jun 28, 2024
dc3154c
BREAKING(csv): remove `csv` from module names (#5172)
iuioiua Jun 28, 2024
2ad437d
BREAKING(yaml): make `Schema` and `Type` private and stop supporting …
kt3k Jun 28, 2024
b83d026
BREAKING(semver): remove `SEMVER_SPEC_VERSION` (#5180)
iuioiua Jun 28, 2024
fa48bea
test(yaml): add test for block scalars (#5187)
kt3k Jun 28, 2024
c181c86
chore(semver): release `[email protected]` (#5181)
iuioiua Jun 28, 2024
26914ff
test(yaml): add misc `parse()` test cases (#5188)
kt3k Jun 28, 2024
05f25df
refactor(yaml): remove dead code (#5189)
kt3k Jun 29, 2024
48bff59
test(yaml): test anchor and alias handling of `parse()` (#5190)
kt3k Jun 29, 2024
965833b
refactor(yaml): remove unused `func` type (#5191)
kt3k Jun 29, 2024
9c543c9
fix(yaml): fix `!!pairs` parsing (#5192)
kt3k Jun 29, 2024
4619560
test(archive): fix typo in `tar_test.ts` (#5196)
familyboat Jun 30, 2024
5f2b0f5
chore: allow `lint:docs` task to resolve root modules (#5198)
iuioiua Jun 30, 2024
4d60267
chore(media-types): release `[email protected]` (#5197)
iuioiua Jun 30, 2024
d102a10
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structure…
iuioiua Jun 30, 2024
7e503c8
chore(encoding): release `[email protected]` (#4991)
iuioiua Jun 30, 2024
b18d1a0
chore(crypto): release `[email protected]` (#4990)
iuioiua Jun 30, 2024
6d58a57
fix(media-types): update `db.ts` (#5193)
iuioiua Jul 1, 2024
d6c3170
fix(testing): throw error eagerly when insufficient permissions are g…
bcheidemann Jul 1, 2024
76cf563
test(expect): improve `expect` test cases (#5221)
kt3k Jul 1, 2024
90025e9
test(expect): add test of `iterableEquality` (#5222)
kt3k Jul 1, 2024
c787328
BREAKING(yaml): remove `listener` option from `parse()` and `stringif…
iuioiua Jul 1, 2024
ef71997
refactor(yaml): consolidate `yaml/schema/*.ts` code into `yaml/_schem…
iuioiua Jul 1, 2024
9a4dfff
test(expect): test edge cases of matchers (#5226)
kt3k Jul 1, 2024
335e073
fix(expect): fix validation of nth param in `toHaveBeenNthCalledWith`…
kt3k Jul 1, 2024
19be4f8
BREAKING(yaml): remove `filename` option from `parse()` and `stringif…
iuioiua Jul 1, 2024
d753d4b
chore: release `[email protected]` (#5200)
kt3k Jul 1, 2024
442b018
test(yaml): test `stringify()` case when string encoded into hex sequ…
kt3k Jul 1, 2024
6e9c2e9
chore(expect): release `[email protected]` (#5235)
iuioiua Jul 1, 2024
b11514e
refactor(expect): remove `expect.addSnapshotSerializer(s)` (#5231)
iuioiua Jul 1, 2024
b15707d
refactor(yaml): simplify schema (#5236)
timreichen Jul 1, 2024
a889ffe
test(yaml): test `!!timestamp` type handling (#5237)
kt3k Jul 2, 2024
9e19c39
test(yaml): add test cases of handling ? mark in YAML (#5234)
kt3k Jul 2, 2024
c059a3d
BREAKING(json): remove `json` from module names (#5173)
iuioiua Jul 2, 2024
f1a71fc
chore(yaml): remove `example` folder (#5238)
iuioiua Jul 2, 2024
cadf85c
BREAKING(yaml): remove `ParseOptions.legacy` option (#5229)
iuioiua Jul 2, 2024
d983137
refactor(csv): minor cleanup (#5166)
iuioiua Jul 2, 2024
76113d6
BREAKING(expect): remove special handling of Immutable.js objects (#5…
kt3k Jul 2, 2024
5803cc9
BREAKING(assert): remove `assert` from module names (#5176)
iuioiua Jul 2, 2024
9c9ed80
test(yaml): add `parse()` test for duplicate keys (#5240)
iuioiua Jul 2, 2024
375e914
refactor(expect,testing): update `@std/assert` imports (#5242)
iuioiua Jul 2, 2024
730bc08
refactor(yaml): minor cleanups (#5239)
iuioiua Jul 2, 2024
532ab28
chore(yaml): release `[email protected]` (#5244)
iuioiua Jul 2, 2024
41385c0
test(yaml): check handling of binary type (#5245)
kt3k Jul 2, 2024
8420b13
refactor(yaml): remove `DirectiveHandler` type (#5247)
timreichen Jul 2, 2024
df26c6d
refactor(yaml): share char constants (#5246)
timreichen Jul 2, 2024
0629b71
refactor(yaml): add default options object (#5249)
timreichen Jul 2, 2024
832be24
refactor(yaml): remove inferred `Schema` type (#5252)
timreichen Jul 2, 2024
5c65c13
refactor(yaml): add `sanitizeInput()` function (#5248)
timreichen Jul 2, 2024
88716b8
refactor(yaml): replace chars and comments with constants (#5250)
timreichen Jul 2, 2024
dbe94e8
test(yaml): test handling of boolean values (#5251)
kt3k Jul 2, 2024
940568c
chore: release 2024.07.02 (#5254)
denobot Jul 2, 2024
6b26d41
test(yaml): add test of parsing !!int types (#5253)
kt3k Jul 2, 2024
db577fd
refactor(yaml): add default options object (#5261)
timreichen Jul 2, 2024
6f33e7f
refactor(yaml): merge `yaml/_loader/` files (#5259)
timreichen Jul 2, 2024
1a11b69
refactor(yaml): merge `yaml/_dumper/` files (#5260)
timreichen Jul 2, 2024
f78f2f2
fix(yaml): fix `!!int` style variation handling in `stringfiy` (#5256)
kt3k Jul 3, 2024
17837f4
refactor(yaml): make `readDocument()` and `readDocuments()` generator…
timreichen Jul 3, 2024
8a96290
chore(front-matter): release `[email protected]` (#5263)
iuioiua Jul 3, 2024
c9a4eff
test(assert): add "`assert()` throws if expr is falsy" test (#5267)
iuioiua Jul 3, 2024
735609e
test(crypto): test `timingSafeEqual()` in handling `DataView`s (#5268)
iuioiua Jul 3, 2024
b775a95
refactor(yaml): move loader and dumper files (#5270)
timreichen Jul 3, 2024
769cc02
refactor(yaml): remove `State` class (#5275)
timreichen Jul 3, 2024
ebf8eee
BREAKING(front-matter): remove `createExtractor()` (#5266)
iuioiua Jul 3, 2024
4f9959d
refactor(yaml): inline error functions as methods (#5273)
timreichen Jul 3, 2024
ba704da
refactor(yaml): simplify `sanitizeInput()` (#5274)
timreichen Jul 3, 2024
63233ce
refactor(yaml): simplify isWhiteSpaceOrEOL (#5271)
timreichen Jul 3, 2024
9127978
refactor(yaml): replace `Type` class with interface (#5262)
timreichen Jul 3, 2024
a78d874
refactor(yaml): add `peek()` and `next()` to `LoaderState` (#5276)
timreichen Jul 3, 2024
f1952ec
fix(bytes,cli,collections,expect): add missing non-null assertions (#…
iuioiua Jul 3, 2024
cdb6ee4
test(fmt): add test cases for `printf()` (#5278)
kt3k Jul 4, 2024
57c59d8
test(yaml): add test for `ParseOptions.json` option (#5283)
iuioiua Jul 4, 2024
0044324
refactor(yaml): remove first argument from `ParseOptions.onWarning` (…
iuioiua Jul 4, 2024
fc2975b
chore: temporarily disable canary (#5290)
iuioiua Jul 4, 2024
f3ca458
BREAKING(yaml): rename `ParseOptions.json` to `ParseOptions.allowDupl…
iuioiua Jul 4, 2024
789753d
BREAKING(yaml): rename `ParseOptions.noArrayIndent` to `ParseOptions.…
iuioiua Jul 4, 2024
5303767
BREAKING(yaml): rename `StringifyOptions.noCompatMode` to `StringifyO…
iuioiua Jul 4, 2024
442a497
fix(fmt): fix the case when mantissa exceeds 10 by rounding and expon…
kt3k Jul 4, 2024
10be0e3
chore: run test in Node.js (#5258)
kt3k Jul 4, 2024
484977f
chore: update `@std/encoding` version (#5293)
iuioiua Jul 4, 2024
ed1ab26
fix(yaml): fix `StringifyOptions.noRefs` (#5292)
kt3k Jul 4, 2024
99764a7
docs(assert): update `assertMatch` example (#5294)
kt3k Jul 4, 2024
29f5612
docs(assert): improve `assertNotStrictEquals` example (#5295)
kt3k Jul 4, 2024
73f236d
refactor(csv): throw errors immediately (#5299)
timreichen Jul 4, 2024
c58879e
refactor(csv): remove `runeCount()` function (#5298)
timreichen Jul 4, 2024
9df0930
refactor(yaml): move char check functions (#5300)
timreichen Jul 4, 2024
6a28a21
refactor(yaml): rename `throwWarning()` to `dispatchWarning()` (#5301)
timreichen Jul 4, 2024
9d5d887
refactor(yaml): remove repeat helper function (#5303)
timreichen Jul 4, 2024
ae95651
test(csv): add grapheme length test (#5304)
timreichen Jul 4, 2024
ee46006
docs(assert): improve `assertObjectMatch` docs (#5296)
kt3k Jul 4, 2024
ca0a374
refactor(yaml): add `readIndent()` method (#5302)
timreichen Jul 4, 2024
a8d22d2
refactor(yaml): simplify `encodeHex()` (#5305)
timreichen Jul 4, 2024
e052dcb
refactor(csv): rename arguments, variables and loop (#5297)
timreichen Jul 4, 2024
81943c3
chore(assert): release `[email protected]` (#4989)
iuioiua Jul 4, 2024
fe2dd55
refactor(yaml): cleanup `inspectNode()` (#5311)
timreichen Jul 4, 2024
7c01382
refactor(yaml): replace `usedDuplicates()` array with `Set` (#5312)
timreichen Jul 4, 2024
a92e1b6
fix(expect): make `.not` aware of whether is it is in async context (…
lowlighter Jul 4, 2024
f0057a8
refactor(yaml): rename util functions (#5310)
timreichen Jul 4, 2024
53bc5fa
refactor(yaml): cleanup `mergeMappings()` (#5314)
timreichen Jul 4, 2024
59f5708
BREAKING(yaml): remove style aliases of `!!int` type (#5307)
kt3k Jul 5, 2024
dcdd5ea
BREAKING(path): remove `GlobToRegExpOptions` (#5320)
iuioiua Jul 5, 2024
edc649b
refactor(yaml): cleanup `detectType()` (#5313)
timreichen Jul 5, 2024
fcc59f2
BREAKING(path): remove `FormatInputPathObject` (#5321)
iuioiua Jul 5, 2024
6d16b81
chore: fix workspace dependency specifiers (#5322)
kt3k Jul 5, 2024
b927e8c
BREAKING(yaml): rename `StringifyOptions.noRefs` to `StringifyOptions…
iuioiua Jul 5, 2024
44a54df
refactor(yaml): remove obsolete static `Schema.SCHEMA_DEFAULT` proper…
iuioiua Jul 5, 2024
25aa6fa
fix(front-matter): improve `extract` types (#5325)
kt3k Jul 5, 2024
8f92a03
docs(yaml): improve documentation (#5324)
iuioiua Jul 6, 2024
5cccc4b
refactor(yaml): move `getObjectTypeString()` (#5332)
timreichen Jul 6, 2024
a578761
BREAKING(front-matter): make `Extractor` helper type private (#5334)
kt3k Jul 6, 2024
ce0c1e2
refactor(toml): rename functions to camel case (#5339)
timreichen Jul 7, 2024
424a113
refactor(yaml): simplify and rename `dropEndingNewline()` (#5336)
timreichen Jul 7, 2024
b6906a9
refactor(yaml): simplify `YamlError` (#5328)
iuioiua Jul 7, 2024
f222d80
fix(fs): accept `exts` without leading period in `walk[Sync]()` (#5345)
iuioiua Jul 8, 2024
893c7cf
refactor(toml): remove `Patterns` object (#5343)
timreichen Jul 8, 2024
a178f6a
refactor(yaml): cleanup dead code in `Mark` class (#5327)
iuioiua Jul 8, 2024
ab0dd78
refactor(toml): remove Utils object (#5342)
timreichen Jul 8, 2024
1a637a7
perf(encoding): fix loop times in `encodeHex()` (#5344)
zsokami Jul 8, 2024
01587e3
test(yaml): test block scalar output of stringify (#5341)
kt3k Jul 8, 2024
a0b4103
chore(net): mark `getNetworkAddress()` unstable (#5348)
kt3k Jul 8, 2024
1ff4af8
test(yaml): add test cases of stringify (#5350)
kt3k Jul 8, 2024
0d668fa
fix(testing): escape CR in snapshot files (#5352)
kt3k Jul 8, 2024
6eeddb3
fix(testing): cause type error for async function as describe body (#…
kt3k Jul 9, 2024
be9eb72
test(yaml): test parsing of single quoted scalars (#5356)
kt3k Jul 9, 2024
e710e61
BREAKING(ini): make `IniMap` private (#5351)
kt3k Jul 9, 2024
02a0785
docs(ini): link options interfaces to functions that use them (#5359)
iuioiua Jul 9, 2024
b9df975
chore(ini): release `[email protected]` (#5357)
kt3k Jul 9, 2024
9498a40
fix(http): allow deleting cookie with `secure`, `httpOnly` and `parti…
kt3k Jul 9, 2024
dc14633
chore: release 2024.07.09 (#5363)
denobot Jul 9, 2024
1f26aa5
chore: update dependency graph (#5362)
iuioiua Jul 9, 2024
9dafbfb
refactor(yaml): remove `Any` type (#5306)
timreichen Jul 9, 2024
996931a
refactor(toml): improve early returns (#5338)
timreichen Jul 9, 2024
dac34fc
refactor(yaml): camelcase `iskey` (#5365)
timreichen Jul 9, 2024
eed1194
docs(net): make `getNetworkAddress()` unstable status more prominent …
iuioiua Jul 9, 2024
e13bca6
docs(net): update docs for `getAvailablePort()` (#5366)
iuioiua Jul 9, 2024
474d6f3
chore(net): release `[email protected]` (#5349)
kt3k Jul 9, 2024
094d184
BREAKING(front-matter): remove `unknown` from `Format` union type (#5…
timreichen Jul 9, 2024
7bd1f18
BREAKING(toml): throw `SyntaxError` in `parse()` instead of `TOMLPars…
iuioiua Jul 9, 2024
f20b580
chore(path): release `[email protected]` (#5203)
iuioiua Jul 10, 2024
74388ac
chore(toml): release `[email protected]` (#5204)
iuioiua Jul 10, 2024
0a8a338
chore(html): release `[email protected]` (#4988)
iuioiua Jul 10, 2024
d32a8c9
BREAKING(fmt): remove `stripColor` (#5374)
iuioiua Jul 10, 2024
2308f82
chore(fmt): release `[email protected]` (#5372)
iuioiua Jul 10, 2024
acdea7c
docs(fmt): improve documentation (#5373)
iuioiua Jul 10, 2024
aa06ae3
BREAKING(http): rename `Entity` to `ETagSource` and `calculate()` to …
iuioiua Jul 10, 2024
c356e39
chore: fix path version range in import map (#5377)
kt3k Jul 10, 2024
adcfb5f
refactor(front-matter): replace regexp objects with maps (#5379)
timreichen Jul 10, 2024
41be714
BREAKING(csv): throw `TypeError` in `stringify()` instead of `Stringi…
iuioiua Jul 10, 2024
d134a2d
docs(front-matter): fix description of `Extract` (#5383)
kt3k Jul 10, 2024
fd9286e
fix(streams): toText() incorrect with multibyte strings in different …
leonco Jul 10, 2024
3209065
chore: check import map range specifier (#5380)
kt3k Jul 10, 2024
e4bf43f
refactor(yaml): simplify `indentString()` (#5335)
timreichen Jul 10, 2024
301577a
refactor(yaml): simplify `foldLine()` (#5386)
timreichen Jul 10, 2024
56d7c43
refactor(yaml): move state functions inside class (#5388)
timreichen Jul 10, 2024
29cd266
refactor(yaml): extract and rename regexp constant (#5391)
timreichen Jul 10, 2024
9f259c1
refactor(yaml): replace `any` with `unknown` in `ResultType` constitu…
timreichen Jul 10, 2024
7e464c3
refactor(yaml): replace `implicit` `any[]` type with `Type[]` (#5393)
timreichen Jul 10, 2024
1841ba7
refactor(yaml): replace `keyNode` any type (#5396)
timreichen Jul 11, 2024
0db2aa0
refactor(yaml): correct `sortKeys` type (#5397)
timreichen Jul 11, 2024
00831e1
refactor(yaml): correct `duplicate` and `usedDuplicates` types (#5398)
timreichen Jul 11, 2024
26d6d2b
chore: use new format for workspaces and re-enable using Deno canary …
kt3k Jul 11, 2024
8fa3522
refactor(yaml): correct `testAmbiguousType` type (#5399)
timreichen Jul 11, 2024
faa633b
fix(testing): throw error when async func is passed to describe (#5385)
kt3k Jul 11, 2024
a32c05f
refactor(front-matter): remove `createExtractor()` (#5378)
timreichen Jul 11, 2024
10bcb95
test(log): cleaunp `TextDecoder` use (#5407)
iuioiua Jul 11, 2024
f40b9ef
refactor(yaml): replace `indexOf()` tests with `includes()` (#5390)
timreichen Jul 11, 2024
24c7dc3
refactor(yaml): make `Type` generic (#5394)
timreichen Jul 11, 2024
ad1dad6
docs(cli,csv,datetime,fmt,fs,http,ini,semver,testing): assert optiona…
iuioiua Jul 11, 2024
4ca2e20
refactor(yaml): remove nested functions (#5389)
timreichen Jul 11, 2024
d3a3bca
refactor(yaml): remove obsolete export from `trimTrailingNewline()` (…
timreichen Jul 11, 2024
e29f946
test(testing): fix flakiness of snapshot test (#5414)
kt3k Jul 11, 2024
9a32225
refactor(yaml): add writeNode options (#5409)
timreichen Jul 11, 2024
aa71c96
refactor(yaml): remove passing `this.dump` as method param (#5413)
timreichen Jul 11, 2024
ef28e13
chore: temporarily disable v1.x in CI (#5418)
iuioiua Jul 11, 2024
64b9d25
refactor(yaml): rearrange constants and functions (#5411)
timreichen Jul 11, 2024
edacfa8
refactor(yaml): fix `onWarning` arg type (#5395)
timreichen Jul 12, 2024
89ca4ad
refactor(collections): inline `randomInteger` utility function (#5415)
timreichen Jul 12, 2024
96971db
chore(msgpack): release `[email protected]` (#5210)
iuioiua Jul 12, 2024
492b01b
docs(data-structures): get all `@link` nodes working (#5422)
magurotuna Jul 12, 2024
22d3bda
chore(data-structures): release `[email protected]` (#5205)
iuioiua Jul 12, 2024
369901d
fix(async): improve debounce node.js compatibility (#5419)
notomo Jul 12, 2024
1b53ea7
docs(text): refine documents in text module (#5425)
magurotuna Jul 12, 2024
c6af0c6
refactor(csv): rename `graphemeLength` to `codePointLength` (#5421)
lionel-rowe Jul 12, 2024
94fff63
chore: re-enable CI with CLI v1 (#5430)
kt3k Jul 12, 2024
0f4ff71
feat(ulid): add single-export endpoints (#5426)
kt3k Jul 12, 2024
7e2746b
chore: check import map in lint task (#5429)
kt3k Jul 12, 2024
63128c5
docs(regexp): import `escape` from most specific place in examples (#…
magurotuna Jul 12, 2024
16f9d35
chore(regexp): release `[email protected]` (#5207)
iuioiua Jul 12, 2024
f54eab4
chore: release 2024.07.12 (#5431)
denobot Jul 12, 2024
010784a
chore(ulid): release `[email protected]` (#5206)
iuioiua Jul 14, 2024
31f15d6
docs(jsonc): remove docs for removed `options` parameter (#5438)
nikeee Jul 14, 2024
8f01114
chore: fix `workspace` field for browser-compat config (#5441)
iuioiua Jul 15, 2024
df388b1
fix(ulid): fix decode-time export path (#5432)
kt3k Jul 15, 2024
6391292
BREAKING(text): align to single-export file pattern (#5428)
kt3k Jul 16, 2024
83fe1f7
fix(expect): improve `expect` type to make it work better with `expec…
lowlighter Jul 16, 2024
e68eaf7
chore: document how to find changed API (#5435)
iuioiua Jul 16, 2024
d50ba9b
refactor(yaml): make `Type.kind` required (#5442)
iuioiua Jul 16, 2024
13e23ab
docs(yaml): list `extended` schema (#5444)
iuioiua Jul 16, 2024
edd21d5
BREAKING(csv): remove `ParseError` (#5405)
timreichen Jul 16, 2024
997139d
BREAKING(yaml): replace `YamlError` with `SyntaxError` in `parse()` (…
iuioiua Jul 16, 2024
07af28c
refactor(yaml): remove dead code in `Schema` constructor (#5445)
iuioiua Jul 16, 2024
dff594b
BREAKING(yaml): replace `YamlError` with `TypeError` in `stringify()`…
iuioiua Jul 16, 2024
38dbb1a
feat(text): add ability for user to control word comparison function …
iuioiua Jul 16, 2024
317a0d8
docs(cli): documentation tweaks (#5458)
iuioiua Jul 17, 2024
1be2726
refactor(yaml): remove `Type.loadKind` property (#5459)
iuioiua Jul 17, 2024
d708abe
refactor(yaml): improve `Type.predicate` behavior (#5460)
iuioiua Jul 17, 2024
8b8333f
refactor(yaml): add `KindType` generic type argument to `Type` (#5461)
iuioiua Jul 17, 2024
02ba10a
refactor(yaml): remove `instanceOf` field of `Type` (#5462)
kt3k Jul 17, 2024
c699899
chore(text): release `[email protected]` (#5209)
iuioiua Jul 17, 2024
3af2ed3
chore: update repo names (#5466)
kt3k Jul 17, 2024
c26db22
docs(net): tweak `getNetworkAddress()` return doc (#5473)
iuioiua Jul 18, 2024
7d169f5
chore: answer versioning questions in FAQ (#5469)
iuioiua Jul 18, 2024
13d587f
chore: allow `scope/unstable` notation in commit title (#5474)
kt3k Jul 18, 2024
d0b3079
refactor(yaml): change `object` type from `any` to `unknown` in `wri…
timreichen Jul 18, 2024
8023016
refactor(collections): use `Set.prototype.intersection()` method in `…
timreichen Jul 18, 2024
702f048
BREAKING(semver): replace `prerelease` and `buildmetadata` arguments …
iuioiua Jul 18, 2024
030941b
docs(text): state complexity of `levenshteinDistance()` (#5472)
iuioiua Jul 18, 2024
db9d4ec
fix(path): support use in dnt (#5478)
kt3k Jul 18, 2024
fd3e286
fix(media-types): return `video/mp4` for `.mp4` extension (#5475)
kt3k Jul 18, 2024
350544e
docs(streams): address documentation issues (#5480)
iuioiua Jul 18, 2024
80fc3ff
chore(async): release `[email protected]` (#5211)
iuioiua Jul 19, 2024
649757b
chore(streams): release `[email protected]` (#5213)
iuioiua Jul 19, 2024
e6c05c6
chore(cli): release `[email protected]` (#5212)
iuioiua Jul 19, 2024
2759686
BREAKING(dotenv): remove `examplePath` option from `load[Sync]()` (#5…
iuioiua Jul 19, 2024
0cf0431
docs(http): improve unstable API notices (#5483)
iuioiua Jul 19, 2024
00645f0
chore: document how to document unstable APIs (#5484)
iuioiua Jul 19, 2024
a6b1633
docs(cli): improve unstable API notices (#5482)
iuioiua Jul 19, 2024
81e49f6
chore: remove requirement for `@example`s in constructors (#5485)
iuioiua Jul 19, 2024
ff60cef
BREAKING(dotenv): remove `defaultPath` option from `load[Sync]()` (#5…
iuioiua Jul 19, 2024
96c1534
docs(cli): fix options arguments display (#5486)
iuioiua Jul 19, 2024
c710c93
docs(fs): fix options argument display (#5487)
iuioiua Jul 19, 2024
e0c493e
docs(http): fix options argument display (#5489)
iuioiua Jul 19, 2024
645f26f
docs(json): fix options argument display (#5490)
iuioiua Jul 19, 2024
4e46b76
docs(http): fix options argument display (#5488)
iuioiua Jul 19, 2024
e07c32f
docs(fs): fix options argument display (#5491)
iuioiua Jul 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(yaml): remove State class (denoland#5275)
initial commit
  • Loading branch information
timreichen committed Jul 3, 2024
commit 769cc02d7199e766a20036b9c6136dfa0fbd7c7e
10 changes: 5 additions & 5 deletions yaml/_dumper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import {
VERTICAL_LINE,
} from "./_chars.ts";
import { YamlError } from "./_error.ts";
import type { Schema } from "./_schema.ts";
import { State } from "./_state.ts";
import { DEFAULT_SCHEMA, type Schema } from "./_schema.ts";
import type { RepresentFn, StyleVariant, Type } from "./_type.ts";
import * as common from "./_utils.ts";

Expand Down Expand Up @@ -146,7 +145,8 @@ export interface DumperStateOptions {
condenseFlow?: boolean;
}

export class DumperState extends State {
export class DumperState {
schema: Schema;
indent: number;
noArrayIndent: boolean;
skipInvalid: boolean;
Expand All @@ -166,7 +166,7 @@ export class DumperState extends State {
dump: Any;

constructor({
schema,
schema = DEFAULT_SCHEMA,
indent = 2,
noArrayIndent = false,
skipInvalid = false,
Expand All @@ -178,7 +178,7 @@ export class DumperState extends State {
noCompatMode = false,
condenseFlow = false,
}: DumperStateOptions) {
super(schema);
this.schema = schema;
this.indent = Math.max(1, indent);
this.noArrayIndent = noArrayIndent;
this.skipInvalid = skipInvalid;
Expand Down
10 changes: 5 additions & 5 deletions yaml/_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ import {
} from "./_chars.ts";
import { YamlError } from "./_error.ts";
import { Mark } from "./_mark.ts";
import type { Schema, TypeMap } from "./_schema.ts";
import { State } from "./_state.ts";
import { DEFAULT_SCHEMA, type Schema, type TypeMap } from "./_schema.ts";
import type { Type } from "./_type.ts";
import * as common from "./_utils.ts";

Expand Down Expand Up @@ -72,7 +71,8 @@ interface LoaderStateOptions {
// deno-lint-ignore no-explicit-any
type ResultType = any[] | Record<string, any> | string;

class LoaderState extends State {
class LoaderState {
schema: Schema;
input: string;
length: number;
lineIndent = 0;
Expand All @@ -96,12 +96,12 @@ class LoaderState extends State {
constructor(
input: string,
{
schema,
schema = DEFAULT_SCHEMA,
onWarning,
json = false,
}: LoaderStateOptions,
) {
super(schema);
this.schema = schema;
this.input = input;
this.onWarning = onWarning;
this.json = json;
Expand Down
13 changes: 0 additions & 13 deletions yaml/_state.ts

This file was deleted.