Skip to content

Version Packages - #498

Merged
jose-filho-azion merged 1 commit into
mainfrom
changeset-release/main
Nov 11, 2026
Merged

jose-filho-azion merged 1 commit into
mainfrom
changeset-release/main

Conversation

@pablo-diehl-azion

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@aziontech/[email protected]

Minor Changes

  • #490 40d1833 Thanks @jose-filho-azion! - Support the Azion API v6 config in the same packages.

    • @aziontech/config: a config with version: 6 is now validated and processed into a v6 manifest. v3 and v4 are unchanged, and a config without version is still the v4 one. v6 changes the publishing model: Save creates a Draft version and publishing is a separate step, so the config declares environments and deployments (the environment and deployment policies are required) and workloads with bindings (a binding references an environment and a deployment by name). Adds the build, applications (rules, cache settings, function instances and device groups), functions (with bindings), purge, storage, connectors, firewall, WAF, network lists and custom pages. validateConfig, processConfig, validateManifest and convertJsonConfigToObject accept v6, and defineConfig types the config as AzionConfigV6. The v3 and v4 manifests now carry the API version. The v6 API has no active in its resources, so the v6 config and manifest do not have it, and the createSPARules and createMPARules helpers no longer write active: true (it is the default of the v4 and v3 rules).
    • @aziontech/presets: every preset now provides its v6 config in configs[6] (nitro has no v3 config, as it did not exist on v3). config remains the default (v4) config.

@aziontech/[email protected]

Minor Changes

  • #490 40d1833 Thanks @jose-filho-azion! - Support the Azion API v6 config in the same packages.

    • @aziontech/config: a config with version: 6 is now validated and processed into a v6 manifest. v3 and v4 are unchanged, and a config without version is still the v4 one. v6 changes the publishing model: Save creates a Draft version and publishing is a separate step, so the config declares environments and deployments (the environment and deployment policies are required) and workloads with bindings (a binding references an environment and a deployment by name). Adds the build, applications (rules, cache settings, function instances and device groups), functions (with bindings), purge, storage, connectors, firewall, WAF, network lists and custom pages. validateConfig, processConfig, validateManifest and convertJsonConfigToObject accept v6, and defineConfig types the config as AzionConfigV6. The v3 and v4 manifests now carry the API version. The v6 API has no active in its resources, so the v6 config and manifest do not have it, and the createSPARules and createMPARules helpers no longer write active: true (it is the default of the v4 and v3 rules).
    • @aziontech/presets: every preset now provides its v6 config in configs[6] (nitro has no v3 config, as it did not exist on v3). config remains the default (v4) config.

Patch Changes

  • #490 40d1833 Thanks @jose-filho-azion! - Fix the nuxt preset prebuild reading a stale or missing manifest. Nuxt >= 4.6 builds into node_modules/.cache/nuxt/.nuxt when .nuxt already exists, so .nuxt/manifest/meta is no longer reliable. The manifest is now read from .output/public/_nuxt/builds/meta first, then from the cache dir and .nuxt, picking the file that latest.json references.

  • #490 40d1833 Thanks @jose-filho-azion! - Fix the regex of the "Redirect to index.html for Subpaths" rule of the nuxt, svelte and nitro presets (v4 and v6 configs). It matched files such as /logo.png and skipped the paths without extension such as /about, because of [sS]* (instead of [\s\S]*) and an unescaped .. It now matches only the paths that do not end with / and have no file extension.

  • Updated dependencies [40d1833]:

@aziontech/[email protected]

Patch Changes

@pablo-diehl-azion
pablo-diehl-azion requested a review from a team as a code owner November 11, 2026 18:55
@github-actions

Copy link
Copy Markdown
Contributor

SCC Complexity Analysis

  • Title: Version Packages
  • Author: pablo-diehl-azion
Metric Source Branch (changeset-release/main) Target Branch (main) Difference
Complexity 4512 4512 0
Code 76258 76253 5

@jose-filho-azion
jose-filho-azion merged commit 1538332 into main Nov 11, 2026
9 checks passed
@jose-filho-azion
jose-filho-azion deleted the changeset-release/main branch November 11, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants