@monkeyplus/flow 6.0.0 → 6.0.1

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.
@@ -1,6 +1,6 @@
1
1
  import { resolve } from "node:path";
2
- import { defineFlowModule } from "../../src/runtime/config.ts";
3
- import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.ts";
2
+ import { defineFlowModule } from "../../src/runtime/config.mjs";
3
+ import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.mjs";
4
4
  export default defineFlowModule({
5
5
  meta: {
6
6
  name: "content",
@@ -1,6 +1,6 @@
1
1
  import { defineEventHandler, getRequestURL, setHeader } from "nitro/h3";
2
2
  import { useRuntimeConfig } from "nitro/runtime-config";
3
- import { getUrls } from "../../server/lib/pages.ts";
3
+ import { getUrls } from "../../server/lib/pages.mjs";
4
4
  function escapeXml(value) {
5
5
  return value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&apos;");
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { resolve } from "node:path";
2
- import { defineFlowModule } from "../../src/runtime/config.ts";
3
- import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.ts";
2
+ import { defineFlowModule } from "../../src/runtime/config.mjs";
3
+ import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.mjs";
4
4
  export default defineFlowModule({
5
5
  meta: {
6
6
  name: "sitemap",
@@ -1,6 +1,6 @@
1
1
  import { resolve } from "node:path";
2
- import { defineFlowModule } from "../../src/runtime/config.ts";
3
- import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.ts";
2
+ import { defineFlowModule } from "../../src/runtime/config.mjs";
3
+ import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.mjs";
4
4
  function createStrapiConfigPlugin(config) {
5
5
  const virtualId = "virtual:flow/strapi-config";
6
6
  const resolvedVirtualId = `\0${virtualId}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -1,7 +1,7 @@
1
- import clientAssets from "../../src/main.ts?assets=client";
1
+ import clientAssets from "../../src/main.mjs?assets=client";
2
2
  import bundleAssets from "virtual:flow/client-page-assets";
3
- import { renderDocument } from "./render.ts";
4
- import { resolvePage, resolvePageByName } from "./pages.ts";
3
+ import { renderDocument } from "./render.mjs";
4
+ import { resolvePage, resolvePageByName } from "./pages.mjs";
5
5
  function mergeClientAssets(baseAssets, pageAssets) {
6
6
  const css = [...baseAssets.css || [], ...pageAssets?.css || []];
7
7
  const js = [...baseAssets.js || [], ...pageAssets?.js || []];
@@ -1 +1 @@
1
- export { default as FlowIsland } from "../runtime/components/FlowIsland.ts";
1
+ export { default as FlowIsland } from "../runtime/components/FlowIsland.mjs";
@@ -1 +1 @@
1
- export { getClientHead, useHead, useSeoMeta } from "../runtime/head.ts";
1
+ export { getClientHead, useHead, useSeoMeta } from "../runtime/head.mjs";
@@ -1,2 +1,2 @@
1
- export { defineFlowConfig, defineFlowModule, resolveFlowConfig } from "../runtime/config.ts";
2
- export { definePage } from "../runtime/pages.ts";
1
+ export { defineFlowConfig, defineFlowModule, resolveFlowConfig } from "../runtime/config.mjs";
2
+ export { definePage } from "../runtime/pages.mjs";
@@ -1 +1 @@
1
- export { default } from "../../../modules/content/module.ts";
1
+ export { default } from "../../../modules/content/module.mjs";
@@ -1 +1 @@
1
- export { default } from "../../../modules/sitemap/module.ts";
1
+ export { default } from "../../../modules/sitemap/module.mjs";
@@ -1 +1 @@
1
- export { default } from "../../../modules/strapi/module.ts";
1
+ export { default } from "../../../modules/strapi/module.mjs";
@@ -1,16 +1,16 @@
1
1
  import { resolve } from "node:path";
2
2
  import { defineNitroConfig } from "nitro/config";
3
- import { resolveFlowConfig } from "../runtime/config.ts";
4
- import { loadFlowModules } from "../runtime/modules.ts";
5
- import { createFlowBuildHooks } from "../runtime/ssg.ts";
3
+ import { resolveFlowConfig } from "../runtime/config.mjs";
4
+ import { loadFlowModules } from "../runtime/modules.mjs";
5
+ import { createFlowBuildHooks } from "../runtime/ssg.mjs";
6
6
  import {
7
7
  createVirtualBaseTemplatesModule,
8
8
  createVirtualIslandsModule,
9
9
  createVirtualLayoutsModule,
10
10
  createVirtualPagesModule,
11
11
  createVirtualTemplatesModule
12
- } from "../runtime/virtual-pages.ts";
13
- import { resolvePackageFile } from "./shared.ts";
12
+ } from "../runtime/virtual-pages.mjs";
13
+ import { resolvePackageFile } from "./shared.mjs";
14
14
  export function createFlowNitroConfig(options = {}) {
15
15
  const projectRoot = resolve(options.projectRoot || process.cwd());
16
16
  const flowConfig = resolveFlowConfig(options.userFlowConfig || {});
@@ -28,7 +28,7 @@ export function createFlowNitroConfig(options = {}) {
28
28
  },
29
29
  framework: {
30
30
  name: "@monkeyplus/flow",
31
- version: "6.0.0"
31
+ version: "0.1.0"
32
32
  },
33
33
  serverDir: "./server",
34
34
  devServer: {
@@ -62,8 +62,8 @@ export function createFlowNitroConfig(options = {}) {
62
62
  },
63
63
  runtimeConfig: {
64
64
  app: {
65
- name: "@monkeyplus/flow",
66
- version: "6.0.0"
65
+ name: "Flow Next",
66
+ version: "0.1.0"
67
67
  },
68
68
  flow: {
69
69
  build: flowConfig.build,
@@ -6,9 +6,9 @@ import { defineConfig, normalizePath } from "vite";
6
6
  import IconsResolver from "unplugin-icons/resolver";
7
7
  import Icons from "unplugin-icons/vite";
8
8
  import ui from "@nuxt/ui/vite";
9
- import { resolveFlowConfig } from "../runtime/config.ts";
10
- import { loadFlowModules } from "../runtime/modules.ts";
11
- import { getPrerenderRoutes } from "../runtime/page-discovery.ts";
9
+ import { resolveFlowConfig } from "../runtime/config.mjs";
10
+ import { loadFlowModules } from "../runtime/modules.mjs";
11
+ import { getPrerenderRoutes } from "../runtime/page-discovery.mjs";
12
12
  import {
13
13
  createVirtualBaseTemplatesModule,
14
14
  createVirtualClientPageAssetsModule,
@@ -17,7 +17,7 @@ import {
17
17
  createVirtualLayoutsModule,
18
18
  createVirtualPagesModule,
19
19
  createVirtualTemplatesModule
20
- } from "../runtime/virtual-pages.ts";
20
+ } from "../runtime/virtual-pages.mjs";
21
21
  const flowRestartPatterns = [
22
22
  /^flow\.config\.ts$/,
23
23
  /^nitro\.config\.ts$/,
@@ -1 +1 @@
1
- export { installFlowVuePlugins } from "../runtime/vue.ts";
1
+ export { installFlowVuePlugins } from "../runtime/vue.mjs";
@@ -1,5 +1,5 @@
1
1
  import { extname } from "node:path";
2
- import { getPrerenderRoutes } from "./page-discovery.ts";
2
+ import { getPrerenderRoutes } from "./page-discovery.mjs";
3
3
  function isHtmlRoute(route) {
4
4
  return extname(route) === "";
5
5
  }