Skip to content

Commit

Permalink
updated version number to 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrlowe committed Jul 22, 2020
1 parent afaf318 commit b19901b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions createWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion egg.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/p5jsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion examples/starter.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit b19901b

Please sign in to comment.