Skip to content

Commit 588db28

Browse files
authored
Merge pull request #1265 from melonjs/chore/inflate-plugin-tweaks
Add version logging to tiled-inflate-plugin and use workspace dependency
2 parents 06da877 + 7498707 commit 588db28

8 files changed

Lines changed: 17 additions & 18 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
run: pnpm -F melonjs build
2424
- name: Build debug plugin
2525
run: pnpm -F @melonjs/debug-plugin build
26+
- name: Build tiled-inflate-plugin
27+
run: pnpm -F @melonjs/tiled-inflate-plugin build
2628
- name: Build API docs
2729
run: pnpm doc
2830
- name: Build examples

packages/debug-plugin/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 15.0.3
4+
5+
### Improvements
6+
- Console log now links to the npm package page instead of the GitHub readme
7+
38
## 15.0.2
49

510
### Bug Fixes

packages/debug-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@melonjs/debug-plugin",
3-
"version": "15.0.2",
3+
"version": "15.0.3",
44
"description": "melonJS debug plugin",
5-
"homepage": "https://github.com/melonjs/melonJS/tree/master/packages/debug-plugin#readme",
5+
"homepage": "https://www.npmjs.com/package/@melonjs/debug-plugin",
66
"type": "module",
77
"keywords": [
88
"2D",

packages/examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@melonjs/debug-plugin": "workspace:*",
13-
"@melonjs/tiled-inflate-plugin": "^1.1.2",
13+
"@melonjs/tiled-inflate-plugin": "workspace:*",
1414
"@types/react": "^19.2.13",
1515
"@types/react-dom": "^19.2.3",
1616
"@vitejs/plugin-react": "^5.1.3",

packages/tiled-inflate-plugin/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Replaced rollup build with esbuild (matching other monorepo packages)
99

1010
### Improvements
11+
- Log plugin name, version and homepage to console on registration
1112
- Fixed Uint32Array construction to account for byteOffset/byteLength
1213
- Set esbuild target to es2022
1314
- Updated Node.js engine requirement to >= 20

packages/tiled-inflate-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@melonjs/tiled-inflate-plugin",
33
"version": "1.2.0",
44
"description": "a melonJS plugin to enable loading and parsing of compressed Tiled maps",
5-
"homepage": "https://github.com/melonjs/melonJS/tree/master/packages/tiled-inflate-plugin#readme",
5+
"homepage": "https://www.npmjs.com/package/@melonjs/tiled-inflate-plugin",
66
"type": "module",
77
"keywords": [
88
"2D",

packages/tiled-inflate-plugin/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { decompress as zstdDecompress } from "fzstd";
22
import { Base64 } from "js-base64";
33
import { plugin, TMXUtils } from "melonjs";
44
import pako from "pako";
5+
import { homepage, name, version } from "../package.json";
56

67
/**
78
* @classdesc
@@ -23,6 +24,8 @@ export class TiledInflatePlugin extends plugin.BasePlugin {
2324
// minimum melonJS version expected to run this plugin
2425
this.version = "15.2.1";
2526

27+
console.log(`${name} ${version} | ${homepage}`);
28+
2629
/**
2730
* decompress and decode zlib/gzip/zstd data
2831
* @param {string} input - base64 encoded and compressed data

pnpm-lock.yaml

Lines changed: 2 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)