Skip to content

Commit

Permalink
Prepare 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Oct 7, 2024
1 parent 1db953a commit 88d8ab8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Full documentation available at [base64.56k.guru](https://base64.56k.guru)

Node.js: `npm install @hexagon/base64 --save`

Deno (x): `import base64 from "https://deno.land/x/b64@1.1.28/src/base64.js";`
Deno (x): `import base64 from "https://deno.land/x/b64@2.0.0/src/base64.ts";`

Deno (jsr.io): `import base64 from "jsr:@hexagon/base64@1.1.28";`
Deno (jsr.io): `import base64 from "jsr:@hexagon/base64@2.0.0";`

For browser/cdn usage, refer to the documentation.

Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hexagon/base64",
"version": "2.0.0-dev.6",
"version": "2.0.0",
"exports": "./src/base64.ts",
"lint": {
"include": ["src", "test", "build"]
Expand Down
14 changes: 7 additions & 7 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ JavaScript:

```javascript
// Deno.land/x
import base64 from "https://deno.land/x/b64@1.1.28/src/base64.js";
import base64 from "https://deno.land/x/b64@2.0.0/src/base64.ts";

// ... or jsr.io
import base64 from "jsr:@hexagon/base64@1.1.28";
import base64 from "jsr:@hexagon/base64@2.0.0";
```

TypeScript:

```
// Deno.land/x
import { base64 } from "https://deno.land/x/b64@1.1.28/src/base64.js";
import { base64 } from "https://deno.land/x/b64@2.0.0/src/base64.ts";
// ... or jsr.io
import { base64 } from "jsr:@hexagon/base64@1.1.28";
import { base64 } from "jsr:@hexagon/base64@2.0.0";
```

### Browser
Expand All @@ -63,21 +63,21 @@ import { base64 } from "jsr:@hexagon/base64@1.1.28";

- Download the latest [zipball](https://github.com/Hexagon/base64/archive/refs/heads/master.zip).
- Unpack.
- Grab `base64.min.js` (UMD and standalone) or `base64.min.mjs` (ES-module) from the [dist/](/dist) folder.
- Grab `base64.umd.js` (UMD and standalone) or `base64.js` (ES-module) from the [dist/](/dist) folder.

#### CDN

For a [UMD](https://github.com/umdjs/umd)-module (standalone, [RequireJS](https://requirejs.org/), etc.):

```html
<script src="https://cdn.jsdelivr.net/npm/@hexagon/base64@1/dist/base64.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@hexagon/base64@2/dist/base64.umd.js"></script>
```

As an [ES-module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules):

```html
<script type="module">
import base64 from "https://cdn.jsdelivr.net/npm/@hexagon/base64@1/dist/base64.min.mjs";
import base64 from "https://cdn.jsdelivr.net/npm/@hexagon/base64@2/dist/base64.js";
// ... see 'Usage' section ...
</script>
```

0 comments on commit 88d8ab8

Please sign in to comment.