diff --git a/HANDBOOK.md b/HANDBOOK.md index 9043ee8ee..e4546282d 100644 --- a/HANDBOOK.md +++ b/HANDBOOK.md @@ -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? ``` diff --git a/README.md b/README.md index 0f333b15a..cf6f60c92 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/deno/README.md b/deno/README.md index 3b4ef95d6..6e3aef132 100644 --- a/deno/README.md +++ b/deno/README.md @@ -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/... ``` diff --git a/deno/browser.ts b/deno/browser.ts deleted file mode 100644 index 3b890fd63..000000000 --- a/deno/browser.ts +++ /dev/null @@ -1,2 +0,0 @@ -// For simpler imports in Deno projects -export * from '../packages/browser/src/index.ts'; diff --git a/deno/server.ts b/deno/server.ts deleted file mode 100644 index 6ab9ff89d..000000000 --- a/deno/server.ts +++ /dev/null @@ -1,2 +0,0 @@ -// For simpler imports in Deno projects -export * from '../packages/server/src/index.ts'; diff --git a/deno/server/helpers.ts b/deno/server/helpers.ts deleted file mode 100644 index 7fba341f7..000000000 --- a/deno/server/helpers.ts +++ /dev/null @@ -1,2 +0,0 @@ -// For simpler imports in Deno projects -export * from '../../packages/server/src/helpers/index.ts'; diff --git a/deno/types.ts b/deno/types.ts deleted file mode 100644 index bf4801146..000000000 --- a/deno/types.ts +++ /dev/null @@ -1,2 +0,0 @@ -// For simpler imports in Deno projects -export * from '../packages/types/src/index.ts'; diff --git a/packages/browser/README.md b/packages/browser/README.md index 4471e9777..35953b847 100644 --- a/packages/browser/README.md +++ b/packages/browser/README.md @@ -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 @@ -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 diff --git a/packages/server/README.md b/packages/server/README.md index 8b91ec651..90771e9f4 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -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 @@ -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: diff --git a/packages/types/README.md b/packages/types/README.md index 7acd1ce2b..d825ea4cd 100644 --- a/packages/types/README.md +++ b/packages/types/README.md @@ -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 @@ -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'; -```