dinou 2.3.1 → 2.3.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,12 @@ 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
+ ## [2.3.2]
9
+
10
+ ### Fixed
11
+
12
+ - Do not use `for await` when it is not necessary in buildStaticPages.
13
+
8
14
  ## [2.3.1]
9
15
 
10
16
  ### Fixed
@@ -31,7 +31,7 @@ async function buildStaticPages() {
31
31
  const entries = readdirSync(currentPath, { withFileTypes: true });
32
32
  const pages = [];
33
33
 
34
- for await (const entry of entries) {
34
+ for (const entry of entries) {
35
35
  if (entry.isDirectory()) {
36
36
  if (entry.name.startsWith("(") && entry.name.endsWith(")")) {
37
37
  pages.push(
@@ -307,7 +307,7 @@ async function buildStaticPages() {
307
307
 
308
308
  const pages = await collectPages(srcFolder);
309
309
 
310
- for await (const { path: folderPath, segments, params } of pages) {
310
+ for (const { path: folderPath, segments, params } of pages) {
311
311
  try {
312
312
  const [pagePath] = getFilePathAndDynamicParams(
313
313
  segments,
@@ -545,7 +545,7 @@ async function buildStaticPage(reqPath) {
545
545
  );
546
546
  if (layouts && Array.isArray(layouts)) {
547
547
  let index = 0;
548
- for await (const [layoutPath, dParams, slots] of layouts.reverse()) {
548
+ for (const [layoutPath, dParams, slots] of layouts.reverse()) {
549
549
  const layoutModule = await importModule(layoutPath);
550
550
  const Layout = layoutModule.default ?? layoutModule;
551
551
  const updatedSlots = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Minimal React 19 Framework",
5
5
  "main": "index.js",
6
6
  "bin": {