@astrale-os/adapter-cloudflare 0.5.0-beta.43 → 0.5.0-beta.44

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.
@@ -38,7 +38,7 @@ export function admitDirectPlacement(artifact, worker, parameters) {
38
38
  selfBinding: false,
39
39
  }));
40
40
  equal(release.compatibility_date, worker.runtime.compatibilityDate);
41
- equal(release.compatibility_flags, worker.runtime.compatibilityFlags);
41
+ equalStringCollection(release.compatibility_flags, worker.runtime.compatibilityFlags);
42
42
  equal(release.services ?? [], worker.bindings.services.map(serviceBinding));
43
43
  equal(record(release.assets).html_handling, worker.assets?.htmlHandling);
44
44
  equal(gateway, generated({
@@ -86,6 +86,13 @@ function equal(actual, expected) {
86
86
  if (!isDeepStrictEqual(actual, expected))
87
87
  mismatch();
88
88
  }
89
+ function equalStringCollection(actual, expected) {
90
+ if (!Array.isArray(actual) ||
91
+ actual.some((value) => typeof value !== 'string') ||
92
+ !isDeepStrictEqual([...actual].sort(), [...expected].sort())) {
93
+ mismatch();
94
+ }
95
+ }
89
96
  function mismatch() {
90
97
  throw new TypeError('Direct Cloudflare placement differs from its admitted Worker artifact.');
91
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/adapter-cloudflare",
3
- "version": "0.5.0-beta.43",
3
+ "version": "0.5.0-beta.44",
4
4
  "description": "Deploy an Astrale application through Cloudflare Workers",
5
5
  "keywords": [
6
6
  "adapter",
@@ -45,7 +45,7 @@
45
45
  "hono": "^4.6.20",
46
46
  "jose": "^6.1.3",
47
47
  "wrangler": "4.123.0",
48
- "@astrale-os/sdk": "^0.5.0-beta.40"
48
+ "@astrale-os/sdk": "^0.5.0-beta.41"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@astrale-os/ox": ">=0.1.0 <1.0.0",