Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkunka committed Jun 9, 2020
1 parent 80f207e commit 99db25d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.2.1
- Fix node.js build
- Build deno as ES2019 for compatibility

### 0.2.0

- Bug fixes and accuracy/performance optimisations
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ import {createBandwidthThrottleGroup} from 'bandwidth-throttle-stream';
In Deno, all libraries are imported from URLs as ES modules. Versioned releases of `bandwidth-throttle-stream` are available from the [Pika](http://pika.dev) CDN:

```js
import {createBandwidthThrottleGroup} from 'https://cdn.pika.dev/bandwidth-throttle-sream@^0.2.0/mod.ts';
import {createBandwidthThrottleGroup} from 'https://cdn.pika.dev/bandwidth-throttle-sream/mod.ts';
```

The above URL will return the latest release, but it is strongly advised to lock your import to a specific version using the following syntax, where `.x.y.z` can be any published version of the library:

```js
import {createBandwidthThrottleGroup} from 'https://cdn.pika.dev/bandwidth-throttle-sream@x.y.z/mod.ts';
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion config/typescript/tsconfig.build.deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/deno",
"target": "ESNext",
"target": "ES2019",
"module": "ESNext",
"paths": {
"@Platform": ["../../src/Platform/index.deno"]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bandwidth-throttle-stream",
"version": "0.2.0",
"version": "0.2.1",
"description": "A Node.js and Deno transform stream for throttling bandwidth",
"author": "KunkaLabs Limited",
"private": false,
Expand All @@ -23,7 +23,7 @@
"clean:dist": "rm -rf dist",
"build:node": "ttsc -p ./config/typescript/tsconfig.build.node.json",
"build:deno": "ttsc -p ./config/typescript/tsconfig.build.deno.json",
"build": "npm run clean:dist npm run build:node && npm run build:deno",
"build": "npm run clean:dist && npm run build:node && npm run build:deno",
"lint": "tslint --project tsconfig.json -c ./config/tslint/tslint.json \"./src/**/*.ts\""
},
"husky": {
Expand Down

0 comments on commit 99db25d

Please sign in to comment.