@adonis-agora/media-dashboard 7.0.0 → 8.0.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @adonis-agora/media-dashboard
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`e2baf99`](https://github.com/DavideCarvalho/adonis-agora-media/commit/e2baf993dae1a7d3574128085abe1cf48087a023)]:
8
+ - @adonis-agora/media@0.12.0
9
+
3
10
  ## 7.0.0
4
11
 
5
12
  ### Major Changes
@@ -10,10 +10,21 @@ import type { ApplicationService } from '@adonisjs/core/types';
10
10
  * Delegating via a runtime `import()` of the bare specifier — rather than a static
11
11
  * `import ... from '@adonis-agora/media/dashboard_provider'` — is deliberate, not a style choice:
12
12
  * `@adonis-agora/media` is a required PEER of this package (real consumers always have it installed),
13
- * but a static import would make this package statically depend on it, which inside THIS monorepo
14
- * would close a cycle (`@adonis-agora/media` already depends on `@adonis-agora/media-dashboard` at
15
- * build time, to copy this package's built SPA into its own `dist`). A dynamic import needs no
16
- * workspace-graph edge, so both packages build in either order.
13
+ * and it must NOT become a workspace dependency here, because that would close a build cycle
14
+ * (`@adonis-agora/media` depends on `@adonis-agora/media-dashboard` at build time, to copy this
15
+ * package's built SPA into its own `dist`). The specifier is therefore resolved at runtime, out of
16
+ * the consumer's own `node_modules`.
17
+ *
18
+ * For TYPES this package pins an exact PUBLISHED `@adonis-agora/media` as a devDependency — the floor
19
+ * of the peer range, resolved from the registry rather than from the workspace, so it adds no
20
+ * workspace-graph edge and no build-cycle risk. It is written as an `npm:` alias
21
+ * (`npm:@adonis-agora/media@<floor>`) because a plain version would be rewritten by changesets, on
22
+ * every release, to the version being published — which is not on the registry yet when the version
23
+ * PR runs its install. That pin is what makes this import resolve, and it
24
+ * makes it resolve deterministically: before it existed, whether this file compiled depended on
25
+ * which published version pnpm's `auto-install-peers` happened to materialise, and the build passed
26
+ * only because the lockfile pinned a version OLD enough to predate the `./dashboard_provider`
27
+ * export. Refreshing the lockfile was enough to break it.
17
28
  *
18
29
  * ```ts
19
30
  * providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"media_dashboard_provider.d.ts","sourceRoot":"","sources":["../../src/provider/media_dashboard_provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAsB;;IAG7B,SAAS,CAAC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;IAiBvC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAI5B"}
1
+ {"version":3,"file":"media_dashboard_provider.d.ts","sourceRoot":"","sources":["../../src/provider/media_dashboard_provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAsB;;IAG7B,SAAS,CAAC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;IAgBvC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAI5B"}
@@ -9,10 +9,21 @@
9
9
  * Delegating via a runtime `import()` of the bare specifier — rather than a static
10
10
  * `import ... from '@adonis-agora/media/dashboard_provider'` — is deliberate, not a style choice:
11
11
  * `@adonis-agora/media` is a required PEER of this package (real consumers always have it installed),
12
- * but a static import would make this package statically depend on it, which inside THIS monorepo
13
- * would close a cycle (`@adonis-agora/media` already depends on `@adonis-agora/media-dashboard` at
14
- * build time, to copy this package's built SPA into its own `dist`). A dynamic import needs no
15
- * workspace-graph edge, so both packages build in either order.
12
+ * and it must NOT become a workspace dependency here, because that would close a build cycle
13
+ * (`@adonis-agora/media` depends on `@adonis-agora/media-dashboard` at build time, to copy this
14
+ * package's built SPA into its own `dist`). The specifier is therefore resolved at runtime, out of
15
+ * the consumer's own `node_modules`.
16
+ *
17
+ * For TYPES this package pins an exact PUBLISHED `@adonis-agora/media` as a devDependency — the floor
18
+ * of the peer range, resolved from the registry rather than from the workspace, so it adds no
19
+ * workspace-graph edge and no build-cycle risk. It is written as an `npm:` alias
20
+ * (`npm:@adonis-agora/media@<floor>`) because a plain version would be rewritten by changesets, on
21
+ * every release, to the version being published — which is not on the registry yet when the version
22
+ * PR runs its install. That pin is what makes this import resolve, and it
23
+ * makes it resolve deterministically: before it existed, whether this file compiled depended on
24
+ * which published version pnpm's `auto-install-peers` happened to materialise, and the build passed
25
+ * only because the lockfile pinned a version OLD enough to predate the `./dashboard_provider`
26
+ * export. Refreshing the lockfile was enough to break it.
16
27
  *
17
28
  * ```ts
18
29
  * providers: [
@@ -29,11 +40,10 @@ export default class MediaDashboardProvider {
29
40
  }
30
41
  async #resolveInner() {
31
42
  if (!this.#inner) {
32
- // @ts-expect-error — `@adonis-agora/media` is a required PEER (real consumers always have it
33
- // installed) but deliberately NOT a workspace/type dependency of this package inside this
34
- // monorepo (see the class doc comment: linking it here would close a build-time cycle). The
35
- // specifier stays a literal (rather than going through a variable) so `vi.mock` can intercept
36
- // it in tests — see media_dashboard_provider.spec.ts.
43
+ // The specifier stays a literal (rather than going through a variable) so the test config can
44
+ // alias it to a fixture — see media_dashboard_provider.spec.ts. The structural cast keeps this
45
+ // delegate tolerant of every peer version in range, not just the pinned one it typechecks
46
+ // against: all it ever needs is a default-exported class taking the app and exposing `boot`.
37
47
  const mod = (await import('@adonis-agora/media/dashboard_provider'));
38
48
  this.#inner = new mod.default(this.app);
39
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"media_dashboard_provider.js","sourceRoot":"","sources":["../../src/provider/media_dashboard_provider.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,OA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,MAAM,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;IACvB,CAAC;CACF"}