Divy Srivastava
4774eab64d
chore: upgrade to rust 1.82 and LLVM 19 ( #26615 )
...
Upgrade to rust 1.82 and LLVM 19 . Removes one webusb test because
`requestAdapter` not working on new ubuntu 24 runners
2024-11-01 16:13:02 +05:30
Asher Gomez
e4ea9be874
chore: cleanup remaining internals.future
code ( #25624 )
2024-09-16 09:28:35 +10:00
Asher Gomez
4865ae13e1
BREAKING(net): remove Deno.[Tls]Listener.prototype.rid
( #25556 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-11 01:14:50 +02:00
Asher Gomez
ace1202227
BREAKING(net): remove Deno.ConnectTlsOptions.{certChain,certFile,privateKey}
and Deno.ListenTlsOptions.certChain,certFile,keyFile}
( #25525 )
...
Towards #22079
2024-09-10 21:55:42 +00:00
Asher Gomez
a69b1e699e
BREAKING(fs): remove Deno.FsFile.prototype.rid
( #25499 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-11 07:19:34 +10:00
Asher Gomez
a9ed06b832
BREAKING(net): remove Deno.{Conn,TlsConn,TcpConn,UnixConn}.prototype.rid
( #25446 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-06 23:01:36 +00:00
Asher Gomez
d8f3123c36
BREAKING(buffer): remove Deno.Buffer
( #25441 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-06 18:28:05 +10:00
Asher Gomez
7d95c5c062
BREAKING(fs): remove Deno.funlock[Sync]()
( #25442 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-05 11:23:37 +00:00
Asher Gomez
c73b4a0877
BREAKING(fs): remove Deno.seek[Sync]()
( #25449 )
...
Towards #22079
2024-09-05 20:37:28 +10:00
Asher Gomez
105c2e336a
BREAKING(fs): remove Deno.FsWatcher.prototype.rid
( #25444 )
...
Towards #22079
2024-09-05 16:23:28 +10:00
Asher Gomez
713ed065e7
BREAKING(fs): remove Deno.File
( #25447 )
...
Towards #22079
2024-09-05 16:22:47 +10:00
Asher Gomez
31ecc09b5a
BREAKING(io): remove Deno.read[Sync]()
( #25409 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 09:34:40 +00:00
Asher Gomez
4c3b17b547
BREAKING(io): remove Deno.write[Sync]()
( #25408 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 08:57:34 +00:00
Asher Gomez
7e11dbb3ac
BEAKING(buffer): remove Deno.readAll[Sync]()
( #25386 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 08:54:50 +00:00
Asher Gomez
3d36cbd056
BREAKING(fs): remove Deno.ftruncate[Sync]()
( #25412 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 08:53:43 +00:00
Asher Gomez
072bf5d379
BREAKING(buffer): remove Deno.writeAll[Sync]()
( #25407 )
2024-09-04 17:16:48 +10:00
Asher Gomez
b72d1a7256
BREAKING(fs): remove Deno.fstat[Sync]()
( #25351 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 01:28:15 +00:00
Asher Gomez
03d8e474d7
BREAKING(io): remove Deno.copy()
( #25345 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-03 10:46:13 +00:00
Asher Gomez
1a82b0f808
BREAKING(console): remove Deno.customInspect
( #25348 )
...
Note: this is implemented on Deploy. However, according to @magurotuna,
a thin compatibility layer might be in the works that'd prevent
breakages for PRs such as this one.
Towards #22079
2024-09-03 09:07:19 +00:00
Asher Gomez
9bf10aa1e0
chore(fs): remove Deno.flock[Sync]()
( #25350 )
...
Towards #22079
2024-09-03 18:39:37 +10:00
Asher Gomez
45c1737531
BREAKING(io): remove Deno.iter[Sync]()
( #25346 )
...
Towards #22079
2024-09-03 18:35:54 +10:00
Asher Gomez
259752537f
BREAKING: remove Deno.close()
( #25347 )
...
Towards #22079
2024-09-03 18:33:26 +10:00
Bartek Iwańczuk
4e19474129
chore: remove DENO_FUTURE=1 from spec tests ( #25329 )
...
Towards https://github.com/denoland/deno/issues/25241
2024-08-31 21:25:32 +00:00
Asher Gomez
a527b3a5de
chore(net): remove Deno.shutdown()
( #25253 )
2024-08-31 09:46:02 +10:00
Asher Gomez
8e478a1a7d
chore: remove Deno.resources()
( #25251 )
2024-08-31 09:34:09 +10:00
Asher Gomez
504ae362d5
chore: remove Deno.metrics()
( #25167 )
2024-08-31 08:43:32 +10:00
Bartek Iwańczuk
b1c6142f74
BREAKING: DENO_FUTURE=1
by default, or welcome to Deno 2.0 ( #25213 )
...
This commit effectively turns Deno into Deno 2.0.
This is done by forcing `DENO_FUTURE=1` env var, that was available in
the past few months to try Deno 2 changes.
This commit contains several breaking changes scheduled for Deno 2:
- all deprecated JavaScript APIs are not available any more, mostly
`Deno.*` APIs
- `window` global is removed
- FFI, WebGPU and FS APIs are now stable and don't require
`--unstable-*` flags
- import assertions are no longer supported
- "bring your own node modules" is enabled by default
This is the first commit in a series that are scheduled before the Deno
2 release.
Follow up work is tracked in
https://github.com/denoland/deno/issues/25241 .
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Co-authored-by: Nathan Whitaker <nathan@deno.com>
2024-08-30 13:58:58 -04:00
Bartek Iwańczuk
b5051e25c2
feat: Deprecate "import assertions" with a warning ( #24743 )
...
This commit deprecates "import assertions" proposal that has been
replaced with "import attributes".
Any time an import assertion is encountered a warning will be printed
to the terminal. This warning will be printed for both local and
remote files (ie. user code and dependencies).
Import assertions support will be removed in Deno 2.
2024-08-19 22:36:35 +02:00
Asher Gomez
5f44148e83
chore: update to std@2024.07.19
( #24715 )
2024-07-25 15:30:28 +10:00
Asher Gomez
f248050cb4
chore: use @std
prefix for internal module specifiers ( #24543 )
...
This change aims to replace all relative import specifiers targeted at
`tests/util/std` with mapped ones (using a `deno.json` file). Towards
updating the `std` git submodule.
2024-07-25 10:26:54 +10:00
Asher Gomez
adbd564758
FUTURE(ext/ffi,ext/webgpu): stabilize FFI and WebGPU APIs ( #24011 )
...
Closes #23906
2024-05-28 11:37:43 +00:00
Bartek Iwańczuk
1667e28a15
FUTURE(ext/fs): stabilize file system APIs ( #23968 )
...
Closes https://github.com/denoland/deno/issues/23906
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-05-27 23:43:07 +00:00
Kenta Moriuchi
783533d2e3
FUTURE: remove import assertions support for JavaScript ( #23541 )
...
Ref #17944 , https://github.com/swc-project/swc/issues/8893
TypeScript removes the `assert` keywords in the transpile, so this PR
only works for JavaScript files
2024-04-29 22:43:05 +02:00
Asher Gomez
2f5a6a8514
FUTURE(ext/net): remove Deno.ConnectTlsOptions.(certFile|certChain|privateKey)
( #23270 )
...
Towards #23089
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-04-21 03:03:44 +00:00
Asher Gomez
98e2f6d50b
FUTURE(ext/net): remove Deno.ListenTlsOptions.(keyFile|certFile)
( #23271 )
...
Towards #23089
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-04-21 01:58:59 +00:00
Asher Gomez
05b49a803f
FUTURE: remove Deno.customInspect
( #23453 )
2024-04-19 20:50:18 +10:00
Asher Gomez
49f6e2e79e
FUTURE(ext/net): remove Deno.(Conn|TlsConn|Listener|TlsListener|UnixConn).prototype.rid
( #23219 )
...
Towards #23089
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-04-08 08:59:37 +10:00
Asher Gomez
9b34b7ed18
FUTURE(ext/fs): remove Deno.FsWatcher.prototype.rid
( #23234 )
2024-04-07 17:46:39 +10:00
Asher Gomez
d3f3e0d717
FUTURE(ext/fs): make Deno.FsFile
constructor illegal ( #23235 )
...
I'm unsure whether we're planning to make the `Deno.FsFile` constructor
illegal or remove `FsFile` from the `Deno.*` namspace in Deno 2. Either
way, this PR works towards the former. I'll create a superceding PR if
the latter is planned instead.
Towards #23089
2024-04-07 15:42:53 +10:00
Asher Gomez
207349cfb7
FUTURE: remove deprecated APIs within workers ( #23220 )
2024-04-05 03:27:18 +11:00
Asher Gomez
3462248571
FUTURE(ext/fs): remove Deno.FsFile.rid
( #23087 )
...
Continues work from #23075 . Towards #23089 .
2024-03-27 13:45:19 +01:00
Asher Gomez
c9e10ededa
FUTURE: remove Deno.resources()
( #23095 )
2024-03-27 13:39:26 +01:00
Asher Gomez
89aa6d5cf6
feat: remove deprecated methods from namespace with DENO_FUTURE=1
( #23075 )
...
This change removes deprecated methods from the `Deno.*` namespace when
the `DENO_FUTURE=1` environment variable is used.
Note: this does not address deprecated class properties and methods.
E.g. `Deno.Conn.rid`.
2024-03-26 16:56:52 +01:00
Bartek Iwańczuk
8b454b560a
test: add test for DENO_FUTURE=1 runtime API ( #23065 )
...
Add a test that asserts that certain symbols are no longer available
if running with `DENO_FUTURE=1` env var.
Currently only checks `window` global.
2024-03-25 16:22:01 +01:00