Skip to content

Commit

Permalink
updated version number to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrlowe committed Sep 21, 2020
1 parent c34cb82 commit 5df40e9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
10 changes: 5 additions & 5 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.2.0/mod.js";
import {Maze} from "https://x.nest.land/maze_generator@0.2.1/mod.js";
```

If not, you can use the dynamic `import()` function. For example:

```javascript
let Maze;
import("https://x.nest.land/maze_generator@0.2.0/mod.js")
import("https://x.nest.land/maze_generator@0.2.1/mod.js")
.then(module => {
Maze = module.Maze;
})
Expand All @@ -37,7 +37,7 @@ import("https://x.nest.land/maze_generator@0.2.0/mod.js")
})
```

You can also import the module from `deno.land/x` if you prefer: `https://deno.land/x/maze_generator@v0.2.0/mod.js`.
You can also import the module from `deno.land/x` if you prefer: `https://deno.land/x/maze_generator@v0.2.1/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.2.0/mod.js"
import {Maze} from "https://x.nest.land/maze_generator@0.2.1/mod.js"

let mazeSettings = {
width: 12,
Expand Down Expand Up @@ -220,7 +220,7 @@ It takes in three properties, all optional.
```html
<div id="prims-demo"></div>
<script>
import("https://x.nest.land/maze_generator@0.2.0/mod.js")
import("https://x.nest.land/maze_generator@0.2.1/mod.js")
.then(({Maze}) => {
const mazeSettings = {
algorithm: "true prims"
Expand Down
4 changes: 2 additions & 2 deletions createWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default function createWidget(
let canvasId = mazeId + "-canvas";

const iconImageFolderURL =
"https://x.nest.land/maze_generator@0.2.0/images/button-icons";
"https://x.nest.land/maze_generator@0.2.1/images/button-icons";
const cssFileURL =
"https://x.nest.land/maze_generator@0.2.0/widget-styles.css";
"https://x.nest.land/maze_generator@0.2.1/widget-styles.css";

function getButtonInnerHTML(buttonName) {
if (widgetSettings.imageButtons) {
Expand Down
9 changes: 6 additions & 3 deletions egg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "maze_generator",
"description": "A module for generating mazes",
"version": "0.2.0",
"version": "0.2.1",
"unlisted": false,
"entry": "/mod.js",
"checkFormat": false,
"repository": "https://github.com/thewizardbear/maze_generator",
Expand All @@ -23,6 +24,8 @@
"./README.md",
"./solve.js",
"./widget-styles.css",
"./mod.js"
]
"./mod.js",
"/mod.js"
],
"checkAll": true
}
2 changes: 1 addition & 1 deletion examples/p5jsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let moduleLoaded = false;
let maze; //the maze we will generate and display

function preload() {
import("https://x.nest.land/maze_generator@0.2.0/mod.js")
import("https://x.nest.land/maze_generator@0.2.1/mod.js")
.then((module) => {
moduleLoaded = true;

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.2.0",
"version": "0.2.1",
"description": "A deno-compatible package for maze generation",
"main": "mod.js",
"directories": {
Expand Down

0 comments on commit 5df40e9

Please sign in to comment.