diff --git a/README.md b/README.md index c948795..43ca44b 100644 --- a/README.md +++ b/README.md @@ -21,14 +21,14 @@ This module is heavily influenced by [Jamis Buck's Coffeescript mazes](https://g If you are inside a Javascript module file or a `type="module"` script tag, then add the following to the top of your code: ```javascript -import {Maze} from "https://x.nest.land/maze_generator@0.1.0-alpha.1/mod.js"; +import {Maze} from "https://x.nest.land/maze_generator@0.1.0/mod.js"; ``` If not, you can use the dynamic `import()` function. For example: ```javascript let Maze; -import("https://x.nest.land/maze_generator@0.1.0-alpha.1/mod.js") +import("https://x.nest.land/maze_generator@0.1.0/mod.js") .then(module => { Maze = module.Maze; }) @@ -37,7 +37,7 @@ import("https://x.nest.land/maze_generator@0.1.0-alpha.1/mod.js") }) ``` -You can also import the module from `deno.land/x` if you prefer: `https://deno.land/x/maze_generator@v0.1.0-alpha.1/mod.js`. +You can also import the module from `deno.land/x` if you prefer: `https://deno.land/x/maze_generator@v0.1.0/mod.js`. (Note the `v` here, which is not present when importing from `nest.land`.) ### In Node @@ -65,7 +65,7 @@ Please note that Node version 14+ is required as `maze_generator` makes use of s ## Example Usage ```javascript -import {Maze} from "https://x.nest.land/maze_generator@0.1.0-alpha.1/mod.js" +import {Maze} from "https://x.nest.land/maze_generator@0.1.0/mod.js" let mazeSettings = { width: 12, diff --git a/createWidget.js b/createWidget.js index 9a83caa..3300eb7 100644 --- a/createWidget.js +++ b/createWidget.js @@ -31,8 +31,8 @@ export default function createWidget(mazeSettings={}, displaySettings=mazeSettin let canvasId = mazeId + "-canvas"; const iconImageFolderURL = - "https://x.nest.land/maze_generator@0.1.0-alpha.1/images/button-icons"; - const cssFileURL = "https://x.nest.land/maze_generator@0.1.0-alpha.1/widget-styles.css"; + "https://x.nest.land/maze_generator@0.1.0/images/button-icons"; + const cssFileURL = "https://x.nest.land/maze_generator@0.1.0/widget-styles.css"; function getButtonInnerHTML(buttonName) { if (widgetSettings.imageButtons) { diff --git a/egg.json b/egg.json index 58082d2..3ffd9d7 100644 --- a/egg.json +++ b/egg.json @@ -1,7 +1,7 @@ { "name": "maze_generator", "description": "A module for generating mazes", - "version": "0.1.0-alpha.1", + "version": "0.1.0", "entry": "mod.js", "stable": false, "unlisted": false, diff --git a/examples/p5jsExample.js b/examples/p5jsExample.js index 906f26e..8d22af2 100644 --- a/examples/p5jsExample.js +++ b/examples/p5jsExample.js @@ -26,7 +26,7 @@ let moduleLoaded = false; let maze; //the maze we will generate and display function preload() { - import("https://x.nest.land/maze_generator@0.1.0-alpha.1/mod.js") + import("https://x.nest.land/maze_generator@0.1.0/mod.js") .then((module) => { moduleLoaded = true; diff --git a/examples/starter.js b/examples/starter.js index 215447f..1a594c5 100644 --- a/examples/starter.js +++ b/examples/starter.js @@ -1,4 +1,4 @@ -import { Maze } from "https://x.nest.land/maze_generator@0.1.0-alpha.1/mod.js"; +import { Maze } from "https://x.nest.land/maze_generator@0.1.0/mod.js"; // 12x12 maze using Eller's algorithm let mazeSettings = { diff --git a/package.json b/package.json index d703178..db53867 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@thewizardbear/maze_generator", - "version": "0.1.0-alpha.1", + "version": "0.1.0", "description": "A deno-compatible package for maze generation", "main": "mod.js", "directories": {