Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonleex authored Mar 26, 2024
2 parents f688147 + 12e4805 commit 68f8c4c
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 65 deletions.
67 changes: 67 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,73 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## v2.9.5

[compare changes](https://github.com/unjs/nitro/compare/v2.9.4...v2.9.5)

### 🚀 Enhancements

- **openapi:** Add experimental `/_nitro/scalar` endpoint ([#2252](https://github.com/unjs/nitro/pull/2252))

### 🩹 Fixes

- **openapi:** Use dynamic host + port ([#2216](https://github.com/unjs/nitro/pull/2216))
- **openapi:** Add `schema` to generated parameters ([#2235](https://github.com/unjs/nitro/pull/2235))
- **openapi:** Avoid double slash for base ([fdf7e70a](https://github.com/unjs/nitro/commit/fdf7e70a))
- **options:** Set `scheduledTasks` to an empty object by default ([#2285](https://github.com/unjs/nitro/pull/2285))
- **prerender:** Call `nitroApp` close hook when done prerendering ([#2287](https://github.com/unjs/nitro/pull/2287))
- **types:** Return `T` from `Serialize` when it extends `undefined` ([#2286](https://github.com/unjs/nitro/pull/2286))
- **raw:** Exclude yaml from raw plugin ([#2275](https://github.com/unjs/nitro/pull/2275))
- **externals:** Check explicit inline rules on resolved id ([#2288](https://github.com/unjs/nitro/pull/2288))
- **raw:** Allow importing relative paths ([#2289](https://github.com/unjs/nitro/pull/2289))
- **types:** Make c12 env types available for `NitroConfig` ([#2292](https://github.com/unjs/nitro/pull/2292))
- **netlify-edge:** Write `_headers` and `_redirects` ([#2291](https://github.com/unjs/nitro/pull/2291))
- **cloudflare-pages:** Write `_headers` and `_redirects` for non static builds ([#2290](https://github.com/unjs/nitro/pull/2290))
- **netlify:** Allow writing `config.json` ([#2264](https://github.com/unjs/nitro/pull/2264))
- Allow importing utils from `nitropack/runtime` ([#2314](https://github.com/unjs/nitro/pull/2314))

### 💅 Refactors

- **openapi:** Upgrade to openapi 3.1 ([#2297](https://github.com/unjs/nitro/pull/2297))

### 📖 Documentation

- **routing:** Add note about middleware execution order ([#2282](https://github.com/unjs/nitro/pull/2282))
- **routing:** Fx link to h3 object syntax handler ([#2281](https://github.com/unjs/nitro/pull/2281))
- Update tasks return value ([8a62e7db](https://github.com/unjs/nitro/commit/8a62e7db))
- **cache:** Add a note for serverless environment ([dc83a2e2](https://github.com/unjs/nitro/commit/dc83a2e2))
- Fix typo ([#2298](https://github.com/unjs/nitro/pull/2298))

### 📦 Build

- Use `.d.ts` for runtime generated types ([#2313](https://github.com/unjs/nitro/pull/2313))

### 🏡 Chore

- Lint ([f7330329](https://github.com/unjs/nitro/commit/f7330329))
- Update docs ([00c308c1](https://github.com/unjs/nitro/commit/00c308c1))
- Update deps and lockfile ([55fd222b](https://github.com/unjs/nitro/commit/55fd222b))
- Remove unused imports ([#2293](https://github.com/unjs/nitro/pull/2293))
- Update deps and lockfile ([40883766](https://github.com/unjs/nitro/commit/40883766))
- Update radix3 and lockfile ([7429465f](https://github.com/unjs/nitro/commit/7429465f))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))
- Matt Kane <matt.kane@netlify.com>
- Hans Pagel
- Jamaluddin Rumi <16121031@student.mercubuana-yogya.ac.id>
- Julien Huang <julien.huang@outlook.fr>
- Bobbie Goede <bobbiegoede@gmail.com>
- Damian Głowala ([@DamianGlowala](http://github.com/DamianGlowala))
- Daniel Roe ([@danielroe](http://github.com/danielroe))
- Sébastien Chopin ([@Atinux](http://github.com/Atinux))
- Neil Richter ([@noook](http://github.com/noook))
- Samuel Burkhard <sxburk@gmail.com>
- Shoshana Connack ([@moshetanzer](http://github.com/moshetanzer))
- Yuurin ([@byyuurin](http://github.com/byyuurin))
- Markthree ([@markthree](http://github.com/markthree))

## v2.9.4

[compare changes](https://github.com/unjs/nitro/compare/v2.9.3...v2.9.4)
Expand Down
4 changes: 4 additions & 0 deletions docs/2.deploy/20.providers/netlify.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ Make sure the publish directory is set to `dist` when creating a new project.
On-demand Builders are serverless functions used to generate web content as needed that’s automatically cached on Netlify’s Edge CDN. They enable you to build pages for your site when a user visits them for the first time and then cache them at the edge for subsequent visits.

:read-more{title="Netlify On-demand Builders" to="https://docs.netlify.com/configure-builds/on-demand-builders/"}

## Custom deploy configuration

You can provide additional deploy configuration using the `netlify` key inside `nitro.config`. It will be merged with built-in auto-generated config. Currently the only supported value is `images.remote_images`, for [configuring Netlify Image CDN](https://docs.netlify.com/image-cdn/create-integration/).
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nitropack",
"version": "2.9.4",
"version": "2.9.5",
"description": "Build and Deploy Universal JavaScript Servers",
"repository": "unjs/nitro",
"license": "MIT",
Expand All @@ -18,12 +18,16 @@
"types": "./dist/cli/index.d.mts",
"import": "./dist/cli/index.mjs"
},
"./runtime": {
"types": "./dist/runtime/index.d.ts",
"import": "./dist/runtime/index.mjs"
},
"./runtime/*": {
"types": "./dist/runtime/*.d.mts",
"types": "./dist/runtime/*.d.ts",
"import": "./dist/runtime/*.mjs"
},
"./dist/runtime/*": {
"types": "./dist/runtime/*.d.mts",
"types": "./dist/runtime/*.d.ts",
"import": "./dist/runtime/*.mjs"
},
"./package.json": "./package.json"
Expand Down Expand Up @@ -111,7 +115,7 @@
"perfect-debounce": "^1.0.0",
"pkg-types": "^1.0.3",
"pretty-bytes": "^6.1.1",
"radix3": "^1.1.1",
"radix3": "^1.1.2",
"rollup": "^4.13.0",
"rollup-plugin-visualizer": "^5.12.0",
"scule": "^1.3.0",
Expand Down Expand Up @@ -181,4 +185,4 @@
]
}
}
}
}
Loading

0 comments on commit 68f8c4c

Please sign in to comment.