Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c80346917e | |||
| c65506ba0c | |||
| bf59633a16 | |||
| c75eef77b8 |
@@ -1,3 +1,12 @@
|
|||||||
|
## 1.0.13
|
||||||
|
### Compatibility
|
||||||
|
- Verified compatibility with Foundry 11
|
||||||
|
|
||||||
|
|
||||||
|
## 1.0.12
|
||||||
|
### Compatibility
|
||||||
|
- Foundry 10 will no longer show a deprecation warning when modules or systems register in socketlib
|
||||||
|
|
||||||
## 1.0.11
|
## 1.0.11
|
||||||
### Compatibility
|
### Compatibility
|
||||||
- Updated for compatibility with Foundry 10
|
- Updated for compatibility with Foundry 10
|
||||||
|
|||||||
12
module.json
12
module.json
@@ -2,17 +2,18 @@
|
|||||||
"id": "socketlib",
|
"id": "socketlib",
|
||||||
"title": "socketlib",
|
"title": "socketlib",
|
||||||
"description": "A library for easier handling of foundry sockets",
|
"description": "A library for easier handling of foundry sockets",
|
||||||
"version": "1.0.11",
|
"version": "1.0.13",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
"verified": "10"
|
"verified": "11"
|
||||||
},
|
},
|
||||||
"library": true,
|
"library": true,
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Manuel Vögele",
|
"name": "Manuel Vögele",
|
||||||
"email": "develop@manuel-voegele.de",
|
"email": "develop@manuel-voegele.de",
|
||||||
"discord": "Stäbchenfisch#5107"
|
"discord": "Stäbchenfisch#5107",
|
||||||
|
"flags": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"esmodules": [
|
"esmodules": [
|
||||||
@@ -20,10 +21,9 @@
|
|||||||
"src/socketlib.js"
|
"src/socketlib.js"
|
||||||
],
|
],
|
||||||
"url": "https://github.com/manuelVo/foundryvtt-socketlib",
|
"url": "https://github.com/manuelVo/foundryvtt-socketlib",
|
||||||
"download": "https://github.com/manuelVo/foundryvtt-socketlib/archive/v1.0.11.zip",
|
"download": "https://github.com/manuelVo/foundryvtt-socketlib/archive/v1.0.13.zip",
|
||||||
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-socketlib/master/module.json",
|
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-socketlib/master/module.json",
|
||||||
"readme": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/README.md",
|
"readme": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/README.md",
|
||||||
"changelog": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/CHANGELOG.md",
|
"changelog": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/CHANGELOG.md",
|
||||||
"bugs": "https://github.com/manuelVo/foundryvtt-socketlib/issues",
|
"bugs": "https://github.com/manuelVo/foundryvtt-socketlib/issues"
|
||||||
"allowBugReporter": false
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class Socketlib {
|
|||||||
console.error(`socketlib | Someone tried to register module '${moduleName}', but no module with that name is active. As a result the registration request has been ignored.`);
|
console.error(`socketlib | Someone tried to register module '${moduleName}', but no module with that name is active. As a result the registration request has been ignored.`);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (!module.data.socket) {
|
if (!module.socket) {
|
||||||
console.error(`socketlib | Failed to register socket for module '${moduleName}'. Please set '"socket":true' in your manifset and restart foundry (you need to reload your world - simply reloading your browser won't do).`);
|
console.error(`socketlib | Failed to register socket for module '${moduleName}'. Please set '"socket":true' in your manifset and restart foundry (you need to reload your world - simply reloading your browser won't do).`);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
@@ -55,7 +55,7 @@ class Socketlib {
|
|||||||
const existingSocket = this.system;
|
const existingSocket = this.system;
|
||||||
if (existingSocket)
|
if (existingSocket)
|
||||||
return existingSocket;
|
return existingSocket;
|
||||||
if (!game.system.data.socket) {
|
if (!game.system.socket) {
|
||||||
console.error(`socketlib | Failed to register socket for system '${systemId}'. Please set '"socket":true' in your manifest and restart foundry (you need to reload your world - simply reloading your browser won't do).`);
|
console.error(`socketlib | Failed to register socket for system '${systemId}'. Please set '"socket":true' in your manifest and restart foundry (you need to reload your world - simply reloading your browser won't do).`);
|
||||||
}
|
}
|
||||||
const newSocket = new SocketlibSocket(systemId, "system");
|
const newSocket = new SocketlibSocket(systemId, "system");
|
||||||
|
|||||||
Reference in New Issue
Block a user