diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index b1d09bd..7897fd6 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -27,7 +27,7 @@ If applicable, add screenshots to help explain your problem.
- OS: [e.g. macOS, Ubuntu, ...]
- Deno version [e.g. v1.3.0]
-- denopack version [e.g. 0.9.1]
+- denopack version [e.g. 0.10.0]
**Additional context**
Add any other context about the problem here.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 65d2b7c..474b14a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [0.10.0](https://github.com/denofn/denopack/compare/0.9.1..0.10.0) - 2020-10-05
+
+### Changed
+
+- normalize file module specifier to file:// URLs
+
## [0.9.1](https://github.com/denofn/denopack/compare/0.9.0..0.9.1) - 2020-10-03
### Fixed
diff --git a/README.md b/README.md
index 77bbba3..1db26ea 100644
--- a/README.md
+++ b/README.md
@@ -19,11 +19,11 @@
### Installation
```sh
-deno run --allow-run --allow-read https://deno.land/x/denopack@0.9.1/install.ts
+deno run --allow-run --allow-read https://deno.land/x/denopack@0.10.0/install.ts
```
```sh
-deno run --allow-run --allow-read https://x.nest.land/denopack@0.9.1/install.ts
+deno run --allow-run --allow-read https://x.nest.land/denopack@0.10.0/install.ts
```
**NOTE: denopack uses unstable Deno APIs. These APIs are not final and may break, but this does mean `--unstable` is mandatory!**
diff --git a/cli.ts b/cli.ts
index fe95f63..99c58d5 100644
--- a/cli.ts
+++ b/cli.ts
@@ -4,7 +4,7 @@ import { watch } from "./cli/watch.ts";
import { cac } from "./deps.ts";
const denopack = cac("denopack");
-denopack.version("0.9.1");
+denopack.version("0.10.0");
denopack.option(
"-i, --input
Installation
From deno.land
deno run --allow-run --allow-read https://deno.land/x/denopack@0.9.1/install.ts
deno run --allow-run --allow-read https://deno.land/x/denopack@0.10.0/install.ts
From nest.land
deno run --allow-run --allow-read https://x.nest.land/denopack@0.9.1/install.ts
deno run --allow-run --allow-read https://x.nest.land/denopack@0.10.0/install.ts
Usage
import /* whatever plugins/hooks are needed */
- "https://deno.land/x/denopack@0.9.1/plugin/mod.ts";
export default {
export default {
file: "mod.ts",
plugins: [ /* whatever plugins or hooks were
diff --git a/docs/scriptRunners.html b/docs/scriptRunners.html
index 7239f58..a992d71 100644
--- a/docs/scriptRunners.html
+++ b/docs/scriptRunners.html
@@ -411,7 +411,7 @@
scripts:
start: deno run --unstable --allow-read --allow-write
- https://deno.land/x/denopack@0.9.1/cli.ts
vr run start -i mod.ts -o bundle.js
@@ -420,7 +420,7 @@
scripts:
start:
file: https://deno.land/x/denopack@0.9.1/cli.ts
file: https://deno.land/x/denopack@0.10.0/cli.ts
deno_options:
{
"config": {
"start": "--unstable --allow-read --allow-write
- https://deno.land/x/denopack@0.9.1/cli.ts -i mod.ts -o bundle.js"
}
}
vr run start -i mod.ts -o bundle.js
From deno.land
deno run --allow-run --allow-read
- https://deno.land/x/denopack@0.9.1/install.ts
+ https://deno.land/x/denopack@0.10.0/install.ts
From nest.land
deno run --allow-run --allow-read
- https://x.nest.land/denopack@0.9.1/install.ts
+ https://x.nest.land/denopack@0.10.0/install.ts
diff --git a/docs/src/pages/plugins.tsx b/docs/src/pages/plugins.tsx
index 333bea7..e1974bf 100644
--- a/docs/src/pages/plugins.tsx
+++ b/docs/src/pages/plugins.tsx
@@ -57,7 +57,7 @@ function Plugins() {
import /* whatever plugins/hooks are needed */
- "https://deno.land/x/denopack@0.9.1/plugin/mod.ts";
+ "https://deno.land/x/denopack@0.10.0/plugin/mod.ts";
export default {"{"}
diff --git a/docs/src/pages/scriptRunners.tsx b/docs/src/pages/scriptRunners.tsx
index 5080e81..f379abc 100644
--- a/docs/src/pages/scriptRunners.tsx
+++ b/docs/src/pages/scriptRunners.tsx
@@ -45,7 +45,7 @@ function ScriptRunners() {
start: deno run --unstable --allow-read --allow-write
- https://deno.land/x/denopack@0.9.1/cli.ts
+ https://deno.land/x/denopack@0.10.0/cli.ts
vr run start -i mod.ts -o bundle.js
@@ -64,7 +64,7 @@ function ScriptRunners() {
- file: https://deno.land/x/denopack@0.9.1/cli.ts
+ file: https://deno.land/x/denopack@0.10.0/cli.ts
@@ -103,7 +103,7 @@ function ScriptRunners() {
"start": "--unstable --allow-read --allow-write
- https://deno.land/x/denopack@0.9.1/cli.ts -i mod.ts -o bundle.js"
+ https://deno.land/x/denopack@0.10.0/cli.ts -i mod.ts -o bundle.js"
{"}"}
diff --git a/egg.json b/egg.json
index 89bdbae..22793be 100644
--- a/egg.json
+++ b/egg.json
@@ -1,7 +1,7 @@
{
"name": "denopack",
"description": "Bundling and minification toolset for Deno",
- "version": "0.9.1",
+ "version": "0.10.0",
"unstable": true,
"entry": "./cli.ts",
"repository": "https://github.com/denofn/denopack",
diff --git a/plugin/cacheLoader/README.md b/plugin/cacheLoader/README.md
index 05d3856..285b656 100644
--- a/plugin/cacheLoader/README.md
+++ b/plugin/cacheLoader/README.md
@@ -20,9 +20,9 @@
Put this before pluginFileLoader
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
-import { pluginCacheLoader } from "https://deno.land/x/denopack@0.9.1/plugin/cacheLoader/mod.ts";
-import { pluginFileLoader } from "https://deno.land/x/denopack@0.9.1/plugin/filLoader/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
+import { pluginCacheLoader } from "https://deno.land/x/denopack@0.10.0/plugin/cacheLoader/mod.ts";
+import { pluginFileLoader } from "https://deno.land/x/denopack@0.10.0/plugin/filLoader/mod.ts";
export default {
plugins: [pluginImportResolver(), pluginCacheLoader(), pluginFileLoader()],
@@ -32,9 +32,9 @@ export default {
### Strict integrity checks
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
-import { pluginCacheLoader } from "https://deno.land/x/denopack@0.9.1/plugin/cacheLoader/mod.ts";
-import { pluginFileLoader } from "https://deno.land/x/denopack@0.9.1/plugin/filLoader/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
+import { pluginCacheLoader } from "https://deno.land/x/denopack@0.10.0/plugin/cacheLoader/mod.ts";
+import { pluginFileLoader } from "https://deno.land/x/denopack@0.10.0/plugin/filLoader/mod.ts";
export default {
plugins: [
diff --git a/plugin/chainResolver/README.md b/plugin/chainResolver/README.md
index 6f76cf3..146397a 100644
--- a/plugin/chainResolver/README.md
+++ b/plugin/chainResolver/README.md
@@ -5,9 +5,9 @@ If files are resolved, Rollup will skip all other resolvers for that file. Somet
## Usage
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
-import { pluginChainResolver } from "https://deno.land/x/denopack@0.9.1/plugin/chainResolver/mod.ts";
-import { pluginCacheResolver } from "https://deno.land/x/denopack@0.9.1/plugin/cacheResolver/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
+import { pluginChainResolver } from "https://deno.land/x/denopack@0.10.0/plugin/chainResolver/mod.ts";
+import { pluginCacheResolver } from "https://deno.land/x/denopack@0.10.0/plugin/cacheResolver/mod.ts";
export default {
plugins: [pluginChainResolver(pluginImportResolver(), pluginCacheResolver())],
diff --git a/plugin/cssBundle/README.md b/plugin/cssBundle/README.md
index 705f7f8..df14caa 100644
--- a/plugin/cssBundle/README.md
+++ b/plugin/cssBundle/README.md
@@ -19,7 +19,7 @@ This plugin is a rough rewrite of [rollup-plugin-css-only](https://github.com/th
## Usage
```ts
-import css from "https://deno.land/x/denopack@0.9.1/plugin/cssBundle/mod.ts";
+import css from "https://deno.land/x/denopack@0.10.0/plugin/cssBundle/mod.ts";
export default {
plugins: [css({ output: "bundle.css" })],
diff --git a/plugin/fileLoader/README.md b/plugin/fileLoader/README.md
index 3c19ecb..4c5d8d4 100644
--- a/plugin/fileLoader/README.md
+++ b/plugin/fileLoader/README.md
@@ -16,8 +16,8 @@
## Usage
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
-import { pluginFileLoader } from "https://deno.land/x/denopack@0.9.1/plugin/fileLoader/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
+import { pluginFileLoader } from "https://deno.land/x/denopack@0.10.0/plugin/fileLoader/mod.ts";
export default {
plugins: [pluginImportResolver(), pluginFileLoader()],
@@ -27,9 +27,9 @@ export default {
### Strict integrity checks
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
-import { pluginCacheLoader } from "https://deno.land/x/denopack@0.9.1/plugin/cacheLoader/mod.ts";
-import { pluginFileLoader } from "https://deno.land/x/denopack@0.9.1/plugin/filLoader/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
+import { pluginCacheLoader } from "https://deno.land/x/denopack@0.10.0/plugin/cacheLoader/mod.ts";
+import { pluginFileLoader } from "https://deno.land/x/denopack@0.10.0/plugin/filLoader/mod.ts";
export default {
plugins: [
diff --git a/plugin/htmlBundle/README.md b/plugin/htmlBundle/README.md
index 3756b22..9cef441 100644
--- a/plugin/htmlBundle/README.md
+++ b/plugin/htmlBundle/README.md
@@ -34,7 +34,7 @@ This plugin is a Deno rewrite of [@rollup/plugin-html](https://github.com/rollup
## Usage
```ts
-import html from "https://deno.land/x/denopack@0.9.1/plugin/htmlBundle/mod.ts";
+import html from "https://deno.land/x/denopack@0.10.0/plugin/htmlBundle/mod.ts";
export default {
plugins: [html()],
diff --git a/plugin/importResolver/README.md b/plugin/importResolver/README.md
index 7067fc4..206e2e4 100644
--- a/plugin/importResolver/README.md
+++ b/plugin/importResolver/README.md
@@ -6,7 +6,7 @@ Use this plugin if you want to write your resolving logic yourself.
## Usage
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
export default {
plugins: [pluginImportResolver()],
diff --git a/plugin/rootResolver/README.md b/plugin/rootResolver/README.md
index eb3742a..52404e6 100644
--- a/plugin/rootResolver/README.md
+++ b/plugin/rootResolver/README.md
@@ -6,7 +6,7 @@ Use this plugin if you want to write your resolving logic yourself.
## Usage
```ts
-import { pluginRootResolver } from "https://deno.land/x/denopack@0.9.1/plugin/rootResolver/mod.ts";
+import { pluginRootResolver } from "https://deno.land/x/denopack@0.10.0/plugin/rootResolver/mod.ts";
export default {
plugins: [pluginRootResolver()],
diff --git a/plugin/serve/README.md b/plugin/serve/README.md
index ce31013..91c6287 100644
--- a/plugin/serve/README.md
+++ b/plugin/serve/README.md
@@ -24,7 +24,7 @@
## Usage
```ts
-import { pluginServe } from "https://deno.land/x/denopack@0.9.1/plugin/serve/mod.ts";
+import { pluginServe } from "https://deno.land/x/denopack@0.10.0/plugin/serve/mod.ts";
export default {
plugins: [pluginServe("serve_path")],
@@ -32,7 +32,7 @@ export default {
```
```ts
-import { pluginServe } from "https://deno.land/x/denopack@0.9.1/plugin/serve/mod.ts";
+import { pluginServe } from "https://deno.land/x/denopack@0.10.0/plugin/serve/mod.ts";
const options_object = {
contentBase: "serve_path",
diff --git a/plugin/terserTransform/README.md b/plugin/terserTransform/README.md
index fcfb3d8..29771b1 100644
--- a/plugin/terserTransform/README.md
+++ b/plugin/terserTransform/README.md
@@ -9,10 +9,10 @@ Use Terser to minify/compress/mangle/... your bundle.
## Usage
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
-import { pluginFileLoader } from "https://deno.land/x/denopack@0.9.1/plugin/fileLoader/mod.ts";
-import { pluginTypescriptTransform } from "https://deno.land/x/denopack@0.9.1/plugin/typescriptTransform/mod.ts";
-import { pluginTerserTransform } from "https://deno.land/x/denopack@0.9.1/plugin/terserTransform/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
+import { pluginFileLoader } from "https://deno.land/x/denopack@0.10.0/plugin/fileLoader/mod.ts";
+import { pluginTypescriptTransform } from "https://deno.land/x/denopack@0.10.0/plugin/typescriptTransform/mod.ts";
+import { pluginTerserTransform } from "https://deno.land/x/denopack@0.10.0/plugin/terserTransform/mod.ts";
export default {
plugins: [
diff --git a/plugin/typescriptCompile/README.md b/plugin/typescriptCompile/README.md
index c287ca4..2e394f8 100644
--- a/plugin/typescriptCompile/README.md
+++ b/plugin/typescriptCompile/README.md
@@ -26,8 +26,8 @@ If you don't care about source maps, using the Compiler API with appears to be t
### In conjunction with a source file loader
```ts
-import { pluginTypescriptCompile } from "https://deno.land/x/denopack@0.9.1/plugin/typescriptCompile/mod.ts";
-import { pluginFileLoader } from "https://deno.land/x/denopack@0.9.1/plugin/fileLoader/mod.ts";
+import { pluginTypescriptCompile } from "https://deno.land/x/denopack@0.10.0/plugin/typescriptCompile/mod.ts";
+import { pluginFileLoader } from "https://deno.land/x/denopack@0.10.0/plugin/fileLoader/mod.ts";
export default {
plugins: [pluginTypescriptCompile({ compilerOptions: { ...myCompilerOptions } }), pluginFileLoader()],
@@ -37,7 +37,7 @@ export default {
### Explicitly loading files
```ts
-import { pluginTypescriptCompile } from "https://deno.land/x/denopack@0.9.1/plugin/typescriptCompile/mod.ts";
+import { pluginTypescriptCompile } from "https://deno.land/x/denopack@0.10.0/plugin/typescriptCompile/mod.ts";
export default {
plugins: [pluginTypescriptCompile({ useAsLoader: true, compilerOptions: { ...myCompilerOptions } })],
diff --git a/plugin/typescriptTransform/README.md b/plugin/typescriptTransform/README.md
index 2520a2b..5d490fe 100644
--- a/plugin/typescriptTransform/README.md
+++ b/plugin/typescriptTransform/README.md
@@ -13,9 +13,9 @@ Uses the internal `Deno.transpileOnly` [compiler API](https://deno.land/manual/r
## Usage
```ts
-import { pluginImportResolver } from "https://deno.land/x/denopack@0.9.1/plugin/importResolver/mod.ts";
-import { pluginFileLoader } from "https://deno.land/x/denopack@0.9.1/plugin/fileLoader/mod.ts";
-import { pluginTypescriptTransform } from "https://deno.land/x/denopack@0.9.1/plugin/typescriptTransform/mod.ts";
+import { pluginImportResolver } from "https://deno.land/x/denopack@0.10.0/plugin/importResolver/mod.ts";
+import { pluginFileLoader } from "https://deno.land/x/denopack@0.10.0/plugin/fileLoader/mod.ts";
+import { pluginTypescriptTransform } from "https://deno.land/x/denopack@0.10.0/plugin/typescriptTransform/mod.ts";
export default {
plugins: [pluginImportResolver(), pluginFileLoader(), pluginTypescriptTransform({ ...myOptions })],
diff --git a/recipes/react-template/denopack.config.ts b/recipes/react-template/denopack.config.ts
index be3fbc8..d7567e2 100644
--- a/recipes/react-template/denopack.config.ts
+++ b/recipes/react-template/denopack.config.ts
@@ -5,12 +5,12 @@ import {
pluginServe as serve,
pluginTerserTransform as terser,
useCache,
-} from "https://deno.land/x/denopack@0.9.1/mod.ts";
+} from "https://deno.land/x/denopack@0.10.0/mod.ts";
import type {
RollupOptions,
TemplateOpts,
-} from "https://deno.land/x/denopack@0.9.1/mod.ts";
+} from "https://deno.land/x/denopack@0.10.0/mod.ts";
const isDev = !Deno.env.get("REACT_APP_IS_PROD");