Skip to content

Commit

Permalink
updated version number to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrlowe committed Jul 25, 2020
1 parent a158c31 commit 93340d1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 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.1.0/mod.js";
import {Maze} from "https://x.nest.land/maze_generator@0.1.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.1.0/mod.js")
import("https://x.nest.land/maze_generator@0.1.1/mod.js")
.then(module => {
Maze = module.Maze;
})
Expand All @@ -37,7 +37,7 @@ import("https://x.nest.land/maze_generator@0.1.0/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`.
You can also import the module from `deno.land/x` if you prefer: `https://deno.land/x/maze_generator@v0.1.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.1.0/mod.js"
import {Maze} from "https://x.nest.land/maze_generator@0.1.1/mod.js"
let mazeSettings = {
width: 12,
Expand Down Expand Up @@ -217,7 +217,7 @@ It takes in three properties, all optional.
```html
<div id="prims-demo"></div>
<script>
import("https://x.nest.land/maze_generator@0.1.0/mod.js")
import("https://x.nest.land/maze_generator@0.1.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.1.0/images/button-icons";
"https://x.nest.land/maze_generator@0.1.1/images/button-icons";
const cssFileURL =
"https://x.nest.land/maze_generator@0.1.0/widget-styles.css";
"https://x.nest.land/maze_generator@0.1.1/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",
"version": "0.1.1",
"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/mod.js")
import("https://x.nest.land/maze_generator@0.1.1/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/mod.js";
import { Maze } from "https://x.nest.land/maze_generator@0.1.1/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",
"version": "0.1.1",
"description": "A deno-compatible package for maze generation",
"main": "mod.js",
"directories": {
Expand Down

0 comments on commit 93340d1

Please sign in to comment.