From f1611d03f258051d1cfa2f677c0a855bb682ec32 Mon Sep 17 00:00:00 2001 From: bvanjoi Date: Mon, 11 Jul 2022 16:29:37 +0800 Subject: [PATCH] release: 0.0.18 --- Cargo.toml | 4 ++-- index.d.ts | 1 - package.json | 2 +- src/lib.rs | 5 ----- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1132d6e..a6cd449 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,8 @@ crate-type = ["cdylib"] [dependencies] napi = "2" napi-derive = "2" -nodejs-resolver = "0.0.26" -serde = { version = "1.0.137", features = ["derive"] } +nodejs-resolver = "0.0.27" +serde = { version = "1.0.138", features = ["derive"] } [build-dependencies] napi-build = "2" diff --git a/index.d.ts b/index.d.ts index 6059a53..d8975a0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -25,7 +25,6 @@ export interface RawResolverOptions { mainFields?: Array modules?: Array preferRelative?: boolean - enableUnsafeCache?: boolean tsconfigPath?: string } export interface ResolverInternal { diff --git a/package.json b/package.json index b61bbec..9a12aae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodejs-resolver", - "version": "0.0.17", + "version": "0.0.18", "description": "node binding for nodejs-resolver", "main": "index.js", "license": "MIT", diff --git a/src/lib.rs b/src/lib.rs index 40fc2db..0818dfe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,6 @@ pub struct RawResolverOptions { pub main_fields: Option>, pub modules: Option>, pub prefer_relative: Option, - pub enable_unsafe_cache: Option, pub tsconfig_path: Option, } @@ -54,10 +53,6 @@ impl RawResolverOptions { main_files: self.main_files.to_owned().unwrap_or(default.main_files), main_fields: self.main_fields.to_owned().unwrap_or(default.main_fields), prefer_relative: self.prefer_relative.unwrap_or(default.prefer_relative), - disable_unsafe_cache: self - .enable_unsafe_cache - .to_owned() - .unwrap_or(default.disable_unsafe_cache), tsconfig: self.tsconfig_path.to_owned().map(PathBuf::from), unsafe_cache, }