Skip to content

Commit ebdfb13

Browse files
committed
Update all references to new repository
1 parent 948625f commit ebdfb13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+484
-1373
lines changed

changelog.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
# 6.0.0
88
This update will break almost all existing applications!
99

10+
The package has moved to `@nbsjs/core` to allow for future addons to the library.
11+
1012
Please carefully read through these changes and refer to the [examples](/examples).
1113

1214
### Changed
1315
- The project has been rebranded from `NBS.js` to `nbs.js`.
16+
- The project has moved from `@encode42/nbs.js` to `@nbsjs/core`.
17+
- The project's repository has moved to [Note Block World](https://github.com/OpenNBS).
1418
- The project is designated as a module by default.
1519
- This update redesigns how classes and their properties are structured.
1620
- Continuing what v5 started, multiple arrays tied to IDs/ticks have been transformed into an object.
@@ -42,7 +46,6 @@ Please carefully read through these changes and refer to the [examples](/example
4246
- Moved all classes out of `util.ts` and into their own files.
4347

4448
### Added
45-
- The `toJSON` and `fromJSON` functions. **Still in development!**
4649
- The `Song#setTempo` and `Song#setTimePerTick` methods update each other when changed.
4750
- The `SongLayers` class that provides helper methods and stores layers.
4851
- The `LayerNotes` class that provides helper methods and stores notes.

examples/design/instrument.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Instrument, Song } from "@encode42/nbs.js";
1+
import { Instrument, Song } from "@nbsjs/core";
22

33
const instrument = new Instrument({
44
"name": "Sandple",

examples/design/layer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Layer } from "@encode42/nbs.js";
1+
import { Layer } from "@nbsjs/core";
22

33
const layer = new Layer({
44
"name": "Demo"

examples/design/note.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Note } from "@encode42/nbs.js";
1+
import { Note } from "@nbsjs/core";
22

33
// Instrument ID 0 is always harp
44
new Note(0, {

examples/design/song.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Layer, Song } from "@encode42/nbs.js";
1+
import { Layer, Song } from "@nbsjs/core";
22

33
const song = new Song();
44
song.name = "Demo";

examples/full/iterateNotes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { readFileSync, writeFileSync } from "node:fs";
2-
import { fromArrayBuffer, toArrayBuffer } from "@encode42/nbs.js";
2+
import { fromArrayBuffer, toArrayBuffer } from "@nbsjs/core";
33

44
// Read a NBS file named "song.nbs"
55
const originalFile = readFileSync("song.nbs");

examples/full/randomSong.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Song, toJSON } from "@encode42/nbs.js";
1+
import { Song, toJSON } from "@nbsjs/core";
22

33
const song = new Song();
44
song.name = "Chaos";

examples/simple/newSong.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Note, Song } from "@encode42/nbs.js";
1+
import { Note, Song } from "@nbsjs/core";
22

33
// Create the song
44
const song = new Song();

examples/simple/read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { readFileSync } from "node:fs";
2-
import { fromArrayBuffer } from "@encode42/nbs.js";
2+
import { fromArrayBuffer } from "@nbsjs/core";
33

44
// Read a NBS file named "song.nbs"
55
const originalFile = readFileSync("song.nbs");

examples/simple/write.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { writeFileSync } from "node:fs";
2-
import { Song, toArrayBuffer } from "@encode42/nbs.js";
2+
import { Song, toArrayBuffer } from "@nbsjs/core";
33

44
const song = new Song();
55

package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
22
"type": "module",
3-
"name": "@encode42/nbs.js",
3+
"name": "@nbsjs/core",
44
"description": "Robust API for reading and writing OpenNBS files.",
5-
"version": "6.0.0-beta2",
5+
"version": "6.0.0",
66
"author": {
7-
"name": "encode42",
8-
"email": "[email protected]",
9-
"url": "https://encode42.dev"
7+
"name": "OpenNBS",
8+
"url": "https://opennbs.org"
109
},
1110
"funding": {
1211
"type": "github",
13-
"url": "https://github.com/sponsors/encode42"
12+
"url": "https://github.com/sponsors/OpenNBS"
1413
},
1514
"repository": {
1615
"type": "git",
17-
"url": "https://github.com/encode42/nbs.js.git"
16+
"url": "https://github.com/OpenNBS/nbs.js.git"
1817
},
19-
"homepage": "https://encode42.github.io/nbs.js/",
18+
"homepage": "https://opennbs.github.io/nbs.js/",
2019
"license": "MIT",
2120
"keywords": ["api", "minecraft", "nbs", "noteblock", "onbs"],
2221
"main": "dist/index.js",

public/docs/dev/assets/icons.js

+17-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/docs/dev/assets/icons.svg

+1-1
Loading

public/docs/dev/assets/main.js

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/docs/dev/assets/navigation.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/docs/dev/assets/search.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)