Comparing version 3.11.2 to 3.12.0
@@ -1,2 +0,2 @@ | ||
import { ModuleOptions, ModuleDefinition, NuxtModule, Nuxt, ModuleMeta, NuxtConfig, NuxtOptions, SchemaDefinition, ImportPresetWithDeprecation, NuxtCompatibility, NuxtCompatibilityIssues, ComponentsDir, Component, NuxtTemplate, NuxtHooks, NuxtMiddleware, NuxtPlugin, NuxtPluginTemplate, ResolvedNuxtTemplate, NuxtTypeTemplate } from '@nuxt/schema'; | ||
import { ModuleOptions, ModuleDefinition, NuxtModule, NuxtConfig, Nuxt, ModuleMeta, NuxtOptions, SchemaDefinition, ImportPresetWithDeprecation, NuxtCompatibility, NuxtCompatibilityIssues, ComponentsDir, Component, NuxtTemplate, NuxtHooks, NuxtMiddleware, NuxtPlugin, NuxtPluginTemplate, ResolvedNuxtTemplate, NuxtTypeTemplate } from '@nuxt/schema'; | ||
import { LoadConfigOptions } from 'c12'; | ||
@@ -6,3 +6,3 @@ import { Import } from 'unimport'; | ||
import { UserConfig, Plugin } from 'vite'; | ||
import * as unctx_index from 'unctx/index'; | ||
import * as unctx from 'unctx'; | ||
import { NitroRouteConfig, NitroEventHandler, NitroDevEventHandler, Nitro } from 'nitropack'; | ||
@@ -20,3 +20,3 @@ import * as consola from 'consola'; | ||
/** Installs a module on a Nuxt instance. */ | ||
declare function installModule(moduleToInstall: string | NuxtModule, inlineOptions?: any, nuxt?: Nuxt): Promise<void>; | ||
declare function installModule<T extends string | NuxtModule, Config extends Extract<NonNullable<NuxtConfig['modules']>[number], [T, any]>>(moduleToInstall: T, inlineOptions?: [Config] extends [never] ? any : Config[1], nuxt?: Nuxt): Promise<void>; | ||
declare function getDirectory(p: string): string; | ||
@@ -72,2 +72,13 @@ declare const normalizeModuleTranspilePath: (p: string) => string; | ||
/** | ||
* Access 'resolved' Nuxt runtime configuration, with values updated from environment. | ||
* | ||
* This mirrors the runtime behavior of Nitro. | ||
*/ | ||
declare function useRuntimeConfig(): Record<string, any>; | ||
/** | ||
* Update Nuxt runtime configuration. | ||
*/ | ||
declare function updateRuntimeConfig(runtimeConfig: Record<string, unknown>): void | Promise<void>; | ||
interface ExtendConfigOptions { | ||
@@ -174,3 +185,3 @@ /** | ||
/** Direct access to the Nuxt context - see https://github.com/unjs/unctx. */ | ||
declare const nuxtCtx: unctx_index.UseContext<Nuxt>; | ||
declare const nuxtCtx: unctx.UseContext<Nuxt>; | ||
/** | ||
@@ -261,2 +272,13 @@ * Get access to Nuxt instance. | ||
extensions?: string[]; | ||
/** | ||
* Whether to resolve files that exist in the Nuxt VFS (for example, as a Nuxt template). | ||
* @default false | ||
*/ | ||
virtual?: boolean; | ||
/** | ||
* Whether to fallback to the original path if the resolved path does not exist instead of returning the normalized input path. | ||
* | ||
* @default false | ||
*/ | ||
fallbackToOriginal?: boolean; | ||
} | ||
@@ -408,2 +430,2 @@ /** | ||
export { type AddComponentOptions, type AddPluginOptions, type AddRouteMiddlewareOptions, type ExtendConfigOptions, type ExtendRouteRulesOptions, type ExtendViteConfigOptions, type ExtendWebpackConfigOptions, type LoadNuxtConfigOptions, type LoadNuxtOptions, type RequireModuleOptions, type ResolveModuleOptions, type ResolvePathOptions, type Resolver, addBuildPlugin, addComponent, addComponentsDir, addDevServerHandler, addImports, addImportsDir, addImportsSources, addLayout, addPlugin, addPluginTemplate, addPrerenderRoutes, addRouteMiddleware, addServerHandler, addServerImports, addServerImportsDir, addServerPlugin, addServerScanDir, addTemplate, addTypeTemplate, addVitePlugin, addWebpackPlugin, assertNuxtCompatibility, buildNuxt, checkNuxtCompatibility, compileTemplate, createResolver, defineNuxtModule, extendNuxtSchema, extendPages, extendRouteRules, extendViteConfig, extendWebpackConfig, findPath, getDirectory, getNuxtModuleVersion, getNuxtVersion, hasNuxtCompatibility, hasNuxtModule, hasNuxtModuleCompatibility, importModule, installModule, isIgnored, isNuxt2, isNuxt3, loadNuxt, loadNuxtConfig, loadNuxtModuleInstance, logger, normalizeModuleTranspilePath, normalizePlugin, normalizeSemanticVersion, normalizeTemplate, nuxtCtx, requireModule, resolveAlias, resolveFiles, resolveIgnorePatterns, resolveModule, resolveNuxtModule, resolvePath, templateUtils, tryImportModule, tryRequireModule, tryResolveModule, tryUseNuxt, updateTemplates, useLogger, useNitro, useNuxt, writeTypes }; | ||
export { type AddComponentOptions, type AddPluginOptions, type AddRouteMiddlewareOptions, type ExtendConfigOptions, type ExtendRouteRulesOptions, type ExtendViteConfigOptions, type ExtendWebpackConfigOptions, type LoadNuxtConfigOptions, type LoadNuxtOptions, type RequireModuleOptions, type ResolveModuleOptions, type ResolvePathOptions, type Resolver, addBuildPlugin, addComponent, addComponentsDir, addDevServerHandler, addImports, addImportsDir, addImportsSources, addLayout, addPlugin, addPluginTemplate, addPrerenderRoutes, addRouteMiddleware, addServerHandler, addServerImports, addServerImportsDir, addServerPlugin, addServerScanDir, addTemplate, addTypeTemplate, addVitePlugin, addWebpackPlugin, assertNuxtCompatibility, buildNuxt, checkNuxtCompatibility, compileTemplate, createResolver, defineNuxtModule, extendNuxtSchema, extendPages, extendRouteRules, extendViteConfig, extendWebpackConfig, findPath, getDirectory, getNuxtModuleVersion, getNuxtVersion, hasNuxtCompatibility, hasNuxtModule, hasNuxtModuleCompatibility, importModule, installModule, isIgnored, isNuxt2, isNuxt3, loadNuxt, loadNuxtConfig, loadNuxtModuleInstance, logger, normalizeModuleTranspilePath, normalizePlugin, normalizeSemanticVersion, normalizeTemplate, nuxtCtx, requireModule, resolveAlias, resolveFiles, resolveIgnorePatterns, resolveModule, resolveNuxtModule, resolvePath, templateUtils, tryImportModule, tryRequireModule, tryResolveModule, tryUseNuxt, updateRuntimeConfig, updateTemplates, useLogger, useNitro, useNuxt, useRuntimeConfig, writeTypes }; |
{ | ||
"name": "@nuxt/kit", | ||
"version": "3.11.2", | ||
"version": "3.12.0", | ||
"repository": { | ||
@@ -29,17 +29,19 @@ "type": "git", | ||
"defu": "^6.1.4", | ||
"destr": "^2.0.3", | ||
"globby": "^14.0.1", | ||
"hash-sum": "^2.0.0", | ||
"ignore": "^5.3.1", | ||
"jiti": "^1.21.0", | ||
"jiti": "^1.21.6", | ||
"klona": "^2.0.6", | ||
"knitwork": "^1.1.0", | ||
"mlly": "^1.6.1", | ||
"mlly": "^1.7.1", | ||
"pathe": "^1.1.2", | ||
"pkg-types": "^1.0.3", | ||
"pkg-types": "^1.1.1", | ||
"scule": "^1.3.0", | ||
"semver": "^7.6.0", | ||
"semver": "^7.6.2", | ||
"ufo": "^1.5.3", | ||
"unctx": "^2.3.1", | ||
"unimport": "^3.7.1", | ||
"unimport": "^3.7.2", | ||
"untyped": "^1.4.2", | ||
"@nuxt/schema": "3.11.2" | ||
"@nuxt/schema": "3.12.0" | ||
}, | ||
@@ -53,4 +55,4 @@ "devDependencies": { | ||
"unbuild": "latest", | ||
"vite": "5.2.8", | ||
"vitest": "1.4.0", | ||
"vite": "5.2.13", | ||
"vitest": "1.6.0", | ||
"webpack": "5.91.0" | ||
@@ -57,0 +59,0 @@ }, |
@@ -36,2 +36,3 @@ [![Nuxt banner](./.github/assets/banner.svg)](https://nuxt.com) | ||
- β°οΈ [Nuxt 2](#nuxt-2) | ||
- π [Professional Support](#professional-support) | ||
- π [Follow us](#follow-us) | ||
@@ -97,3 +98,3 @@ - βοΈ [License](#license) | ||
- **Reporting Bugs:** If you come across any bugs or issues, please check out the [reporting bugs guide](https://nuxt.com/docs/community/reporting-bugs) to learn how to submit a bug report. | ||
- **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/community/contribution#creating-an-issue) to share your suggestions. | ||
- **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/community/contribution) to share your suggestions. | ||
- **Questions:** If you have questions or need assistance, the [getting help guide](https://nuxt.com/docs/community/getting-help) provides resources to help you out. | ||
@@ -109,2 +110,9 @@ | ||
If you expect to be using Nuxt 2 beyond the EOL (End of Life) date (June 30, 2024), and still need a maintained version that can satisfy security and browser compatibility requirements, make sure to check out [HeroDevsβ NES (Never-Ending Support) Nuxt 2](https://www.herodevs.com/support/nuxt-nes?utm_source=nuxt-github&utm_medium=nuxt-readme). | ||
## <a name="professional-support">π Professional Support</a> | ||
- Technical audit & consulting: [Nuxt Experts](https://nuxt.com/enterprise/support) | ||
- Custom development & more: [Nuxt Agencies Partners](https://nuxt.com/enterprise/agencies) | ||
## <a name="follow-us">π Follow us</a> | ||
@@ -111,0 +119,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143862
3451
124
20
+ Addeddestr@^2.0.3
+ Addedklona@^2.0.6
+ Added@nuxt/schema@3.12.0(transitive)
+ Addedcompatx@0.1.8(transitive)
+ Addedklona@2.0.6(transitive)
+ Addeduncrypto@0.1.3(transitive)
- Removed@nuxt/schema@3.11.2(transitive)
- Removed@nuxt/ui-templates@1.3.4(transitive)
Updated@nuxt/schema@3.12.0
Updatedjiti@^1.21.6
Updatedmlly@^1.7.1
Updatedpkg-types@^1.1.1
Updatedsemver@^7.6.2
Updatedunimport@^3.7.2