Asher Gomez
0bbd47b522
refactor(http): cleanup use of @std/assert
( #4974 )
...
* refactor(http): cleanup use of `@std/assert`
* graph
* update graph
2024-06-05 21:47:07 +00:00
denobot
b9374d3715
chore: release 2024.06.03 ( #4935 )
...
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-03 15:44:03 +09:00
Asher Gomez
31b906db99
chore: ensure code examples use assertions in Doc Linter ( #4911 )
2024-06-03 14:10:27 +10:00
Asher Gomez
79d6a70729
docs(assert,cli,data-structures,expect,fmt,front-matter,html,http,jsonc,semver,streams,text,toml,webgpu): add snippet checks in module, function and class docs to doc checker ( #4855 )
...
* chore: add snippet checks to module docs
* fix
* work
* tweak
2024-05-31 12:01:46 +10:00
Asher Gomez
622012b375
feat(net): getNetworkAddress()
( #4677 )
...
* feat(net): `getNetworkAddress()`
* tweaks
* tweaks
* work
* work
* tweak
* tweaks
2024-05-30 11:17:40 +09:00
Santiago Aguilar Hernández
fc8b738487
docs(http): added --allow-sys
to file server example ( #4890 )
...
added --allow-sys to file-server example
2024-05-30 09:00:09 +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
082107bd7f
chore: update dependency check tool ( #4833 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-05-23 13:43:23 +09:00
Asher Gomez
83991c738e
docs(http): don't run some examples in doc checker ( #4840 )
2024-05-22 22:17:05 +00:00
Leo Kettmeir
a3c99863f5
docs(http): improve docs for stabilization ( #4813 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-05-22 12:09:08 -07:00
denobot
51dc36d563
chore: release 2024.05.22 ( #4830 )
...
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-05-22 19:57:28 +09:00
Yoshiya Hinosawa
722844250d
docs(csv,encoding,http,json,media-types,uuid): use rfc-editor.org
for RFC links ( #4777 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-05-20 16:14:09 +09:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase ( #4650 )
2024-04-29 11:57:30 +09:00
Asher Gomez
94fb3fe7e9
chore(http): remove http/test.ts
( #4639 )
2024-04-24 16:59:50 +09:00
Yoshiya Hinosawa
0d7e9fe7c8
feat(http): file server prints local network address ( #4604 )
2024-04-22 14:25:14 +09:00
Asher Gomez
d954fa670d
test(http): update Deno.listenTls()
options ( #4619 )
2024-04-22 05:45:25 +10:00
Asher Gomez
3f9d4a8494
chore: simplify deprecation notice check ( #4577 )
2024-04-17 15:36:50 +09:00
Asher Gomez
46d9fa594c
chore: update browser-compatible files with declaration ( #4560 )
2024-04-10 12:43:44 +10:00
Yoshiya Hinosawa
8a7b5dd0b5
docs(http): fix default algorithm for etag in docs ( #4518 )
2024-03-25 17:52:22 +09:00
Asher Gomez
1dc1ae5ab5
refactor(http): use cert
and key
for Deno.listenTls()
( #4479 )
...
* refactor(http): use `cert` and `key` for `Deno.listenTls()`
* fix
2024-03-13 13:12:46 +11:00
Gabriele Belluardo
4da7440c62
chore: enable no-sync-fn-in-async-fn
lint rule ( #4471 )
...
* chore: enable `no-sync-fn-in-async-fn` lint rule
* revert for serveTls test
2024-03-12 11:36:10 +11:00
Asher Gomez
9743031bf0
docs(http): prepare for noUncheckedIndexedAccess
( #4453 )
2024-03-08 16:15:56 +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
Tim Reichen
8fbd39d54d
chore(http): format test names ( #4400 )
...
* initial commit
* remove brackets for classes
2024-02-28 08:03:28 +12:00
Asher Gomez
241c6b26e9
chore(http): fix spawned tests after migration script ( #4368 )
2024-02-22 15:40:55 +11:00
Kyle June
c6ed026ec4
feat(testing): explicit resource management for spy()
and stub()
( #4306 )
...
* feat(testing): Explicit resource management for `spy()` and `stub()`
* Undo explicitly making FakeTime Disposable
* Update test cases to use explicit resource management
---------
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-16 15:26:33 +11:00
Gabriele Belluardo
73ff70d870
refactor(http): prepare for noUncheckedIndexedAccess
( #4298 )
...
* refactor(http): prepare for `noUncheckedIndexedAccess`
* fix with requested changes
* rm: quote counting
2024-02-16 08:07:19 +11: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
Tim Reichen
d23718945e
feat(tools,log,http,semver): check mod exports, export items consistently from mod.ts ( #4229 )
2024-01-25 18:36:46 +09:00
Asher Gomez
d91123ee37
fix: ignore linting for Deno.serveHttp()
( #4234 )
2024-01-25 00:29:16 +00:00
Lino Le Van
18d6a0ee30
deprecation(path): split off all constants into their own files and deprecate old names ( #4153 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-18 14:54:39 +09:00
Asher Gomez
dbd8a543a5
docs(http): complete documentation ( #4209 )
2024-01-16 17:17:44 +11:00
Anwesh
3fcb0a8b24
refactor(using): use using
keyword for Explicit Resource Management ( #4143 )
...
* refactor(using): add using keyword for Explicit Resource Management
* refactor(using): fix fmt
* refactor(using): add more fixes
* refactor(using): fix fmt
* refactor: add more `using` cases
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-15 08:35:50 +11:00
Asher Gomez
5d66bdffb4
BREAKING(http): remove CookieMap
( #4179 )
2024-01-14 19:55:47 +09:00
Asher Gomez
a9fe1603e0
feat(io): re-introduce IO functions ( #4128 )
2024-01-12 18:34:12 +11:00
Asher Gomez
805b926032
fix: add --no-lock
to spawned process args in tests ( #4168 )
2024-01-12 13:38:41 +09:00
Asher Gomez
668856c4f7
fix: use with
keyword for import attributes ( #4141 )
...
* refactor: use `with` keyword for import attributes
* fix
2024-01-10 19:07:56 +09:00
Asher Gomez
5e0b671bb7
fix(http): punt removal version of unstable_cookie_map.ts
( #4125 )
2024-01-08 13:38:12 +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
Asher Gomez
2cb08fc965
BREAKING(http): remove deprecated createCommonResponse()
and Status
APIs ( #4014 )
2023-12-22 19:33:44 +09: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
67eb780526
fix(http): account for period in signed cookie name ( #3977 )
2023-12-18 21:42:01 +11:00
Simon Holloway
f712403cb1
feat(testing): enable the using
keyword on FakeTime()
( #3961 )
...
* feat(testing): enable the "using" keyword on FakeTime
* chore(testing): update all tests with using FakeTime
* chore(testing): formatting fix
2023-12-15 07:47:50 +11:00
Asher Gomez
48c489e716
BREAKING(http): remove deprecated std/http/method
API ( #3951 )
2023-12-14 12:19:23 +09:00
Asher Gomez
a6330a6559
chore(http): deprecate CookieMap()
( #3943 )
2023-12-13 14:55:22 +11:00
Asher Gomez
32f0a4fbcf
feat(http): signCookie()
, verifyCookie()
and parseSignedCookie()
( #3905 )
2023-12-13 13:55:12 +11:00
Asher Gomez
ea64542e54
chore(http): add test for file containing space in name ( #3892 )
...
* chore: add test for file containing space in name
* tweak
* tweak
2023-12-04 17:00:44 +11:00
Asher Gomez
8f9a48f1b2
chore(http): rename test file ( #3882 )
2023-12-01 01:02:18 +01:00
Asher Gomez
899f000b85
chore(http): remove test files with symbols in the filename ( #3879 )
...
chore(http): remove test files w symbols in name
2023-11-30 10:50:07 +09:00
Asher Gomez
9ed93ade4f
docs(http): fix Status
enum deprecation notice ( #3851 )
2023-11-24 08:21:18 +00:00
Asher Gomez
c89fb9b5aa
BREAKING(http): remove ServerSentEvent()
( #3847 )
2023-11-24 19:07:50 +11:00
Asher Gomez
9aa2909d06
BREAKING: deprecate std/http/method
( #3834 )
2023-11-22 18:40:07 +11:00
Asher Gomez
2f324fb1ce
BREAKING(http): deprecate enum Status
in favour of STATUS_CODES
object ( #3781 )
2023-11-17 13:26:11 +11:00
Lino Le Van
16db0d5e6f
BREAKING: move std/flags
to new std/cli
sub-module ( #3530 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-16 11:08:51 +09:00
Asher Gomez
7d5344d775
docs: improve deprecation notices ( #3804 )
2023-11-16 05:33:11 +11:00
Yoshiya Hinosawa
38878eb779
test(http): fix op leak in file_server_test ( #3806 )
2023-11-15 17:37:19 +09:00
Asher Gomez
dec5a4a742
BREAKING: remove deprecated std/http/http_errors
( #3737 )
2023-11-15 05:12:48 +11:00
Asher Gomez
0dd0e3af47
BREAKING(http): deprecate ServerSentEvent()
( #3783 )
...
* BREAKING: deprecate `ServerSentEvent()`
* fix
* fix
2023-11-12 19:48:04 +11:00
Asher Gomez
56e2bc10e0
chore: use Array.fromAsync()
where possible ( #3788 )
2023-11-11 06:00:28 +11:00
Asher Gomez
88477d1117
refactor: remove use of deferred()
( #3786 )
...
* refactor: remove use of `deferred()`
* fix
* fix
2023-11-10 14:31:16 +11:00
Asher Gomez
943f1a3088
fix: rework file server tests ( #3779 )
...
* fix: rework file server tests
* maybe fix
* maybe fix
* fix
* fix
* possible improvement
* possible improvement
* cleanup
* cleanups
* maybe fix
* fix
* fix
* fix
* fix
* fix
2023-11-09 11:01:46 +11:00
Asher Gomez
08f4dbc969
feat: ServerSentEventStream()
( #3751 )
2023-11-09 05:07:46 +11:00
Asher Gomez
b13a8cc7ac
chore(http): fix file server test names ( #3772 )
2023-11-08 14:31:52 +11:00
Asher Gomez
0beb3dbeea
chore: use Deno.(read/write)TextFile()
2023-11-06 14:56:59 +11:00
Asher Gomez
9770bd2d4c
fix: add [Symbol.dispose]()
to MockListener()
( #3760 )
...
fix: `MockListener()` dispose error
2023-11-02 00:29:36 +01:00
Asher Gomez
81dcc777a9
chore(http): remove http/unstable_errors
( #3736 )
...
BREAKING: deprecate `std/http/http_errors`
2023-11-01 19:57:50 +11:00
Lino Le Van
6f682c312f
chore(http): remove iterateReader()
from file_server_test.ts
( #3730 )
...
* chore(http): remove iterateReader from file_server_test.ts
* chore: remove conn.close()
* chore: perhaps fix type error
* chore: fix lint errors
* chore: remove frankly silly type annotation
* passing-by tweak
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-10-28 11:34:08 +09:00
Asher Gomez
f64ea09b72
fix: flaky http/file_server.ts
tests ( #3717 )
...
* fix : #3716
* additional fix
* revert
* fix
* fix
* rerun
* rerun
* rerun
---------
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-10-26 12:17:57 +09:00
Lino Le Van
4890b472f4
fix(http): file server with showDirListing + urlRoot ( #3691 )
2023-10-23 15:04:58 +09:00
Asher Gomez
1f95611469
refactor: move unstable std/crypto
files ( #3699 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-10-23 11:54:22 +09:00
Lino Le Van
65125db61f
BREAKING(http): move cookie_map, errors, server_sent_event, and method to unstable category, deprecate server.ts ( #3661 )
...
See https://github.com/denoland/deno_std/issues/3655 and https://github.com/denoland/deno_std/issues/3646 for details.
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-10-13 16:24:58 +09:00
Sanjaiyan Parthipan
5b73e8b6d7
perf: improvements using Promise.all()
( #3683 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-10-12 15:16:53 +09:00
Mark Gibson
b163c5604b
BREAKING(path): split path into per-os modules, deprecate legacy os-specific exports ( #3649 )
...
Deprecations:
- This change deprecates `win32` and `posix` exports from `path/mod.ts`,
- and also deprecates `path/win32.ts` and `path/posix.ts` paths.
New feature:
- This change adds `path/windows/mod.ts` and `path/posix/mod.ts` paths.
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-09-28 19:54:53 +09:00
Tiger Oakes
52dfbebf59
refactor: avoid internally using strings for numbers ( #3665 )
2023-09-21 19:23:28 +09:00
Luca Casonato
de656e2b52
test: resource leaks caused by aggressive sanitizer ( #3648 )
2023-09-18 14:05:22 +02:00
David Luis
3c3916f1dc
refactor(http/cookie): remove dependency to std/datetime
( #3632 )
2023-09-12 20:37:57 +09:00
Yoshiya Hinosawa
9c5dc8925a
test(http): reduce http server test flakiness ( #3612 )
2023-09-07 21:16:17 +09:00
Yoshiya Hinosawa
911e110f97
test(http): reduce http test flakiness ( #3590 )
2023-09-01 16:40:35 +09:00
Yoshiya Hinosawa
6facda630a
refactor(_util): remove _util/os
( #3564 )
2023-08-25 18:07:43 +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
ud2
159060b15c
perf: repoint internal imports to single-export files ( #3537 )
2023-08-14 16:08:42 +09:00
oli
c34d441374
fix(http/cookie_map): add maxAge to set/delete options ( #3524 )
2023-08-11 18:03:20 +09:00
Yoshiya Hinosawa
2fc511fc42
fix(http): fix handling of string port number ( #3499 )
2023-07-24 10:39:11 +09:00
Lino Le Van
1d489cf207
BREAKING(http/server): deprecate serve and serveTls ( #3381 )
2023-07-21 12:29:01 +09:00
Lino Le Van
e0753abe0c
refactor(http): simplify getSetCookies ( #3491 )
2023-07-18 10:29:27 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts
to std/assert
( #3445 )
2023-07-13 16:04:30 +09:00
Yoshiya Hinosawa
2acd2bb2fc
chore: fix type errors caused by canary ( #3477 )
2023-07-04 13:57:05 +09:00
Kitson Kelly
7cdd55a083
feat: add http/user_agent ( #3387 )
2023-07-04 11:39:46 +09:00
Yoshiya Hinosawa
242746a479
test(http): re-enable 'serveDirIndex TLS' test on mac ( #3471 )
2023-06-29 14:05:58 +09:00
Martin Fischer
a5b1d80736
chore: fix typos ( #3458 )
...
The typos were found with the typos[1] spell checker. That spell
checker will be incorporated into the CI in a followup PR.
[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
denobot
b7e6dc0914
0.192.0 ( #3449 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-06-15 23:22:00 +02:00
Chocobo1
8bd34c3a45
fix(http/file_server): resolve empty subdir correctly on Windows ( #3439 )
2023-06-14 16:37:53 +09:00
Chocobo1
bdfacdd721
fix(http/file_server): use platform specific resolve
( #3424 )
2023-06-06 14:00:05 +09:00
David Luis
2d9dd290f0
BREAKING(csv,http,path): remove deprecated APIs ( #3418 )
2023-06-01 23:13:50 +09:00
Bartek Iwańczuk
63f57385b5
chore: remove ts-ignores ( #3405 )
2023-05-26 08:36:39 +03:00
denobot
bde4acaa29
0.189.0 ( #3399 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-25 00:17:41 +02:00
Yoshiya Hinosawa
31c07ab89b
test(http): update cert error assertions ( #3383 )
2023-05-17 20:33:21 +09:00
ayame113
f7357c058c
fix(http/file_server): dealing with dir listing view that contain system files ( #3371 )
2023-05-10 15:15:03 +09:00
ayame113
28d2dd2698
docs(http/file_server): add module documentation ( #3368 )
2023-05-10 14:27:25 +09:00