1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
Commit graph

33 commits

Author SHA1 Message Date
Kitson Kelly
21372d7b25
docs: document Deno's HTTP Server API (#10280)
Co-authored-by: Satya Rohith <me@satyarohith.com>
2021-04-22 06:57:02 +10:00
Mason Medeiros
c7fcba268f
docs(workers): fix permissions examples (#9965) 2021-04-06 19:06:17 +02:00
Ikko Ashimine
870337c6cd
typo 2021-03-22 06:43:10 -04:00
crowlKats
2894c0e615
chore: remove unstable from permission (#9701) 2021-03-06 13:24:43 +01:00
Luca Casonato
4f80587d26
chore: rename default branch to main (#9503) 2021-02-19 15:58:19 +01:00
Kitson Kelly
02c6a88d8a
docs: improve manual around typescript (#8139)
Fixes #9054
2021-01-20 09:28:58 +11:00
Nayeem Rahman
e61e81eb57
feat: add --location=<href> and globalThis.location (#7369) 2021-01-07 19:06:08 +01:00
Nayeem Rahman
b5f1d257a3
fix: Use "none" instead of false to sandbox Workers (#9034) 2021-01-07 05:52:30 -05:00
Steven Guerrero
adc2f08c17
feat: Add configurable permissions for Workers (#8215)
This commit adds new option to "Worker" Web API that allows to 
configure permissions.

New "Worker.deno.permissions" option can be used to define limited
permissions to the worker thread by either:
- inherit set of parent thread permissions
- use limited subset of parent thread permissions
- revoke all permissions (full sandbox)

In order to achieve this functionality "CliModuleLoader"
was modified to accept "initial permissions", which are used
for top module loading (ie. uses parent thread permission set
to load top level module of a worker).
2021-01-06 21:31:16 +01:00
Nayeem Rahman
22e0ee92a6
BREAKING(unstable): Use hosts for net allowlists (#8845)
Allowlist checking already uses hosts but for some reason 
requests, revokes and the runtime permissions API use URLs.

- BREAKING(lib.deno.unstable.d.ts): Change 
NetPermissionDescriptor::url to NetPermissionDescriptor::host

- fix(runtime/permissions): Don't add whole URLs to the 
allowlist on request

- fix(runtime/permissions): Harden strength semantics:
({ name: "net", host: "127.0.0.1" } is stronger than 
{ name: "net", host: "127.0.0.1:8000" }) for blocklisting

- refactor(runtime/permissions): Use tuples for hosts, make 
the host optional in Permissions::{query_net, request_net, revoke_net}()
2020-12-30 23:35:28 +01:00
Anh Hong
b8bc24d167
chore: fixed various misspellings and other typos (#8691) 2020-12-11 06:45:45 +11:00
Benjamin Gruenbaum
b566d184fe
refactor(cli/rt): deduplicate code (#8649) 2020-12-07 21:22:58 +01:00
Benjamin Gruenbaum
4f46dc999b
fix: "onload" event order (#8376)
This commit fixes order of events for "onload" event. 

Previously handler attached using "window.onload" was
always fired before handlers added using "addEventListener".
2020-11-26 22:27:55 +01:00
Luca Casonato
fb13967d1d
docs: document the spec deviations in web apis (#8489) 2020-11-25 15:09:22 +01:00
Trivikram Kamat
1437838ea1
docs: use const assertion for PermissionDescriptor (#7733)
Fixes #7731
2020-09-28 12:47:00 +10:00
Nayeem Rahman
015fa0bd41
refactor: permissions (#7074) 2020-08-18 16:29:32 -04:00
tokiedokie
68e1ba07d3
typos (#7082) 2020-08-17 12:17:57 -04:00
Luca Casonato
4afb4b6e46
feat: add $STD_VERSION replacement variable in docs (#6922) 2020-07-31 11:12:20 +02:00
takutoaoi
090455936c
docs: Fix broken links (#6853) 2020-07-23 10:05:36 -04:00
David Sherret
cde4dbb351
Use dprint for internal formatting (#6682) 2020-07-14 15:24:17 -04:00
Nayeem Rahman
44251ce8ea
fix(cli/js/web/worker): Disable relative module specifiers (#5266) 2020-06-09 14:33:52 +02:00
Chris Knight
27708fe873
doc: various runtime doc updates (#5885) 2020-05-26 22:12:02 -04:00
Robin Wieruch
44477596ed
improve docs (#5872) 2020-05-26 10:08:23 -04:00
Matt Dumler
88b24261ba
adjust docs (#5598) 2020-05-18 15:53:25 -04:00
Bert Belder
36fde75d77
Miscellaneous documentation and spelling improvements (#5527)
* Extended/updated documentation on code editor setup and plugins.
* Moved documentation to the right file.
* Fixed spelling errors in documentation and code.
* Updated broken links.

Co-authored-by: 迷渡 <justjavac@gmail.com>
Co-authored-by: AlfieriChou <alfierichou@gmail.com>
Co-authored-by: Anil Seervi <anil13112000@gmail.com
Co-authored-by: Bert Belder <bertbelder@gmail.com>
Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com>
Co-authored-by: József Sallai <jozsef@sallai.me>
Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de>
Co-authored-by: Tommy May <tommymay37@gmail.com>
Co-authored-by: Turbinya <wownucleos@gmail.com>
Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
2020-05-17 19:24:39 +02:00
Max
d4afc9890d
adjust example code (#5332) 2020-05-15 10:27:38 -04:00
Luca Casonato
aa58128a12
docs: Added unstable message to compiler api (#5272) 2020-05-13 18:10:54 +02:00
Nugine
bc7817e161
doc: fix typo in workers.md (#5256) 2020-05-13 12:13:06 +02:00
Bartek Iwańczuk
32aeec9630
refactor: check permissions in SourceFileFetcher (#5011)
This PR hot-fixes permission escapes in dynamic imports, workers
and runtime compiler APIs.

"permissions" parameter was added to public APIs of SourceFileFetcher
and appropriate permission checks are performed during loading of
local and remote files.
2020-05-11 13:13:27 +02:00
Luca Casonato
45f9b32ef0
Docs for deno test + minor other changes (#5185)
* Added fs events example.
* Added docs for `deno test`.
* Renamed file server example.
* Unified markdown code types.
* Removed plugin topics from TOC.
* Fixed links.
2020-05-10 03:09:42 +02:00
Ryan Dahl
d5dd5ae87d
std/0.50.0
Add std/version.ts and document unstableness of std.
2020-05-09 09:15:26 -04:00
Bartek Iwańczuk
aca21dad1b
BREAKING: make Worker.deno unstable (#5128)
This commit makes "Worker.deno" option unstable.

Added new manual entry "docs/runtime/workers.md".

Removed stale workers tests.
2020-05-07 21:15:59 +02:00
Luca Casonato
34ec3b2254
Multi page manual (#5110) 2020-05-06 18:21:13 -04:00