Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade crates #10559

Merged
merged 2 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 26 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ winres = "0.1.11"

[dependencies]
deno_core = { path = "../core", version = "0.86.0" }
deno_doc = "0.3.0"
deno_lint = "0.4.0"
deno_doc = "0.4.0"
deno_lint = "0.5.0"
deno_runtime = { path = "../runtime", version = "0.13.0" }

atty = "0.2.14"
Expand All @@ -43,7 +43,7 @@ data-url = "0.1.0"
dissimilar = "1.0.2"
dprint-plugin-json = "0.10.2"
dprint-plugin-markdown = "0.7.1"
dprint-plugin-typescript = "0.44.2"
dprint-plugin-typescript = "0.45.0"
encoding_rs = "0.8.28"
env_logger = "0.8.3"
fancy-regex = "0.5.0"
Expand All @@ -67,9 +67,9 @@ semver-parser = "0.10.2"
serde = { version = "1.0.125", features = ["derive"] }
shell-escape = "0.1.5"
sourcemap = "6.0.1"
swc_bundler = "0.32.5"
swc_common = { version = "0.10.17", features = ["sourcemap"] }
swc_ecmascript = { version = "0.31.3", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] }
swc_bundler = "0.34.0"
swc_common = { version = "0.10.18", features = ["sourcemap"] }
swc_ecmascript = { version = "0.33.0", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] }
tempfile = "3.2.0"
termcolor = "1.1.2"
text-size = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion cli/lsp/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn get_lint_references(
) -> Result<Vec<Reference>, AnyError> {
let syntax = ast::get_syntax(media_type);
let lint_rules = rules::get_recommended_rules();
let mut linter = create_linter(syntax, lint_rules);
let linter = create_linter(syntax, lint_rules);
// TODO(@kitsonk) we should consider caching the swc source file versions for
// reuse by other processes
let (_, lint_diagnostics) =
Expand Down
1 change: 0 additions & 1 deletion cli/tests/unit/timers_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ unitTest(async function timeoutCancelInvalidSilentFail(): Promise<void> {
// Expect no panic
const promise = deferred();
let count = 0;
// deno-lint-ignore no-unused-vars
const id = setTimeout((): void => {
count++;
// Should have no effect
Expand Down
4 changes: 2 additions & 2 deletions cli/tools/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fn lint_file(
let syntax = ast::get_syntax(&media_type);

let lint_rules = rules::get_recommended_rules();
let mut linter = create_linter(syntax, lint_rules);
let linter = create_linter(syntax, lint_rules);

let (_, file_diagnostics) = linter.lint(file_name, source_code.clone())?;

Expand All @@ -176,7 +176,7 @@ fn lint_stdin(json: bool) -> Result<(), AnyError> {
let mut reporter = create_reporter(reporter_kind);
let lint_rules = rules::get_recommended_rules();
let syntax = ast::get_syntax(&MediaType::TypeScript);
let mut linter = create_linter(syntax, lint_rules);
let linter = create_linter(syntax, lint_rules);
let mut has_error = false;
let pseudo_file_name = "_stdin.ts";
match linter
Expand Down