epicenter-libs 3.28.0 → 3.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/browser/{AckExtension-1fe508aa.js → AckExtension-4ccb1b3b.js} +3 -3
  3. package/dist/{module/AckExtension-755114ce.js.map → browser/AckExtension-4ccb1b3b.js.map} +1 -1
  4. package/dist/{module/ReloadExtension-22370c97.js → browser/ReloadExtension-26e320cf.js} +3 -3
  5. package/dist/{module/ReloadExtension-22370c97.js.map → browser/ReloadExtension-26e320cf.js.map} +1 -1
  6. package/dist/browser/{cometd-95666f77.js → cometd-009d1cc7.js} +2 -2
  7. package/dist/browser/{cometd-95666f77.js.map → cometd-009d1cc7.js.map} +1 -1
  8. package/dist/browser/{epicenter-53acd5e1.js → epicenter-ffc2b7a7.js} +15 -8
  9. package/dist/browser/epicenter-ffc2b7a7.js.map +1 -0
  10. package/dist/browser/epicenter.js +1 -1
  11. package/dist/cjs/{AckExtension-da9f05ef.js → AckExtension-f8c57030.js} +3 -3
  12. package/dist/cjs/{AckExtension-da9f05ef.js.map → AckExtension-f8c57030.js.map} +1 -1
  13. package/dist/cjs/{ReloadExtension-72077f71.js → ReloadExtension-0d52f073.js} +3 -3
  14. package/dist/cjs/{ReloadExtension-72077f71.js.map → ReloadExtension-0d52f073.js.map} +1 -1
  15. package/dist/cjs/{cometd-bb7d98a6.js → cometd-369eb10e.js} +2 -2
  16. package/dist/cjs/{cometd-bb7d98a6.js.map → cometd-369eb10e.js.map} +1 -1
  17. package/dist/cjs/{epicenter-52f23ee7.js → epicenter-54f0befe.js} +15 -8
  18. package/dist/cjs/epicenter-54f0befe.js.map +1 -0
  19. package/dist/cjs/epicenter.js +1 -1
  20. package/dist/epicenter.js +12 -5
  21. package/dist/epicenter.js.map +1 -1
  22. package/dist/epicenter.min.js +1 -1
  23. package/dist/epicenter.min.js.map +1 -1
  24. package/dist/module/{AckExtension-755114ce.js → AckExtension-cd7b3bcb.js} +3 -3
  25. package/dist/{browser/AckExtension-1fe508aa.js.map → module/AckExtension-cd7b3bcb.js.map} +1 -1
  26. package/dist/{browser/ReloadExtension-51e9dfea.js → module/ReloadExtension-da4ee10c.js} +3 -3
  27. package/dist/{browser/ReloadExtension-51e9dfea.js.map → module/ReloadExtension-da4ee10c.js.map} +1 -1
  28. package/dist/module/{cometd-8498d64f.js → cometd-c640d287.js} +2 -2
  29. package/dist/module/{cometd-8498d64f.js.map → cometd-c640d287.js.map} +1 -1
  30. package/dist/module/{epicenter-46d3b19d.js → epicenter-e4a6d235.js} +15 -8
  31. package/dist/module/epicenter-e4a6d235.js.map +1 -0
  32. package/dist/module/epicenter.js +1 -1
  33. package/dist/types/adapters/world.d.ts +4 -0
  34. package/package.json +1 -1
  35. package/src/adapters/cometd.ts +2 -2
  36. package/src/adapters/world.ts +34 -9
  37. package/dist/browser/epicenter-53acd5e1.js.map +0 -1
  38. package/dist/cjs/epicenter-52f23ee7.js.map +0 -1
  39. package/dist/module/epicenter-46d3b19d.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var epicenter = require('./epicenter-52f23ee7.js');
5
+ var epicenter = require('./epicenter-54f0befe.js');
6
6
  require('stream');
7
7
  require('http');
8
8
  require('url');
package/dist/epicenter.js CHANGED
@@ -2950,9 +2950,10 @@
2950
2950
  const project = await get$d();
2951
2951
  if (!project.channelEnabled) throw new EpicenterError('Push Channels are not enabled on this project');
2952
2952
  const channelProtocol = ((_project$channelProto = project.channelProtocol) === null || _project$channelProto === void 0 ? void 0 : _project$channelProto.toLowerCase()) || DEFAULT_CHANNEL_PROTOCOL;
2953
+ const CometDImports = await Promise.resolve().then(function () { return cometd$1; });
2953
2954
  const {
2954
2955
  CometD
2955
- } = await Promise.resolve().then(function () { return cometd$1; });
2956
+ } = CometDImports;
2956
2957
  const AckExtension = (await Promise.resolve().then(function () { return AckExtension$1; })).default;
2957
2958
  const ReloadExtension = (await Promise.resolve().then(function () { return ReloadExtension$1; })).default;
2958
2959
  this.cometd = new CometD();
@@ -6508,6 +6509,7 @@
6508
6509
  * @param [optionals.populace[].minimum] The minimum number of users that required for this role
6509
6510
  * @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
6510
6511
  * @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
6512
+ * @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
6511
6513
  * @returns promise that resolves to the world the user was assigned to
6512
6514
  */
6513
6515
 
@@ -6519,6 +6521,7 @@
6519
6521
  objective = OBJECTIVE.MINIMUM,
6520
6522
  worldNameGenerator,
6521
6523
  populace,
6524
+ allowChannel,
6522
6525
  ...routingOptions
6523
6526
  } = optionals;
6524
6527
  const session = identification.session;
@@ -6527,7 +6530,8 @@
6527
6530
  role,
6528
6531
  objective,
6529
6532
  worldNameGenerator,
6530
- populace
6533
+ populace,
6534
+ allowChannel
6531
6535
  },
6532
6536
  ...routingOptions
6533
6537
  }).then(({
@@ -6560,6 +6564,7 @@
6560
6564
  * @param [optionals.populace[].minimum] The minimum number of users that required for this role
6561
6565
  * @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
6562
6566
  * @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
6567
+ * @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
6563
6568
  * @returns promise that resolves to the list of worlds created by the assignment
6564
6569
  */
6565
6570
 
@@ -6572,6 +6577,7 @@
6572
6577
  worldNameGenerator,
6573
6578
  keepEmptyWorlds,
6574
6579
  populace,
6580
+ allowChannel,
6575
6581
  ...routingOptions
6576
6582
  } = optionals;
6577
6583
  const session = identification.session;
@@ -6582,7 +6588,8 @@
6582
6588
  requireAllAssignments,
6583
6589
  worldNameGenerator,
6584
6590
  keepEmptyWorlds,
6585
- populace
6591
+ populace,
6592
+ allowChannel
6586
6593
  },
6587
6594
  ...routingOptions
6588
6595
  }).then(({
@@ -8168,9 +8175,9 @@
8168
8175
  });
8169
8176
 
8170
8177
  /* yes, this string template literal is weird;
8171
- * it's cause rollup does not recogize 3.28.0 as an individual token otherwise */
8178
+ * it's cause rollup does not recogize 3.28.1 as an individual token otherwise */
8172
8179
 
8173
- const version = "Epicenter (v".concat('3.28.0', ") for Browsers | Build Date: 2024-07-24T21:07:38.530Z");
8180
+ const version = "Epicenter (v".concat('3.28.1', ") for Browsers | Build Date: 2024-10-18T18:24:16.347Z");
8174
8181
  const UNAUTHORIZED = 401;
8175
8182
  const FORBIDDEN = 403;
8176
8183
  const DEFAULT_ERROR_HANDLERS = {};