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

Commit

Permalink
[NO-ISSUE] Support Deno 1.10.2 (#34)
Browse files Browse the repository at this point in the history
* chore: update rollup/deps and deno ci version
* chore: update deno version on ci test
* fix: mismatched types
* chore: type fixes, formatting and docs updates w/ new version
* fix: win newlines

Co-authored-by: buttercubz <ericksosagarcias@gmail.com>
  • Loading branch information
cmorten and buttercubz authored May 31, 2021
1 parent 7ae41d5 commit f85c23b
Show file tree
Hide file tree
Showing 59 changed files with 218 additions and 219 deletions.
5 changes: 5 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

## [2.50.5+0.18.0] - 31-05-2021

- chore: support Deno 1.10.2 and std 0.97.0
- feat: upgrade Rollup to 2.50.5

## [2.42.3+0.17.1] - 23-03-2021

- [#29] Rollup deno compiler options (#30)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-egg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: 1.8.2
- run: deno install -A -f --unstable -n eggs https://x.nest.land/eggs@0.3.5/eggs.ts
deno-version: 1.10.2
- run: deno install -A -f --unstable -n eggs https://x.nest.land/eggs@0.3.6/eggs.ts
- run: |
export PATH="/home/runner/.deno/bin:$PATH"
eggs link ${NEST_LAND_KEY}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
deno-version: [1.8.2]
deno-version: [1.10.2]

runs-on: ${{ matrix.os }}

Expand All @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
deno-version: [1.8.2]
deno-version: [1.10.2]

runs-on: ${{ matrix.os }}

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Next-generation ES module bundler for <a href="https://deno.land/">Deno</a> port
</p>
<p align="center">
<a href="https://deno.land/x/drollup"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Flatest-version%2Fx%2Fdrollup%2Fmod.ts" alt="deno-rollup latest /x/ version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.8.2-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.10.2-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/drollup/mod.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fdep-count%2Fx%2Fdrollup%2Fmod.ts" alt="deno-rollup dependency count" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/drollup/mod.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fupdates%2Fx%2Fdrollup%2Fmod.ts" alt="deno-rollup dependency outdatedness" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/drollup/mod.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fcache-size%2Fx%2Fdrollup%2Fmod.ts" alt="deno-rollup cached size" /></a>
Expand Down Expand Up @@ -55,7 +55,7 @@ with an optional configuration file, or else through its
To install the CLI run:

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand All @@ -80,7 +80,7 @@ rollup -c --watch
You can import deno-rollup straight into your project to bundle your modules:

```ts
import { rollup } from "https://deno.land/x/drollup@2.42.3+0.17.1/mod.ts";
import { rollup } from "https://deno.land/x/drollup@2.50.5+0.18.0/mod.ts";

const options = {
input: "./mod.ts",
Expand All @@ -99,7 +99,7 @@ await bundle.close();
Or using the `watch` API:

```ts
import { watch } from "https://deno.land/x/drollup@2.42.3+0.17.1/mod.ts";
import { watch } from "https://deno.land/x/drollup@2.50.5+0.18.0/mod.ts";

const options = {
input: "./src/mod.ts",
Expand Down Expand Up @@ -179,7 +179,7 @@ To run the [examples](./examples) you have a couple of options:
1. Run the deno-rollup `helloDeno` example directly from the repository:

```console
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/helloDeno/rollup.build.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/helloDeno/rollup.build.ts
```

This will create a `./dist` directory with the bundled files in your current
Expand Down
19 changes: 10 additions & 9 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ export {
resolve,
sep,
toFileUrl,
} from "https://deno.land/std@0.91.0/path/mod.ts";
} from "https://deno.land/std@0.97.0/path/mod.ts";
export {
bold,
cyan,
dim,
green,
red,
underline,
} from "https://deno.land/std@0.91.0/fmt/colors.ts";
export { EventEmitter } from "https://deno.land/std@0.91.0/node/events.ts";
} from "https://deno.land/std@0.97.0/fmt/colors.ts";
export { EventEmitter } from "https://deno.land/std@0.97.0/node/events.ts";

/**
* Rollup
*/

// @deno-types="https://unpkg.com/rollup@2.42.3/dist/rollup.d.ts"
// @deno-types="https://unpkg.com/rollup@2.50.5/dist/rollup.d.ts"
export {
rollup,
VERSION,
} from "https://unpkg.com/rollup@2.42.3/dist/es/rollup.browser.js";
} from "https://unpkg.com/rollup@2.50.5/dist/es/rollup.browser.js";
export type {
AddonHook,
AddonHookFunction,
Expand All @@ -60,6 +60,7 @@ export type {
GlobalsOption,
HasModuleSideEffects,
InputOption,
InputOptions,
InternalModuleFormat,
InteropType,
IsExternal,
Expand Down Expand Up @@ -131,21 +132,21 @@ export type {
WarningHandler,
WarningHandlerWithDefault,
WatchChangeHook,
} from "https://unpkg.com/rollup@2.42.3/dist/rollup.d.ts";
} from "https://unpkg.com/rollup@2.50.5/dist/rollup.d.ts";

/**
* deno.land/x
*/

export { Command } from "https://deno.land/x/cliffy@v0.18.1/command/mod.ts";
export { Command } from "https://deno.land/x/cliffy@v0.19.1/command/mod.ts";
export type {
IParseResult,
ITypeInfo,
} from "https://deno.land/x/cliffy@v0.18.1/command/mod.ts";
} from "https://deno.land/x/cliffy@v0.19.1/command/mod.ts";

