Commit Graph

4516 Commits

Author SHA1 Message Date
Asher Gomez
d682c6be20
fix(http): handle wrong request method correctly (#5643)
* fix(http): handle incorrect method

* fix
2024-08-07 21:35:30 +09:00
Asher Gomez
e8aa4dfa4c
feat(http/unstable): route module (#5644)
* feat(http): `http/router`

* work

* work

* fix

* work

* fix

* clean

* add unstable notices

* fix

* work

* work

* work

* work

* fix

* fix

* fix

* work
2024-08-07 14:35:13 +02:00
Asher Gomez
4432ba1c1b
fix(archive): make data property private in Tar (#5645) 2024-08-07 18:20:29 +09:00
Doctor
77345498a2
feat(streams/unstable): FixedChunkStream (#4995)
* feat(streams): new ResizeStreams(size)

* chore(streams): Renamed ResizeStream to FixedChunkStream

* Update streams/fixed_chunk_stream_test.ts

* update

* tweaks

* tweak test

* fix(streams): chunks getting lost if size was equally divisible by `size`

* work

* work

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-07 10:34:54 +02:00
Asher Gomez
5e2d065e08
fix(archive): make block and reader properties in Untar private (#5637)
* fix(archive): make `block` and `reader` properties in `Untar` private

* fix
2024-08-06 14:52:37 +00:00
Tim Reichen
0dae9cec16
refactor(datetime): remove Tokenizer class (#5622)
* initial commit

* update

* update

* update types

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-06 16:39:38 +02:00
Asher Gomez
d99e1f8a57
refactor(http): use headers module in file-server module (#5642) 2024-08-06 15:40:47 +02:00
Asher Gomez
889a63de2e
docs(archive): mark public APIs as unstable/experimental (#5639)
* BREAKING(archive): remove `TarEntry.#header`

* docs(archive): mark public APIs as unstable/experimental
2024-08-06 12:41:59 +00:00
Asher Gomez
067255763c
docs: remove "Status" column from "Packages" table (#5641) 2024-08-06 12:39:03 +00:00
Asher Gomez
d32deb73dd
BREAKING(archive): remove TarEntry.#header (#5638) 2024-08-06 21:37:22 +09:00
Yoshiya Hinosawa
f7e3cd588b
chore: update release note for std/url@0.225.0 (#5634)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-06 18:36:39 +09:00
Halvard Mørstad
259ce6dfd2
feat(http/unstable): headers module (#4317)
* Added IANA headers

* Apply suggestions from code review

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

* Cleaned up and added jsr support

* Fixed linting

* unstable notices

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-06 09:29:53 +00:00
Halvard Mørstad
a9f3558b85
feat(http/unstable): methods module (#4320)
* Added methods to http namespace

* Renamed type and const

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

* Cleaned up methods and added support for jsr

* Fixed linting

* unstable notices

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-06 09:24:45 +00:00
Asher Gomez
7a8b51f723
fix(csv,streams): use string arrays in ReadableStream.from() in docs and tests (#5635)
* tests(csv,streams): use string arrays in `ReadableStream.from()`

* fix
2024-08-06 02:21:57 -07: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
Asher Gomez
4f29e70319
chore(url): release url@0.225.0 (#5631) 2024-08-05 17:01:46 +02:00
Yoshiya Hinosawa
89c642d808
chore: add random scope in title ci check (#5629) 2024-08-05 17:36:55 +09:00
Asher Gomez
ddd853d230
refactor(cli): minor cleanups (#5628)
* refactor(cli): minor cleanups

* fix
2024-08-05 17:36:31 +09:00
Tim Reichen
ddfeff9159
refactor(yaml): move functions to class methods (#5625)
initial commit
2024-08-05 08:37:55 +03:00
Mateusz Russak
ed19729127
fix(async): abortable should not change original outputs (#5609)
* fix(async): abortable should not change original outputs

* fix: according to code review

* revert

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-05 05:31:35 +00:00
Asher Gomez
82e50a91fd
chore(csv): release csv@1.0.0 (#5219)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-05 05:28:43 +00:00
Tim Reichen
da1130ab51
refactor(cli): isNumber() (#5607) 2024-08-05 12:39:46 +09:00
Tim Reichen
9d8789384f
docs(semver): remove diagram line overlaps (#5624) 2024-08-03 15:25:51 +09:00
Yoshiya Hinosawa
fab93bb71d
chore: fix workspace publish workflow (#5623) 2024-08-02 20:38:18 +09: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
d205617740
feat(ini): add type param for value type (#5588) 2024-08-02 19:19:02 +10:00
Yusuke Tanaka
2accb2b1b8
docs(csv): more examples for stringify and CsvStringifyStream (#5606) 2024-08-02 00:07:53 -07:00
Asher Gomez
12d6097289
refactor(cli): use non-null assertion in parseArgs() logic (#5618) 2024-08-02 05:34:53 +00:00
Yusuke Tanaka
8b21698495
fix(csv): remove undefined from possible value type of parse result (#5617)
As we discussed in
https://github.com/denoland/std/pull/5605#discussion_r1701028684, it seems like
we never get `undefined` as a parse result of fields. If there is a mismatch in
the number of fields across rows, the parse just throws an error. To better
reflect this in typing, this commit removes `undefined` from the record value
type.
2024-08-01 22:07:10 -07:00
Yusuke Tanaka
b0f2088044
docs(csv): more examples for parse and CsvParseStream (#5605)
This commit adds more examples to `parse` function and `CsvParseStream` class to
cover all the provided options.

Also fixes a few other things:

- Replace stale description `ParseError` with the correct `SyntaxError`.
- Fix the default value of `comment` property. The old comment says the default
  value is `#`, but this was wrong.
- Get negative value in `fieldsPerRecord` option working in `parse` as
  documented

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-01 21:24:15 -07:00
Yoshiya Hinosawa
dd80d82961
docs(csv): clarify CsvParseStream description (#5613) 2024-08-02 13:07:15 +09:00
Asher Gomez
cd0bc9f2e1
test(async): improve test speed of async/pool_test.ts (#5611)
* test(async): improve test speed of `async/pool_test.ts`

* fix
2024-08-02 12:32:55 +09:00
Asher Gomez
69a579ecca
fix(ini): correctly handle quoted values in parse() (#5592) 2024-08-02 11:53:41 +09:00
Asher Gomez
3f133951f6
deprecation(url): deprecate @std/url (#5530)
chore(url): deprecate `@std/url`
2024-08-02 12:53:11 +10:00
Tim Reichen
8648c6d7f4
refactor(cli): simplify argv and notFlags push (#5608)
initial commit

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-02 12:43:11 +10:00
Tim Reichen
0d30f029e5
chore(cli): simplify parseArgs() logic (#5601)
initial commit
2024-08-02 10:30:25 +10:00
Tim Reichen
f600976152
chore(cli): simplify setNested() and hasNested() (#5599)
initial commit
2024-08-02 10:17:09 +10:00
Tim Reichen
70f882a28f
chore(datetime): remove console log (#5610) 2024-08-02 07:40:37 +10:00
Yusuke Tanaka
89770fc76a
fix(csv): show 1-based line and column numbers in error messages (#5604) 2024-08-01 08:07:52 -07:00
Tim Reichen
b5181c1b6a
refactor(cli): remove broken variable in favour of loop label (#5602)
initial commit
2024-08-01 11:25:09 +00:00
Tim Reichen
36d0b75b92
refactor(cli): use for of instead of for in loop (#5598)
initial commit
2024-08-01 21:16:17 +10:00
Yusuke Tanaka
b85d219148
feat(csv): support fieldsPerRecord in CsvParseStream (#5600)
Although the constructor of `CsvParseStream` accepts `fieldsPerRecord` option
(see https://jsr.io/@std/csv@1.0.0-rc.5/doc/~/CsvParseStreamOptions) that
ensures that every record has the specified (or inferred from the first row)
number of fields, this option has no effect at all in the current
implementation. To fix this issue, this patch implements the `fieldsPerRecord`
logic in `CsvParseStream` together with sufficient amount of test cases.
2024-08-01 03:48:14 -07:00
Yoshiya Hinosawa
577fd9a6e8
docs(csv): clarify parse document (#5597) 2024-08-01 14:36:23 +09:00
Asher Gomez
6e1724ba22
test(async): fix abortable.AsyncIterable() calls return before throwing test (#5596)
* test(async): fix `abortable.AsyncIterable() calls return before throwing` test

* fix
2024-08-01 14:30:49 +09:00
Lucas Lemos
bfa56fce2d
feat(html/unstable): add isValidCustomElementName() (#5456)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-01 12:26:54 +09:00
Mateusz Russak
714fccba66
fix(async): abortableAsyncIterable() should call .return() on the generator once aborted (#5560)
* fix(async): abortableAsyncIterable() should call .return() on the generator once aborted

* fix: formatting

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-01 00:25:42 +00:00
Tim Reichen
f632632558
refactor(cli): make regexps constants (#5595)
* initial commit

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-31 23:55:49 +00:00
Tim Reichen
ee46c4da79
refactor(front-matter): replace regexp factory with regexp literals (#5370)
* initial commit

* add parens

* update

* temp test

* update

* remove temp test

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-01 09:19:16 +10:00
Yoshiya Hinosawa
b213d54732
docs(csv): correct thrown error type in fieldsPerRecord field description (#5594) 2024-07-31 20:44:54 +09:00
Yoshiya Hinosawa
fd323c80f5
chore: release fmt@1.0.0 (#5454)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-31 19:24:26 +09:00