Skip to content

Commit

Permalink
Deprecate deno.land/x hosting support
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Nov 24, 2024
1 parent 2556630 commit 02eac3b
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 42 deletions.
3 changes: 0 additions & 3 deletions HANDBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ The following commands can be run from the root of the monorepo to build the res
then **publish it to both [NPM](https://www.npmjs.com/search?q=%40simplewebauthn) and
[JSR](https://jsr.io/@simplewebauthn)**.

Publishing to **[deno.land/x](https://deno.land/x/simplewebauthn)** will happen as part of the last
step at the end of this handbook.

#### Need to publish @simplewebauthn/types?

```
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ An additional package is also included that contains shared TypeScript definitio

## Installation

SimpleWebAuthn is available on **[NPM](https://www.npmjs.com/search?q=%40simplewebauthn)**,
**[JSR](https://jsr.io/@simplewebauthn)**, and **[deno.land/x](https://deno.land/x/simplewebauthn)**
for import into **Node LTS 20.x and higher**, **Deno v1.43 and higher** projects, and other
compatible runtimes (Cloudflare Workers, Bun, etc...)
SimpleWebAuthn can be installed from **[NPM](https://www.npmjs.com/search?q=%40simplewebauthn)** and
**[JSR](https://jsr.io/@simplewebauthn)** in **Node LTS 20.x and higher**, **Deno v1.43 and higher**
projects, and other compatible runtimes (Cloudflare Workers, Bun, etc...)

See the packages' READMEs for more specific installation information.

Expand Down
23 changes: 13 additions & 10 deletions deno/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Simple imports for Deno projects
# [DEPRECATED] deno.land/x support

These **.ts** files enable shorter imports of the various packages available in this monorepo when
importing SimpleWebAuthn from https://deno.land/x/simplewebauthn.
Importing SimpleWebAuthn packages from `"https://deno.land/x/simplewebauthn/..."` URLs is no longer
supported. Please use `deno add` to install them from **[JSR](https://jsr.io/@simplewebauthn)**
instead:

## Installation
```sh
# Deno v1.42 and higher
$ deno add jsr:@simplewebauthn/...
```

For example, to import the **server** or **types** packages into your Deno project, add the
following to your **deps.ts** file:
These packages can also be imported from
**[NPM](https://www.npmjs.com/search?q=%40simplewebauthn)**:

```ts
import { ... } from 'https://deno.land/x/simplewebauthn/deno/browser.ts';
import { ... } from 'https://deno.land/x/simplewebauthn/deno/server.ts';
import type { ... } from 'https://deno.land/x/simplewebauthn/deno/types.ts';
```sh
# Deno v1.46 and higher
$ deno add npm:@simplewebauthn/...
```
2 changes: 0 additions & 2 deletions deno/browser.ts

This file was deleted.

2 changes: 0 additions & 2 deletions deno/server.ts

This file was deleted.

2 changes: 0 additions & 2 deletions deno/server/helpers.ts

This file was deleted.

2 changes: 0 additions & 2 deletions deno/types.ts

This file was deleted.

9 changes: 3 additions & 6 deletions packages/browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

## Installation

This package can be installed from **NPM**, **JSR**, or **deno.land/x**:
This package can be installed from **[NPM](https://www.npmjs.com/search?q=%40simplewebauthn)** and
**[JSR](https://jsr.io/@simplewebauthn)**:

### Node LTS 20.x and higher

Expand All @@ -37,14 +38,10 @@ $ deno add jsr:@simplewebauthn/browser jsr:@simplewebauthn/types
```

```sh
# Available in Deno v1.46 and higher
$ deno add npm:@simplewebauthn/browser npm:@simplewebauthn/types
```

```ts
import {...} from 'https://deno.land/x/simplewebauthn/deno/browser.ts';
import type {...} from 'https://deno.land/x/simplewebauthn/deno/types.ts';
```

### UMD

This package can also be installed via **unpkg** by including the following script in your page's
Expand Down
9 changes: 3 additions & 6 deletions packages/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

## Installation

This package can be installed from **NPM**, **JSR**, or **deno.land/x**:
This package can be installed from **[NPM](https://www.npmjs.com/search?q=%40simplewebauthn)** and
**[JSR](https://jsr.io/@simplewebauthn)**:

### Node LTS 20.x and higher

Expand All @@ -31,14 +32,10 @@ $ deno add jsr:@simplewebauthn/server jsr:@simplewebauthn/types
```

```sh
# Available in Deno v1.46 and higher
$ deno add npm:@simplewebauthn/server npm:@simplewebauthn/types
```

```ts
import {...} from 'https://deno.land/x/simplewebauthn/deno/server.ts';
import type {...} from 'https://deno.land/x/simplewebauthn/deno/types.ts';
```

## Documentation

You can find in-depth documentation on this package here:
Expand Down
8 changes: 3 additions & 5 deletions packages/types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ TypeScript typings for **@simplewebauthn/server** and **@simplewebauthn/browser*

## Installation

This package can be installed from **NPM**, **JSR**, or **deno.land/x**:
This package can be installed from **[NPM](https://www.npmjs.com/search?q=%40simplewebauthn)** and
**[JSR](https://jsr.io/@simplewebauthn)**:

### Node LTS 20.x and higher

Expand All @@ -31,9 +32,6 @@ $ deno add jsr:@simplewebauthn/types
```

```sh
# Available in Deno v1.46 and higher
$ deno add npm:@simplewebauthn/types
```

```ts
import {...} from 'https://deno.land/x/simplewebauthn/deno/types.ts';
```

0 comments on commit 02eac3b

Please sign in to comment.