10 Commits

Author SHA1 Message Date
c80346917e Release v1.0.13 2023-06-03 16:17:10 +02:00
c65506ba0c Verified compatibility with Foundry 11 2023-06-03 16:16:21 +02:00
bf59633a16 Release v1.0.12 2022-09-30 21:31:23 +02:00
c75eef77b8 Remove deprecated data attributes 2022-09-30 21:29:39 +02:00
2a7f9cc52e Release v1.0.11 2022-09-16 22:39:46 +02:00
bfc7fb4955 Migrate to Foundryvtt v10 2022-09-16 22:33:54 +02:00
3bdb4d8d6c Release v1.0.10 2021-12-29 23:05:19 +01:00
97c143926a Verified compatibility with Foundry 9 2021-12-29 22:54:02 +01:00
4afb56f9be Release v1.0.9 2021-08-21 23:00:40 +02:00
7315c0fa4c Verified compatibility with foundry 0.8.9 2021-08-21 13:28:15 +02:00
3 changed files with 37 additions and 11 deletions

View File

@@ -1,3 +1,27 @@
## 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
### Compatibility
- Updated for compatibility with Foundry 10
## 1.0.10
### Compatibility
- Verified compatibility with Foundry 9
## 1.0.9
### Compatibility
- Verified compatibility with Foundry 0.8.9
## 1.0.8
### Compatibility
- Verified compatibility with Foundry 0.8.8

View File

@@ -1,16 +1,19 @@
{
"name": "socketlib",
"id": "socketlib",
"title": "socketlib",
"description": "A library for easier handling of foundry sockets",
"version": "1.0.8",
"minimumCoreVersion" : "0.7.9",
"compatibleCoreVersion" : "0.8.8",
"version": "1.0.13",
"compatibility": {
"minimum": "10",
"verified": "11"
},
"library": true,
"authors": [
{
"name": "Manuel Vögele",
"email": "develop@manuel-voegele.de",
"discord": "Stäbchenfisch#5107"
"discord": "Stäbchenfisch#5107",
"flags": {}
}
],
"esmodules": [
@@ -18,10 +21,9 @@
"src/socketlib.js"
],
"url": "https://github.com/manuelVo/foundryvtt-socketlib",
"download": "https://github.com/manuelVo/foundryvtt-socketlib/archive/v1.0.8.zip",
"download": "https://github.com/manuelVo/foundryvtt-socketlib/archive/v1.0.13.zip",
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-socketlib/master/module.json",
"readme": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/README.md",
"changelog": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/CHANGELOG.md",
"bugs": "https://github.com/manuelVo/foundryvtt-socketlib/issues",
"allowBugReporter": false
"bugs": "https://github.com/manuelVo/foundryvtt-socketlib/issues"
}

View File

@@ -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.`);
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).`);
return undefined;
}
@@ -55,7 +55,7 @@ class Socketlib {
const existingSocket = this.system;
if (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).`);
}
const newSocket = new SocketlibSocket(systemId, "system");
@@ -307,7 +307,7 @@ function isResponsibleGM() {
if (!game.user.isGM)
return false;
const connectedGMs = game.users.filter(isActiveGM);
return !connectedGMs.some(other => other.data._id < game.user.data._id);
return !connectedGMs.some(other => other.id < game.user.id);
}
function isActiveGM(user) {