Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
release: 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenptrs committed Oct 5, 2020
1 parent 0203ea0 commit ccee639
Show file tree
Hide file tree
Showing 24 changed files with 56 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!**
Expand Down
2 changes: 1 addition & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <pathToFile>",
Expand Down
2 changes: 1 addition & 1 deletion cli/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type Options = {

export function printDefaultConfig(): void {
console.log(
`import { pluginTerserTransform, RollupOptions, useCache } from "https://deno.land/x/denopack@0.9.1/mod.ts";
`import { pluginTerserTransform, RollupOptions, useCache } from "https://deno.land/x/denopack@0.10.0/mod.ts";
const config: RollupOptions = {
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,11 @@ <h1 class="_z0lel4 _aaucdt">
<h2>Installation</h2>
<h4>From deno.land</h4>
<code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>deno run --allow-run --allow-read https://deno.land/x/denopack@0.9.1/install.ts</code
>deno run --allow-run --allow-read https://deno.land/x/denopack@0.10.0/install.ts</code
>
<h4>From nest.land</h4>
<code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>deno run --allow-run --allow-read https://x.nest.land/denopack@0.9.1/install.ts</code
>deno run --allow-run --allow-read https://x.nest.land/denopack@0.10.0/install.ts</code
>
</section>
<section class="_7gprpd _1d3w5wq _1v0pok0 _1b2rrds">
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ <h4>Usage</h4>
</p>
<code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>import /* whatever plugins/hooks are needed */
&quot;https://deno.land/x/denopack@0.9.1/plugin/mod.ts&quot;;<br /><br />export default {<br /><span
&quot;https://deno.land/x/denopack@0.10.0/plugin/mod.ts&quot;;<br /><br />export default {<br /><span
class="_c0o9fp"
></span
>file: &quot;mod.ts&quot;,<br /><span class="_c0o9fp"></span>plugins: [ /* whatever plugins or hooks were
Expand Down
6 changes: 3 additions & 3 deletions docs/scriptRunners.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ <h4>
</h4>
<code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>scripts:<br /><span class="_c0o9fp"></span>start: deno run --unstable --allow-read --allow-write
https://deno.land/x/denopack@0.9.1/cli.ts</code
https://deno.land/x/denopack@0.10.0/cli.ts</code
><code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>vr run start -i mod.ts -o bundle.js</code
>
Expand All @@ -420,7 +420,7 @@ <h4>
</h4>
<code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>scripts:<br /><span class="_c0o9fp"></span>start:<br /><span class="_c0o9fp"></span
><span class="_c0o9fp"></span>file: https://deno.land/x/denopack@0.9.1/cli.ts<br /><span
><span class="_c0o9fp"></span>file: https://deno.land/x/denopack@0.10.0/cli.ts<br /><span
class="_c0o9fp"
></span
><span class="_c0o9fp"></span>deno_options:<br /><span class="_c0o9fp"></span><span class="_c0o9fp"></span
Expand All @@ -440,7 +440,7 @@ <h4>
<code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>{<br /><span class="_c0o9fp"></span>&quot;config&quot;: {<br /><span class="_c0o9fp"></span
><span class="_c0o9fp"></span> &quot;start&quot;: &quot;--unstable --allow-read --allow-write
https://deno.land/x/denopack@0.9.1/cli.ts -i mod.ts -o bundle.js&quot;<br /><span class="_c0o9fp"></span
https://deno.land/x/denopack@0.10.0/cli.ts -i mod.ts -o bundle.js&quot;<br /><span class="_c0o9fp"></span
>}<br />}</code
><code class="_4zleql _1c5db6i _198h3gx _e5fju0 _1n7r223 _1l5zf79 _1j3zebv _1bmnxg7 _18uqayh"
>vr run start -i mod.ts -o bundle.js</code
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ function Index() {
<h4>From deno.land</h4>
<CodeBlock>
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
</CodeBlock>
<h4>From nest.land</h4>
<CodeBlock>
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
</CodeBlock>
</Section>
<Section title="Goal" className={sectionContainer}>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/plugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Plugins() {
</p>
<CodeBlock>
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";
<br />
<br />
export default {"{"}
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/scriptRunners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ScriptRunners() {
<br />
<Pad />
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
</CodeBlock>
<CodeBlock>vr run start -i mod.ts -o bundle.js</CodeBlock>
<h4>
Expand All @@ -64,7 +64,7 @@ function ScriptRunners() {
<br />
<Pad />
<Pad />
file: https://deno.land/x/denopack@0.9.1/cli.ts
file: https://deno.land/x/denopack@0.10.0/cli.ts
<br />
<Pad />
<Pad />
Expand Down Expand Up @@ -103,7 +103,7 @@ function ScriptRunners() {
<Pad />
<Pad />
"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"
<br />
<Pad />
{"}"}
Expand Down
2 changes: 1 addition & 1 deletion egg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 6 additions & 6 deletions plugin/cacheLoader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand All @@ -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: [
Expand Down
6 changes: 3 additions & 3 deletions plugin/chainResolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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())],
Expand Down
2 changes: 1 addition & 1 deletion plugin/cssBundle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" })],
Expand Down
10 changes: 5 additions & 5 deletions plugin/fileLoader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand All @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion plugin/htmlBundle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
2 changes: 1 addition & 1 deletion plugin/importResolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
2 changes: 1 addition & 1 deletion plugin/rootResolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
4 changes: 2 additions & 2 deletions plugin/serve/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
## 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")],
};
```

```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",
Expand Down
8 changes: 4 additions & 4 deletions plugin/terserTransform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
6 changes: 3 additions & 3 deletions plugin/typescriptCompile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand All @@ -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 } })],
Expand Down
6 changes: 3 additions & 3 deletions plugin/typescriptTransform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 })],
Expand Down
4 changes: 2 additions & 2 deletions recipes/react-template/denopack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit ccee639

Please sign in to comment.