@effected/bundler 0.6.0 → 0.6.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.
@@ -11,7 +11,9 @@ import { ReleasePlan } from "@effected/changesets";
11
11
  * changeset-affected packages via `ReleasePlan.read`, including pre-release versions in pre
12
12
  * mode and fixed or linked groups. Never fails: any failure (not a workspace, missing
13
13
  * `.changeset/config.json`, an invalid config or `pre.json`, parse error) degrades to current
14
- * versions (or an empty map).
14
+ * versions (or an empty map). So does a pnpm-native plan that releases two same-named projects,
15
+ * which a name-keyed map cannot hold: `ReleasePlan.releasesByName` refuses it, and that
16
+ * refusal is logged with `Effect.logDebug`, naming the package and its directories.
15
17
  * @public
16
18
  */
17
19
  const resolveNextVersions = (cwd) => {
@@ -25,8 +27,11 @@ const resolveNextVersions = (cwd) => {
25
27
  if (p.version === void 0) continue;
26
28
  versions.set(p.name, p.version);
27
29
  }
28
- yield* ReleasePlan.read(rootDir).pipe(Effect.provide(workspace), Effect.tap((plan) => Effect.sync(() => {
29
- for (const r of plan.releases) versions.set(r.name, r.newVersion);
30
+ yield* ReleasePlan.read(rootDir).pipe(Effect.provide(workspace), Effect.flatMap((plan) => Effect.fromResult(ReleasePlan.releasesByName(plan))), Effect.tapError((error) => error._tag === "AmbiguousPackageError" ? Effect.logDebug("next versions degraded to current versions: the plan releases same-named projects", {
31
+ packageName: error.packageName,
32
+ directories: error.directories
33
+ }) : Effect.void), Effect.tap((byName) => Effect.sync(() => {
34
+ for (const [name, r] of byName) versions.set(name, r.newVersion);
30
35
  })), Effect.orElseSucceed(() => void 0), Effect.catchDefect(() => Effect.void));
31
36
  return {
32
37
  root: rootDir,
package/index.d.ts CHANGED
@@ -2627,7 +2627,9 @@ interface NextVersions {
2627
2627
  * changeset-affected packages via `ReleasePlan.read`, including pre-release versions in pre
2628
2628
  * mode and fixed or linked groups. Never fails: any failure (not a workspace, missing
2629
2629
  * `.changeset/config.json`, an invalid config or `pre.json`, parse error) degrades to current
2630
- * versions (or an empty map).
2630
+ * versions (or an empty map). So does a pnpm-native plan that releases two same-named projects,
2631
+ * which a name-keyed map cannot hold: `ReleasePlan.releasesByName` refuses it, and that
2632
+ * refusal is logged with `Effect.logDebug`, naming the package and its directories.
2631
2633
  * @public
2632
2634
  */
2633
2635
  export declare const resolveNextVersions: (cwd: string) => Effect.Effect<NextVersions, never, FileSystem.FileSystem | Path.Path>;
package/meta/og-satori.js CHANGED
@@ -117,7 +117,7 @@ const ogImage = { satori(options = {}) {
117
117
  };
118
118
  const cacheSalt = JSON.stringify({
119
119
  renderer: "@effected/bundler/og#satori",
120
- version: "0.6.0",
120
+ version: "0.6.2",
121
121
  satori: peerVersion("satori"),
122
122
  resvg: peerVersion("@resvg/resvg-js"),
123
123
  colors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/bundler",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "private": false,
5
5
  "description": "The kit's build pipeline: effected.toml config, tsdown JS and declaration passes, API Extractor meta, SEA, GitHub Action bundles and build journals.",
6
6
  "keywords": [
@@ -39,22 +39,22 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@effect/platform-node": "4.1.4",
42
- "@effected/changesets": "0.5.1",
43
- "@effected/config-file": "0.28.0",
42
+ "@effected/changesets": "0.6.1",
43
+ "@effected/config-file": "0.29.0",
44
44
  "@effected/env": "0.12.0",
45
45
  "@effected/files": "0.3.0",
46
- "@effected/glob": "0.22.0",
46
+ "@effected/glob": "0.23.0",
47
47
  "@effected/images": "0.10.0",
48
48
  "@effected/jsonc": "0.25.0",
49
49
  "@effected/jsonl": "0.19.0",
50
50
  "@effected/manifest": "0.2.0",
51
- "@effected/npm": "0.34.1",
52
- "@effected/package-json": "0.32.1",
51
+ "@effected/npm": "0.35.1",
52
+ "@effected/package-json": "0.32.2",
53
53
  "@effected/semver": "0.24.0",
54
54
  "@effected/toml": "0.20.0",
55
- "@effected/tsconfig-json": "0.22.0",
56
- "@effected/walker": "0.29.0",
57
- "@effected/workspaces": "0.47.1",
55
+ "@effected/tsconfig-json": "0.23.0",
56
+ "@effected/walker": "0.30.0",
57
+ "@effected/workspaces": "0.48.1",
58
58
  "@effected/yaml": "0.30.0",
59
59
  "@jridgewell/sourcemap-codec": "^1.6.0",
60
60
  "@microsoft/api-extractor": "^7.60.1",