Skip to content

Commit

Permalink
refactor: use deno_semver (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Apr 3, 2023
1 parent 9dbc98a commit 1ace7b6
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 2,663 deletions.
14 changes: 13 additions & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ name = "deno_graph"
anyhow = "1.0.43"
data-url = "0.2.0"
deno_ast = { version = "0.25.0", features = ["dep_graph", "module_specifier"] }
deno_semver = "0.2.0"
futures = "0.3.26"
indexmap = "1.9.2"
monch = "0.4.1"
once_cell = "1.16.0"
parking_lot = "0.12.0"
regex = "1.5.4"
Expand Down
6 changes: 3 additions & 3 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ use crate::ReferrerImports;
use crate::module_specifier::resolve_import;
use crate::module_specifier::ModuleSpecifier;
use crate::module_specifier::SpecifierError;
use crate::npm::NpmPackageNv;
use crate::npm::NpmPackageNvReference;
use crate::npm::NpmPackageReqReference;
use crate::source::*;

use anyhow::Error;
Expand All @@ -24,6 +21,9 @@ use deno_ast::LineAndColumnIndex;
use deno_ast::MediaType;
use deno_ast::SourcePos;
use deno_ast::SourceTextInfo;
use deno_semver::npm::NpmPackageNv;
use deno_semver::npm::NpmPackageNvReference;
use deno_semver::npm::NpmPackageReqReference;
use futures::future::LocalBoxFuture;
use futures::stream::FuturesOrdered;
use futures::stream::FuturesUnordered;
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ mod analyzer;
mod ast;
mod graph;
mod module_specifier;
pub mod npm;
pub mod semver;

pub mod source;
mod text_encoding;

Expand Down
Loading

0 comments on commit 1ace7b6

Please sign in to comment.