/**
* esm.sh
*/

export { default as ms } from "https://esm.sh/ms@2.1.3";
export { default as pm } from "https://esm.sh/picomatch@2.2.2";
export { default as pm } from "https://esm.sh/picomatch@2.3.0";
5 changes: 4 additions & 1 deletion egg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "drollup",
"description": "Next-generation ES module bundler for Deno ported from Rollup.",
"version": "2.42.3+0.17.1",
"version": "2.50.5+0.18.0",
"repository": "https://github.com/cmorten/deno-rollup",
"stable": true,
"files": [
Expand All @@ -17,6 +17,9 @@
"./ROLLUP_LICENSE.md",
"./.github/CHANGELOG.md"
],
"checkFormat": false,
"checkTests": false,
"checkInstallation": false,
"check": false,
"entry": "./mod.ts",
"homepage": "https://github.com/cmorten/deno-rollup",
Expand Down
8 changes: 4 additions & 4 deletions examples/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/css/rollup.build.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/css/rollup.build.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.build.ts
Expand All @@ -39,7 +39,7 @@ Alternatively you can use the Rollup CLI to bundle files.
Install the CLI:

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand All @@ -59,7 +59,7 @@ on disk run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/css/rollup.watch.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/css/rollup.watch.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.watch.ts
Expand All @@ -78,7 +78,7 @@ Alternatively you can use the Rollup CLI to watch and rebuild your bundle.
Install the CLI (same as before):

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand Down
8 changes: 4 additions & 4 deletions examples/helloDeno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/helloDeno/rollup.build.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/helloDeno/rollup.build.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.build.ts
Expand All @@ -43,7 +43,7 @@ Alternatively you can use the Rollup CLI to bundle files.
Install the CLI:

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand All @@ -63,7 +63,7 @@ on disk run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/helloDeno/rollup.watch.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/helloDeno/rollup.watch.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.watch.ts
Expand All @@ -82,7 +82,7 @@ Alternatively you can use the Rollup CLI to watch and rebuild your bundle.
Install the CLI (same as before):

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand Down
8 changes: 4 additions & 4 deletions examples/html/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/html/rollup.build.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/html/rollup.build.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.build.ts
Expand All @@ -39,7 +39,7 @@ Alternatively you can use the Rollup CLI to bundle files.
Install the CLI:

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand All @@ -59,7 +59,7 @@ on disk run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/html/rollup.watch.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/html/rollup.watch.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.watch.ts
Expand All @@ -78,7 +78,7 @@ Alternatively you can use the Rollup CLI to watch and rebuild your bundle.
Install the CLI (same as before):

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand Down
8 changes: 4 additions & 4 deletions examples/image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/image/rollup.build.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/image/rollup.build.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.build.ts
Expand All @@ -39,7 +39,7 @@ Alternatively you can use the Rollup CLI to bundle files.
Install the CLI:

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand All @@ -59,7 +59,7 @@ on disk run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/image/rollup.watch.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/image/rollup.watch.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.watch.ts
Expand All @@ -78,7 +78,7 @@ Alternatively you can use the Rollup CLI to watch and rebuild your bundle.
Install the CLI (same as before):

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand Down
8 changes: 4 additions & 4 deletions examples/importmap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/importmap/rollup.build.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/importmap/rollup.build.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.build.ts
Expand All @@ -45,7 +45,7 @@ Alternatively you can use the Rollup CLI to bundle files.
Install the CLI:

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand All @@ -65,7 +65,7 @@ on disk run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/importmap/rollup.watch.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/importmap/rollup.watch.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.watch.ts
Expand All @@ -84,7 +84,7 @@ Alternatively you can use the Rollup CLI to watch and rebuild your bundle.
Install the CLI (same as before):

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand Down
8 changes: 4 additions & 4 deletions examples/json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/json/rollup.build.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/json/rollup.build.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.build.ts
Expand All @@ -35,7 +35,7 @@ Alternatively you can use the Rollup CLI to bundle files.
Install the CLI:

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand All @@ -55,7 +55,7 @@ on disk run:

```console
# Direct from repository
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/examples/json/rollup.watch.ts
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/examples/json/rollup.watch.ts

# When cloned locally
deno run --allow-read="./" --allow-write="./dist" --allow-net="deno.land" --allow-env --unstable ./rollup.watch.ts
Expand All @@ -74,7 +74,7 @@ Alternatively you can use the Rollup CLI to watch and rebuild your bundle.
Install the CLI (same as before):

```console
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.42.3+0.17.1/rollup.ts
deno install -f -q --allow-read --allow-write --allow-net --allow-env --unstable https://deno.land/x/drollup@2.50.5+0.18.0/rollup.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand Down
Loading

0 comments on commit f85c23b

Please sign in to comment.