Commit graph

105 commits

Author SHA1 Message Date
Nayeem Rahman 7f80f9db3f refactor: Improve path handling in permission checks (#3714) 2020-01-20 09:45:44 -05:00
Nayeem Rahman f8d5f5b80e fix: Resolve read/write whitelists from CWD (#3684) 2020-01-16 14:47:02 -05:00
Ry Dahl a4dde552de
Revert "feat(flags): script arguments come after '--'" (#3681)
Due to complaints about ergonomics and because it breaks shebang on
linux.

This reverts commit 2d5457df15.

BREAKING CHANGE
2020-01-15 19:21:35 -05:00
uki00a 7ed018bb90 flag: upgrade std to v0.29.0 (#3659) 2020-01-12 06:02:03 -07:00
Ry Dahl c50cab90a0
Remove xeval subcommand (#3630) 2020-01-08 17:40:59 -05:00
Ry Dahl 2d5457df15
feat(flags): script arguments come after '--' (#3621) 2020-01-08 14:59:53 -05:00
Ry Dahl 884462d615 Upgrade subcommands to 0.28.1 (#3620) 2020-01-08 01:05:52 +01:00
Ry Dahl bfab4ed0df
Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
EnokMan d4f2fda623 fix typos (#3573) 2020-01-02 07:48:46 -05:00
Yoshiya Hinosawa 3115781e43 feat: show detailed version with --version (#3507) 2019-12-15 21:38:34 +08:00
Axetroy 8cf470474f flag: upgrade std to v0.26.0 (#3492) 2019-12-14 10:00:29 +08:00
Ry Dahl e6228bc3c4
Revert "Synchronize deno and deno_std versions" (#3446)
Preventing release v0.26.0
This reverts commit 81efa9d938.
2019-12-05 21:14:46 -05:00
Andy Finch 7c3b9b4f4f feat: first pass at native plugins (#3372) 2019-12-05 15:30:20 -05:00
Nayeem Rahman 91da410fc3 feat: Add --no-remote, rename --no-fetch to --cached-only (#3417) 2019-12-03 17:48:53 -05:00
Ry Dahl ee013102ff
remove duplicated argv member from ThreadSafeGlobalState (#3433) 2019-12-03 17:23:10 -05:00
Axetroy 81efa9d938 synchronize deno and deno_std versions (#3415) 2019-11-29 19:03:55 -08:00
Kevin (Kun) "Kassimo" Qian 3451c5fb55 Tweaks to arg_hacks and add v8-flags to repl (#3409) 2019-11-26 20:25:14 -08:00
Ry Dahl c016684653
refactor: reorganize flags (#3389)
- Remove ability to specify run arguments like `--allow-net` after the
  script argument. It's too hacky to make work with clap.
- Remove `--v8-options`, instead use `--v8-flags=--help`
- Give more descriptive names to unit tests in flags.rs
- Assume argv and subcommand into DenoFlags struct so the output of
  flags module is only DenoFlags rather than the tuple (subcommand, flags,
  argv).
- Improve CLI help text
- Make `deno run` specific args like `--allow-net` only show up in 'deno
  help run' instead of as global flags in `deno help`.
- Removes `deno version` to simplify our implementation and be closer to
  clap defaults. `deno -V` now only shows Deno's version and not V8's nor
  TypeScript. `Deno.versions` can be used to see that information.
- Prevent clap from auto-detecting terminal width and attempting to wrap
  text.
2019-11-26 08:06:32 -08:00
罗文 542ec461c4 feat: add --check for deno fmt (#3369) 2019-11-18 13:19:59 -05:00
罗文 cb00fd6e98 fmt: respect prettierrc and prettierignore (#3346) 2019-11-16 11:48:45 -05:00
罗文 80b1371548 fmt: allow configuration of Prettier options (#3314) 2019-11-13 11:21:17 -05:00
Kitson Kelly 8d03397293 Make bundles fully standalone (#3325)
- Bundles are fully standalone. They now include the shared loader with
  `deno_typescript`.
- Refactor of the loader in `deno_typescript` to perform module
  instantiation in a more
- Change of behaviour when an output file is not specified on the CLI.
  Previously a default name was determined and the bundle written to that
  file, now the bundle will be sent to `stdout`.
- Refactors in the TypeScript compiler to be able to support the concept
  of a request type.  This provides a cleaner abstraction and makes it
  easier to support things like single module transpiles to the userland.
- Remove a "dangerous" circular dependency between `os.ts` and `deno.ts`,
  and define `pid` and `noColor` in a better way.
- Don't bind early to `console` in `repl.ts`.
- Add an integration test for generating a bundle.
2019-11-13 10:35:56 -05:00
罗文 7ba42ee4a6 flags: bump deno_std to v0.23.0 (#3322) 2019-11-12 08:34:09 -05:00
Ry Dahl c04ff22afe
Remove tsconfig files - they are not part of build process (#3262) 2019-11-04 18:13:28 -05:00
Ry Dahl 86b3ac5108
feat: lockfiles (#3231)
Use --lock-write=lock.json or --lock-check=lock.json on the command
line.
2019-11-03 10:39:27 -05:00
Yoshiya Hinosawa 2804ba8674 remove --no-prompt flag, fail on missing permissions (#3183) 2019-10-22 19:35:43 -04:00
Yusuke Sakurai f1fa3bd792 update: use v0.21.0 for subcommands (#3168) 2019-10-21 13:11:19 -04:00
Michał Sabiniarz 75ec9426f3 feat: --reload flag to take arg for partial reload (#3109)
Example: To reload only std modules --reload=https://deno.land/std/
2019-10-17 10:29:06 -04:00
Bartek Iwańczuk b3331e81d9 support --allow-net=:4500 (#3115) 2019-10-12 14:13:52 -07:00
Ryan Dahl 4b7204babe Update various links to deno_std (#3096) 2019-10-12 12:23:58 -07:00
Nayeem Rahman eecb4fea26 Use xeval from deno_std (#3058) 2019-10-04 09:02:36 -04:00
Andy Hayden f7bbd71e21 Update rust to 1.38.0 (#3030) 2019-10-03 09:16:06 -04:00
Bartek Iwańczuk 3a982a014b bump deno_std deps (#3034) 2019-09-28 15:14:49 -04:00
Bartek Iwańczuk 112ce0df1f test: add HTTP_PROXY tests (#2977) 2019-09-24 18:52:01 -04:00
Ryan Dahl 93d6faacf5
Keep all deno_std URLs in sync (#2930) 2019-09-12 12:56:53 -04:00
Bartek Iwańczuk a8f44213ec bump prettier revision (#2928) 2019-09-12 06:32:24 -04:00
Nayeem Rahman 0ce15f08c7 Remove DenoSubcommand::Install (#2846) 2019-09-01 14:20:23 -04:00
Bartek Iwańczuk 389763c04e bump test runner revision (#2800) 2019-08-21 13:49:48 -04:00
Bartek Iwańczuk 1978358328 chore: bump test runner version (#2784) 2019-08-16 18:20:36 -04:00
Bartek Iwańczuk d2d3afaf2d add deno test subcommand (#2783) 2019-08-15 10:11:52 -04:00
Bartek Iwańczuk 9bd473d8ac feat: print cache location when no arg in deno info (#2752) 2019-08-11 18:43:01 -06:00
Ryan Dahl 3971dcfe10
Use system rustfmt instead of fixed binary (#2701) 2019-07-31 17:11:37 -04:00
Bartek Iwańczuk e7cee29c84 Add --current-thread flag (#2702) 2019-07-31 11:02:20 -04:00
Bartek Iwańczuk 729c4e9377 make importmap flag global (#2687) 2019-07-27 14:37:03 +00:00
Bartek Iwańczuk 89e6792203 cli: handle deno -v and deno --version (#2684) 2019-07-27 09:20:40 +00:00
Bartek Iwańczuk 3ae808986d cli: unify deno -h options (#2682) 2019-07-26 07:36:56 +00:00
Bartek Iwańczuk 34f212f257 fix: bring back --no-fetch flag (#2671) 2019-07-20 09:19:06 -04:00
Bartek Iwańczuk 8214b686ce Refactor DenoDir (#2636)
* rename `ModuleMetaData` to `SourceFile` and remove TS specific
  functionality

* add `TsCompiler` struct encapsulating processing of TypeScript files

* move `SourceMapGetter` trait implementation to `//cli/compiler.rs`

* add low-level `DiskCache` API for general purpose caches and use it in
  `DenoDir` and `TsCompiler` for filesystem access

* don't use hash-like filenames for compiled modules, instead use
  metadata file for storing compilation hash

* add `SourceFileCache` for in-process caching of loaded files for fast
  subsequent access

* define `SourceFileFetcher` trait encapsulating loading of local and
  remote files and implement it for `DenoDir`

* define `use_cache` and `no_fetch` flags on `DenoDir` instead of using
  in fetch methods
2019-07-17 18:15:30 -04:00
Bartek Iwańczuk 963d56fc5e fix for '-' arg after script name (#2631) 2019-07-10 20:26:01 -04:00
Ryan Dahl d7fa8c3207
Update deno.land links v0.11 (#2628) 2019-07-09 18:59:13 -04:00