dinou 5.1.1 → 5.1.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
+ ## [5.1.2] - 2026-07-12
9
+
10
+ ### Fixed
11
+ - **Client Link Import Resolution**: Fixed `TypeError: Failed to resolve module specifier 'dinou/core/link.jsx'` client-side crashes occurring when importing and rendering `<Link>` from `"dinou"` inside Server Components under Esbuild and Rollup compilation environments.
12
+
8
13
  ## [5.1.1] - 2026-07-12
9
14
 
10
15
  ### Fixed
@@ -18,6 +18,10 @@ const absPathToClientRedirect = path.resolve(
18
18
  __dirname,
19
19
  "../core/client-redirect.jsx"
20
20
  );
21
+ const absPathToLink = path.resolve(
22
+ __dirname,
23
+ "../core/link.jsx"
24
+ );
21
25
 
22
26
  const frameworkEntryPoints = {
23
27
  main: path.resolve(__dirname, "../core/client.jsx"),
@@ -32,6 +36,7 @@ const frameworkEntryPoints = {
32
36
  "react-refresh/react-refresh-entry.js"
33
37
  ),
34
38
  dinouClientRedirect: absPathToClientRedirect,
39
+ dinouLink: absPathToLink,
35
40
  };
36
41
 
37
42
  try {
@@ -46,6 +51,12 @@ try {
46
51
  true,
47
52
  manifest
48
53
  );
54
+ updateManifestForModule(
55
+ absPathToLink,
56
+ await fs.readFile(absPathToLink, "utf8"),
57
+ true,
58
+ manifest
59
+ );
49
60
 
50
61
  const componentEntryPoints = [...esbuildEntries].reduce(
51
62
  (acc, dCE) => ({ ...acc, [dCE.outfileName]: dCE.absPath }),
@@ -26,6 +26,10 @@ const absPathToClientRedirect = path.resolve(
26
26
  __dirname,
27
27
  "../core/client-redirect.jsx"
28
28
  );
29
+ const absPathToLink = path.resolve(
30
+ __dirname,
31
+ "../core/link.jsx"
32
+ );
29
33
 
30
34
  const frameworkEntryPoints = {
31
35
  main: path.resolve(__dirname, "../core/client.jsx"),
@@ -40,6 +44,7 @@ const frameworkEntryPoints = {
40
44
  "react-refresh/react-refresh-entry.js"
41
45
  ),
42
46
  dinouClientRedirect: absPathToClientRedirect,
47
+ dinouLink: absPathToLink,
43
48
  };
44
49
 
45
50
  const changedIds = new Set();
@@ -70,6 +75,12 @@ async function updateEntriesAndComponents() {
70
75
  true,
71
76
  manifest
72
77
  );
78
+ updateManifestForModule(
79
+ absPathToLink,
80
+ await fs.readFile(absPathToLink, "utf8"),
81
+ true,
82
+ manifest
83
+ );
73
84
 
74
85
  currentServerFiles = new Set(
75
86
  serverFiles.map((f) => normalizePath(path.resolve(f)))
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou-ejected",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "main": "index.js",
5
5
  "private": true,
6
6
  "exports": {
@@ -52,6 +52,10 @@ module.exports = async function () {
52
52
  __dirname,
53
53
  "../core/client-redirect.jsx",
54
54
  ),
55
+ dinouLink: path.resolve(
56
+ __dirname,
57
+ "../core/link.jsx",
58
+ ),
55
59
  }
56
60
  : {
57
61
  main: path.resolve(__dirname, "../core/client.jsx"),
@@ -64,6 +68,10 @@ module.exports = async function () {
64
68
  __dirname,
65
69
  "../core/client-redirect.jsx",
66
70
  ),
71
+ dinouLink: path.resolve(
72
+ __dirname,
73
+ "../core/link.jsx",
74
+ ),
67
75
  },
68
76
  output: {
69
77
  dir: outputDirectory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Lightweight-Ejectable Full-Stack React 19 Framework with support for React Server Components (RSC), Server Functions, Server-Side Rendering (SSR), Static Generation (SSG), Incremental Static Generation (ISG), and Incremental Static Regeneration (ISR)",
5
5
  "main": "index.js",
6
6
  "bin": {