Max Duval
7f4d35ce17
fix(http): make file-server
work on Deno Deploy ( #6033 )
...
* fix(file-server): work on deploy
Deno.permissions.querySync is not
a defined function in that environment.
* refactor: unified permissions queries
at the top of the file,
to reduce possible future confusion
* chore: format properly
2024-09-23 20:08:42 +10:00
Asher Gomez
0b2497f16e
fix: update codebase to work with Deno RC ( #6018 )
...
* fix: update codebase to work with Deno RC
* work
* fix
* fix
* fix
* fixes
* work
* update
* fixes
* fix
* revert
2024-09-20 09:29:31 +10:00
Asher Gomez
58dbbd6bd2
chore: enable no-console
lint rule ( #5975 )
2024-09-13 15:43:13 +10:00
Asher Gomez
b900e72b3d
BREAKING(net/unstable): move get-network-address
module to unstable-get-network-address
( #5949 )
...
* BREAKING(net/unstable): move `get-network-address` module to `unstable-get-network-address`
* fix
* fix
2024-09-12 04:05:40 +00:00
Yoshiya Hinosawa
8d7e184943
refactor(http): move unstable APIs (header
, method
, signed-cookie
) ( #5938 )
2024-09-11 20:23:59 +09:00
Marvin Hagemeister
9f19c9afa1
fix(http): invalid ipv6 hostname printed to console ( #5924 )
2024-09-10 08:38:03 +02:00
Yoshiya Hinosawa
70f981e605
refactor(http): inline serveFallback()
util ( #5917 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-05 20:50:25 +09:00
Yoshiya Hinosawa
fb79076121
fix(http): show hostname as 'localhost' for 0.0.0.0 on windows ( #5918 )
2024-09-05 20:39:02 +09:00
Kenta Moriuchi
4d4bd0eb92
refactor(archive,async,cli,csv,dotenv,encoding,expect,fmt,front-matter,fs,http,internal,log,net,path,semver,testing,text,webgpu,yaml): enable "exactOptionalPropertyTypes"
option ( #5892 )
2024-09-04 14:15:01 +09:00
Asher Gomez
88b35ec82e
refactor(http): use methods
module in file-server
module ( #5668 )
2024-08-11 03:42:34 +09:00
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
d99e1f8a57
refactor(http): use headers
module in file-server
module ( #5642 )
2024-08-06 15:40:47 +02:00
Luca Casonato
65c189aea6
fix(http): only show LAN address when --allow-sys
is provided ( #5547 )
...
This commit changes the behaviour of the file server to only print the LAN address if `--allow-sys=networkInterfaces` is provided. If it is not provided, no permission prompt for `--allow-sys` will be raised, and the LAN address will not be printed.
2024-07-25 12:13:16 +02:00
Asher Gomez
4e46b761b0
docs(http): fix options argument display ( #5488 )
...
* docs(http): fix options argument display
* work
2024-07-19 13:12:23 +09:00
Asher Gomez
ad1dad6ce6
docs(cli,csv,datetime,fmt,fs,http,ini,semver,testing): assert optional properties on types/interfaces have @default
tag ( #4933 )
...
* docs: assert optional properties on types/interfaces have `@default` tag
* work
* work
* work
* work
* work
* work
* fix
* fix
* Update fs/expand_glob.ts
* cleanups
* cleanups
---------
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-11 09:21:37 +00:00
Asher Gomez
aa06ae3c4e
BREAKING(http): rename Entity
to ETagSource
and calculate()
to eTag()
( #5144 )
2024-07-10 16:27:34 +10:00
Asher Gomez
d3551ec69c
refactor(http): minor cleanup ( #5126 )
...
* refactor(http): minor cleanup
* work
* work
* fix
2024-06-25 19:32:34 +10:00
Yoshiya Hinosawa
fa59027170
fix(http): handle the case fileInfo.mode=0 correctly ( #5132 )
2024-06-25 15:16:28 +09:00
Yoshiya Hinosawa
8ebe7d1c7f
BREAKING(http): change the default port of file-server to the same default of Deno.serve()
( #4888 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-24 13:57:37 +09: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
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
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase ( #4650 )
2024-04-29 11:57:30 +09:00
Yoshiya Hinosawa
0d7e9fe7c8
feat(http): file server prints local network address ( #4604 )
2024-04-22 14:25:14 +09: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
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
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
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
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
Lino Le Van
4890b472f4
fix(http): file server with showDirListing + urlRoot ( #3691 )
2023-10-23 15:04:58 +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
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
ud2
159060b15c
perf: repoint internal imports to single-export files ( #3537 )
2023-08-14 16:08:42 +09:00
Lino Le Van
1d489cf207
BREAKING(http/server): deprecate serve and serveTls ( #3381 )
2023-07-21 12:29:01 +09: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
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
Yoshiya Hinosawa
b781d630ec
refactor(http/file_server): use utils from std ( #3366 )
2023-05-07 15:48:39 +09:00
ayame113
c9af8416de
chore(http/file_server): remove unnecessary Date header generation ( #3364 )
2023-05-06 17:58:27 +09:00
ayame113
163a902a97
perf(http/file_server): read fileinfo in parallel ( #3363 )
2023-05-06 17:09:07 +09:00
ayame113
6e8ee3ceff
fix(http/file_server): redirect non-canonical URL to canonical URL ( #3362 )
2023-05-06 16:28:27 +09:00
ayame113
42a3a80ec4
fix(http/file_server): fix Range
header handling ( #3354 )
2023-05-04 13:58:13 +09:00
vwkd
1d0b8127a5
docs(http): add missing default values for ServeDir
options of file_server
( #3349 )
2023-05-02 14:24:44 +09:00
ayame113
0f28d392e3
perf(http/file_server): avoid calculating Content-Type when 304 Not Modified response ( #3323 )
2023-04-19 15:42:33 +09:00
ayame113
30d18674ab
fix(http): move deno deploy specific logic from etag.ts
to file_server.ts
( #3316 )
2023-04-18 17:07:28 +09:00
ayame113
f5ba1edf7d
fix(http/file_server.ts): respond to Range requests with correct byte length ( #3319 )
2023-04-18 16:34:51 +09:00
Yoshiya Hinosawa
a21550c844
docs(http): fix default etag algorithm ( #3314 )
2023-04-13 18:43:43 +09:00
Kitson Kelly
016b452409
feat: add http/etag ( #3245 )
2023-04-12 20:51:19 +09:00
Andreu Botella
da413bdac8
fix(http/file_server): redirect directory URLs that don't end with a slash ( #3220 )
2023-03-01 23:50:58 +09:00