Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from unjs:main #59

Open
wants to merge 643 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
643 commits
Select commit Hold shift + click to select a range
a445fae
docs: fix typo
kspace-trk Mar 9, 2024
52b65c7
fix(raw): use mime to chck binary types and exclude `.json` (#2239)
pi0 Mar 10, 2024
7e13a51
chore(release): v2.9.3
pi0 Mar 10, 2024
0b4b5c2
fix: handle path negations when scanning public assets (#2250)
danielroe Mar 13, 2024
e260665
chore(deps): update all non-major dependencies (#2245)
renovate[bot] Mar 13, 2024
a1d7f41
docs: fix server assets example path (#2248)
kleinpetr Mar 14, 2024
5368b2b
docs: remove duplicate `integrity` key (#2246)
devseckobz Mar 14, 2024
9f1e99d
chore: fix typo (#2260)
TheAlexLichter Mar 14, 2024
093c1f8
docs: fix wording (#2261)
TheAlexLichter Mar 14, 2024
39bc3f2
docs: remove nightly notice
pi0 Mar 14, 2024
277d6d3
fix(pkg): add `ioredis` as unstorage peer dependency (#2266)
pi0 Mar 15, 2024
d12599a
chore(deps): update all non-major dependencies (#2263)
renovate[bot] Mar 15, 2024
d8fafe4
chore: update lockfile
pi0 Mar 15, 2024
b6cc11c
chore: update ufo
pi0 Mar 15, 2024
0f089d3
test: increase timeout
pi0 Mar 15, 2024
c5dbb45
docs(tasks): update dev server usage (#2240)
noook Mar 15, 2024
cc24c20
docs(cache): add example usage for `cache.varies` (#2241)
adamdehaven Mar 15, 2024
08a63b4
chore(release): v2.9.4
pi0 Mar 15, 2024
ebab970
feat(openapi): add experimental `/_nitro/scalar` endpoint (#2252)
hanspagel Mar 15, 2024
985a489
fix(openapi): use dynamic host + port (#2216)
markthree Mar 15, 2024
e40abf0
fix(openapi): add `schema` to generated parameters (#2235)
byyuurin Mar 15, 2024
f733032
chore: lint
pi0 Mar 15, 2024
fdf7e70
fix(openapi): avoid double slash for base
pi0 Mar 15, 2024
d2881a8
chore(deps): update all non-major dependencies (#2268)
renovate[bot] Mar 18, 2024
cb2d81d
docs(routing): add note about middleware execution order (#2282)
moshetanzer Mar 20, 2024
90434ec
docs(routing): fx link to h3 object syntax handler (#2281)
samydoesit Mar 20, 2024
8a62e7d
docs: update tasks return value
atinux Mar 20, 2024
d12aae1
fix(options): set `scheduledTasks` to an empty object by default (#2285)
noook Mar 21, 2024
dc83a2e
docs(cache): add a note for serverless environment
atinux Mar 21, 2024
5184e45
fix(prerender): call `nitroApp` close hook when done prerendering (#2…
danielroe Mar 21, 2024
a077cb2
fix(types): return `T` from `Serialize` when it extends `undefined` (…
DamianGlowala Mar 21, 2024
a072a76
fix(raw): exclude yaml from raw plugin (#2275)
BobbieGoede Mar 21, 2024
882f0a9
fix(externals): check explicit inline rules on resolved id (#2288)
pi0 Mar 21, 2024
00c308c
chore: update docs
pi0 Mar 21, 2024
70cf983
fix(raw): allow importing relative paths (#2289)
pi0 Mar 21, 2024
55fd222
chore: update deps and lockfile
pi0 Mar 21, 2024
3e22047
fix(types): make c12 env types available for `NitroConfig` (#2292)
pi0 Mar 21, 2024
273d98d
fix(netlify-edge): write `_headers` and `_redirects` (#2291)
pi0 Mar 22, 2024
e79858d
fix(cloudflare-pages): write `_headers` and `_redirects` for non stat…
pi0 Mar 22, 2024
6bd4591
chore: remove unused imports (#2293)
huang-julien Mar 22, 2024
4088376
chore: update deps and lockfile
pi0 Mar 22, 2024
c8e7080
docs: fix typo (#2298)
jamaluddinrumi Mar 22, 2024
d1b9291
refactor(openapi): upgrade to openapi 3.1 (#2297)
hanspagel Mar 22, 2024
98395f7
build: use `.d.ts` for runtime generated types (#2313)
pi0 Mar 25, 2024
eca05c8
fix(netlify): allow writing `config.json` (#2264)
ascorbic Mar 25, 2024
7f61efe
fix: allow importing utils from `nitropack/runtime` (#2314)
pi0 Mar 25, 2024
7429465
chore: update radix3 and lockfile
pi0 Mar 25, 2024
12e4805
chore(release): v2.9.5
pi0 Mar 25, 2024
440840a
docs: remove outdated nightly warning (#2317)
okydk Mar 26, 2024
38fcbd2
chore(deps): update all non-major dependencies (#2316)
renovate[bot] Mar 26, 2024
1694850
fix: generate root/src directory aliases (#2318)
danielroe Mar 27, 2024
825d94f
chore: update docs lockfile
pi0 Mar 27, 2024
873c89e
fix(externals): skip resolving virtual ids start with `\0` (#2321)
pi0 Mar 27, 2024
2bce7ad
chore(deps): update all non-major dependencies (#2323)
renovate[bot] Mar 29, 2024
eb377ab
chore(deps): update all non-major dependencies (#2328)
renovate[bot] Apr 2, 2024
c343a2d
chore(docs): update lock
pi0 Apr 2, 2024
fcc0f9a
chore: update lockfile
pi0 Apr 2, 2024
91ef6d0
fix(types): account for `undefined` value for `$fetch` return type (#…
DamianGlowala Apr 2, 2024
3cb566e
fix(cloudflare-pages): use predefined wildcards in `routes.exclude` (…
pgraug Apr 2, 2024
6f15920
chore(release): v2.9.6
pi0 Apr 2, 2024
ebd27cc
feat: generate types for runtime config (#2306)
BlankParticle Apr 3, 2024
2d6381d
feat(serverAssets): support `ignore` option (#2302)
jsonleex Apr 3, 2024
09d23d6
feat: expose `getRouteRulesForPath` from nitro runtime (#2238)
danielroe Apr 3, 2024
8b5cbc5
fix(github-pages): prerender `/` by default (#2334)
sby1ce Apr 3, 2024
b2f22e9
feat(openapi): support configuration via `openapi` (#2299)
hanspagel Apr 3, 2024
7bfe444
chore(docs): update lockfile
pi0 Apr 4, 2024
c5d550a
feat: environment specific event handlers (#2272)
HigherOrderLogic Apr 4, 2024
9e2cd8a
refactor(openapi): update swagger-ui version to v5 for OpenAPI v3.1 s…
byyuurin Apr 8, 2024
f0997c1
docs: remove duplicate option definition (#2339)
adamdehaven Apr 9, 2024
da05b8d
feat: experimental `defineRouteMeta` (#2102)
eriksLapins Apr 10, 2024
b444f17
chore: update deps
pi0 Apr 10, 2024
2de822b
chore: lint and migrate to eslint flat config (#2352)
pi0 Apr 10, 2024
f75f042
feat(cloudflare-pages): generate `wrangler.toml` (#2353)
pi0 Apr 10, 2024
8e88dd4
refactor(cloudflare-pages): update root `wrangler.toml` in CI (#2355)
pi0 Apr 10, 2024
bb03183
chore(cf-pages): only create wrangler.toml if config is not empty (#2…
atinux Apr 11, 2024
f91dbd3
docs(fetch): unexpected spaces (#2368)
baboon-king Apr 16, 2024
94eacf6
chore(deps): update pnpm to v9 (#2366)
renovate[bot] Apr 16, 2024
8add14c
chore: update deps
pi0 Apr 16, 2024
69a7887
chore(deps): update resolutions undici to ^6.13.0 (#2364)
renovate[bot] Apr 16, 2024
babe16e
fix(deno-server): always inject `process` from `node:process` (#2372)
pi0 Apr 17, 2024
d887f4a
fix(deno-server): explicitly remove cert/key from options if either i…
pi0 Apr 17, 2024
eedc041
refactor: strict typechecks (#2370)
pi0 Apr 17, 2024
3a69dd7
docs: correct env variable to `NITRO_SHUTDOWN_DISABLED` (#2377)
nicolaspayot Apr 18, 2024
97e2a31
chore: fix typos (#2386)
szepeviktor Apr 22, 2024
ce58d82
chore(deps): update all non-major dependencies (#2383)
renovate[bot] Apr 22, 2024
4293b8b
fix: deduplicate plugins (#2391)
danielroe Apr 24, 2024
45ff175
refactor: convert `CapturedErrorContext` to interface to allow type a…
huang-julien Apr 25, 2024
20b26a7
chore(deps): update all non-major dependencies (#2397)
renovate[bot] Apr 29, 2024
f03addd
fix(iis): deep merge configs (#2358)
Ariesly Apr 29, 2024
cb4406a
docs(caching): fix typos and rephrase for clarity (#2380)
cernymatej Apr 29, 2024
b2f4523
fix(externals): compare package paths against normalized `id` (#2371)
markthree Apr 29, 2024
78ec24d
chore: update eslint preset
pi0 Apr 29, 2024
ec98b24
style: try biome formatter (#2401)
pi0 Apr 29, 2024
1e506ac
fix(azure): correctly handle `maxAge` cookie option (#2400)
julien1619 Apr 29, 2024
d2c0d74
fix: add `.tsx` and `.jsx` to `node-resolve` extensions (#2398)
igorjacauna Apr 29, 2024
f1d784d
docs: add a usage example for server sent events (#2379)
martinszeltins Apr 29, 2024
e60e114
fix: lower-case accepted handler method (#2382)
jsonleex Apr 29, 2024
6b6777e
fix: set `compilerOptions.noEmit` to avoid `tsconfig.json` warning (#…
danielroe Apr 29, 2024
665f630
feat: allow customizing `apiBaseURL`, `apiDir` and `routesDir` (#1763)
igorjacauna Apr 29, 2024
fb88efd
fix(prerender): only try to add `/` after `prerender:routes` hook (#2…
danielroe Apr 29, 2024
aabdc9c
fix(azure): correctly handle maxAge cookie option (#2403)
julien1619 Apr 30, 2024
8facf17
docs: correct directory name (#2417)
dominiq007 May 7, 2024
ab15a91
feat(aws-lambda): experimental streaming support (#2412)
thdxr May 7, 2024
c618fa3
feat(providers): add `gitlab-pages` static provider (#2420)
danielroe May 7, 2024
21e3a65
docs: use `npx nypm install` in instead of `npm install` (#2421)
danielroe May 7, 2024
9fcaca6
feat(netlify): experimental support v2 functions ISR via targeted cac…
serhalp May 7, 2024
346a495
fix(aws-lambda-streaming): fix global lambda import pointing to wrong…
thdxr May 7, 2024
cd68019
chore(deps): update node.js to v20 (#2424)
renovate[bot] May 9, 2024
8ef9a19
docs(websocket): correct nuxt sse url (#2430)
dargmuesli May 10, 2024
ac40a47
chore(deps): update all non-major dependencies (#2433)
renovate[bot] May 14, 2024
549ffc4
chore(deps): update devdependency better-sqlite3 to v10 (#2437)
renovate[bot] May 14, 2024
3029180
chore(deps): update all non-major dependencies (#2445)
renovate[bot] May 16, 2024
989124a
chore(deps): update dependency dot-prop to v9 (#2429)
renovate[bot] May 16, 2024
a92f267
chore(deps): update devdependency execa to v9 (#2423)
renovate[bot] May 16, 2024
944dcde
refactor: overhaul presets structure (#2446)
pi0 May 16, 2024
6adc84c
fix(netlify): match ISR route rules when path has a query string (#2440)
serhalp May 16, 2024
b2831dd
build: explicitly add `nitropack` to externals (nightly)
pi0 May 16, 2024
4555b58
docs(node): fix `node-listener` example (#2456)
starknt May 21, 2024
6c3e080
fix(preset-iis): parse without `explicitArray` to allow merging `web…
Ariesly May 21, 2024
943f11e
build: load presets from unbundled `nitropack/presets` (#2459)
pi0 May 21, 2024
0cba59d
chore(deps): update all non-major dependencies (#2460)
renovate[bot] May 22, 2024
9bd6622
fix: pass custom entry filename when resolving prerenderer (#2461)
brandonroberts May 23, 2024
61f2079
fix(vercel): support custom `baseURL` (#2464)
danielroe May 23, 2024
4d70b75
fix: use relative paths in `nitro-config.d.ts` (#2471)
danielroe May 27, 2024
6ff8bfd
fix(netlify): added missing quotes in utils (#2472)
Rigo-m May 27, 2024
ad100f4
chore: update deps
pi0 May 27, 2024
f95c4f5
chore: format
pi0 May 27, 2024
a14b153
chore: update lockfile
pi0 May 28, 2024
ececd69
chore: disable flaky db test on windows
pi0 May 28, 2024
2f17f9d
chore(deps): update devdependency better-sqlite3 to v11 (#2482)
renovate[bot] May 31, 2024
efce1a6
chore(deps): update all non-major dependencies (#2484)
renovate[bot] Jun 3, 2024
40a0007
docs: prefix `NITRO_` in `.env` file (#2486)
gutenye Jun 3, 2024
fa26b30
docs: fix typo autoSubFolderIndex ~> autoSubfolderIndex (#2494)
ashcolor Jun 4, 2024
d20ffcb
refactor: structure overhaul (#2473)
pi0 Jun 4, 2024
9642ef6
chore: update deps and lockfile
pi0 Jun 4, 2024
0009773
chore: update eslint and biome
pi0 Jun 4, 2024
e6097ed
fix: avoid named exports from `package.json`
pi0 Jun 4, 2024
c95dae5
build: update unbuild to 3.x
pi0 Jun 4, 2024
ca2282b
build: introduce `nitropack/meta`
pi0 Jun 4, 2024
4106750
build: improve chunk names
pi0 Jun 4, 2024
0112801
build: hotfix unbuild to resolve jiti stub await issue
pi0 Jun 5, 2024
79b85fe
fix(cloudflare-pages): remove `.html` extension from `_routes.json` (…
atinux Jun 7, 2024
7965bb0
docs: correct h3 docs link to `event-handler` (#2500)
VisuSubbaiyan Jun 7, 2024
e316df3
fix: more compatibility for import from `nitropack/runtime/*` (#2501)
pi0 Jun 7, 2024
c9a7afc
fix(build): correctly watch custom `apiDir` and `routesDir` (#2502)
94726 Jun 8, 2024
72db848
fix(public-assets): do not shadow paths that share prefix (#2516)
danielroe Jun 12, 2024
fa7fa54
feat: add compatibility date support (#2511)
pi0 Jun 12, 2024
4657ada
fix(core): resolve modules with esm compatibility (#2514)
94726 Jun 12, 2024
fe5da14
chore: ignore biome formatting `package.json`
pi0 Jun 12, 2024
1fae1ce
chore: update dependencies
pi0 Jun 12, 2024
eeae226
chore: update `@rollup/plugin-commonjs`
pi0 Jun 12, 2024
0083c10
chore: update `config.d.ts`
pi0 Jun 12, 2024
ced80b2
chore: add compatibilityDate to fixture
pi0 Jun 12, 2024
8928c3a
chore(playground): does not overwrite `tsconfig.paths` (#2507)
Barbapapazes Jun 12, 2024
9efa3a5
feat(cloudflare-module): support `cloudflare:email` and `cloudflare:q…
dalbodeule Jun 12, 2024
e1f87c5
fix(prerender): extract links from explicit html routes (#2517)
danielroe Jun 13, 2024
178f209
chore(deps): update all non-major dependencies (#2518)
renovate[bot] Jun 13, 2024
fc3968b
feat(defineCachedEventHandler): add `event.context.cache` (#2519)
atinux Jun 13, 2024
c84f676
chore: add missing `magicast` dep
pi0 Jun 13, 2024
4842312
build: mirror `nitro` and `nitropack` npm packages (#2497)
pi0 Jun 13, 2024
09c8267
chore: update ci node version to 20
pi0 Jun 13, 2024
d549634
chore: prepare v2 branch
pi0 Jun 13, 2024
63cc133
refactor(core)!: remove deprecated exports
pi0 Jun 13, 2024
23c715a
refactor(runtime)!: remove `runtime/*` compatibility exports
pi0 Jun 13, 2024
9bdce70
refactor!: use `nitro` as canonical name
pi0 Jun 13, 2024
c453130
chore: publish nightly with v3 tag
pi0 Jun 13, 2024
646d2f2
chore: bump nightly with 3.0.0-beta
pi0 Jun 13, 2024
d12305b
refactor!: remove `runtime/*` subpath export
pi0 Jun 13, 2024
5d54ed1
refactor!: remove `legacy-externals` plugin
pi0 Jun 13, 2024
f094c66
refactor: remove types for`nitro/runtime/*` subpath exports
pi0 Jun 13, 2024
93d002b
refactor: remove dependency on `/runtime/internal/*` subpaths (#2524)
pi0 Jun 13, 2024
7e1a70a
chore: lint with biome (#2525)
pi0 Jun 13, 2024
25df63e
chore: lint with biome
pi0 Jun 13, 2024
d19d3f0
Merge branch 'v2'
pi0 Jun 13, 2024
0bd61f1
chore: update v2/main
pi0 Jun 13, 2024
1c220ef
chore: manually apply changes from #2524 to main
pi0 Jun 13, 2024
7f21afc
chore: use `import type` for `_types.gen.ts`
pi0 Jun 13, 2024
a45a10a
chore: fix build
pi0 Jun 13, 2024
f7e1c46
feat: enable async context by default
pi0 Jun 13, 2024
ba3ee3c
refactor!: remove webpack dynamic require plugin
pi0 Jun 13, 2024
1fe7b89
ci: change tag to 3x
pi0 Jun 13, 2024
b32e083
refactor!: remove app config support (#2526)
pi0 Jun 13, 2024
3253d31
refactor!: always use native fetch in builds (#2527)
pi0 Jun 13, 2024
ebeda79
chore: improve internal `tsconfig.json` (#2529)
danielroe Jun 14, 2024
b341cc0
chore(deps): update all non-major dependencies (#2528)
renovate[bot] Jun 14, 2024
2ca8021
chore: improve internal `tsconfig.json` (#2529)
danielroe Jun 14, 2024
85769d0
docs: update link to runtime hook source code (#2537)
aryan02420 Jun 17, 2024
7e0b49e
feat!: increase generated `tsconfig.json` strictness (#2533)
danielroe Jun 17, 2024
e4f687d
feat(core): warn if runtime config is not serializable (#2542)
danielroe Jun 17, 2024
f6f2327
fix: upate `cli` preset with esm module format (#2539)
jrutila Jun 17, 2024
a99680e
chore(deps): update all non-major dependencies (#2543)
renovate[bot] Jun 18, 2024
e1c52af
fix(core): scan handlers when initialising nitro (#2546)
danielroe Jun 19, 2024
8b4a408
fix: make sure nitro runtime goes to one chunk (#2547)
pi0 Jun 19, 2024
77e4b5a
rebase with v2
pi0 Jun 19, 2024
f76d21b
fix(types): infer types correctly when method is omitted (#2551)
danielroe Jun 20, 2024
9a71720
Merge branch 'v2'
pi0 Jun 20, 2024
b86bb45
fix(renderer): check full path for `/favicon.ico` placeholder (#2553)
pi0 Jun 21, 2024
bec2ebe
chore: remove unused dependency `is-primitive` (#2556)
danielroe Jun 23, 2024
169687b
chore(deps): update oven-sh/setup-bun action to v2 (#2557)
renovate[bot] Jun 23, 2024
d16a47b
fix(netlify): ensure preview command is correct (#2561)
danielroe Jun 25, 2024
5bcc0a2
fix build
pi0 Jun 26, 2024
a4abb22
chore: fix typegen script
pi0 Jun 26, 2024
49ed2fe
fix: backward compatibility types for v2 (#2563)
pi0 Jun 26, 2024
33fb776
fix(handler-meta): check for `.name` with `undefined` value in `Obje…
Saganic Jun 26, 2024
6408c5c
chore(deps): update dependency openapi-typescript to v7 (#2548)
renovate[bot] Jun 26, 2024
f3b11e2
Merge branch 'v2'
pi0 Jun 26, 2024
8693087
feat(netlify): use new `durable` cache-control directive for `isr` ru…
serhalp Jun 28, 2024
859de2d
Merge branch 'v2'
pi0 Jun 28, 2024
502fc1a
chore: remove extra space in banner (#2573)
danielroe Jul 1, 2024
3a2e6cc
refactor: migrate to `colors` from `consola/utils` (#2574)
pi0 Jul 1, 2024
96b1d7c
docs: move `await` to explicit line for clarity (#2577)
iiio2 Jul 1, 2024
63526f2
docs: fix typos (#2578)
iiio2 Jul 1, 2024
e727afd
feat: upgrade to jiti v2 (#2582)
pi0 Jul 2, 2024
1fba144
docs: fix typos (#2589)
iiio2 Jul 6, 2024
d6ec713
docs(storage): add await before `setItem` (#2588)
iiio2 Jul 6, 2024
b485a27
chore(deps): update autofix-ci/action digest to 2891949 (#2584)
renovate[bot] Jul 7, 2024
a8234d3
fix: hide unhandled error messages in prod (#2591)
pi0 Jul 7, 2024
1b8e497
docs: convert to underscore preset names (#2592)
anbraten Jul 7, 2024
b5bdb2f
docs: fix title format (#2594)
iiio2 Jul 7, 2024
823b911
docs(cloudflare): add missing `await` (#2601)
iiio2 Jul 9, 2024
eaffb9a
docs(compressPublicAssets): adjust formatting (#2603)
iiio2 Jul 9, 2024
077703c
fix(prerender): allow ignoring errors in `prerender:generate` hook (#…
danielroe Jul 16, 2024
43eca31
fix: only hide message of unhandled errors in prod (#2619)
pi0 Jul 17, 2024
538da2c
chore(deps): update autofix-ci/action digest to ff86a55 (#2623)
renovate[bot] Jul 20, 2024
79c58b9
docs(routing): add nested example (#2625)
geromegrignon Jul 22, 2024
62a74df
chore(deps): update devdependency edge-runtime to v3 (#2595)
renovate[bot] Jul 23, 2024
24fa444
docs(storage): fix typo (#2639)
iiio2 Jul 31, 2024
6f1fa4b
docs: fix mdc component usage and cloudflare preset reference (#2600)
adamdehaven Aug 1, 2024
af42c19
fix(prerender): skip protocol relative links (#2661)
danielroe Aug 13, 2024
62621de
docs: fix grammar (#2669)
iiio2 Aug 18, 2024
0d3007f
docs(server routes): fix typo (#2675)
iiio2 Aug 22, 2024
c7435f0
chore: update deps and lockfile
pi0 Aug 22, 2024
2298d24
chore: fix types
pi0 Aug 22, 2024
5d19b2e
feat(open-api): production mode (#2570)
pi0 Aug 22, 2024
7101a2a
docs(utils): update github link (#2596)
iiio2 Aug 22, 2024
0859c82
types(firebase): support `22` for `nodeVersion` (#2653)
luc122c Aug 22, 2024
3594a18
chore: update tests
pi0 Aug 23, 2024
f2ea9f2
feat(deno-server): use output `node_modules` for `start` task (#2687)
pi0 Aug 23, 2024
a928594
Merge branch 'v2'
pi0 Aug 23, 2024
48e8789
chore: lint
pi0 Aug 23, 2024
27692e3
chore: update undocs
pi0 Sep 4, 2024
97dc8d6
docs: remove old components
pi0 Sep 4, 2024
2917029
chore: update undocs
pi0 Sep 20, 2024
286c18c
fix(scanner)!: limit patterns scanned from `modules/` dir (#2681)
Barbapapazes Sep 28, 2024
67d1275
perf: limit open files in generateFSTree (#2458)
marvin-j97 Sep 29, 2024
d434900
chore: enable `interopDefault` for stub mode
pi0 Sep 30, 2024
359af68
feat: add pdf and wasm to compressible mime types (#2766)
Oct 1, 2024
f5ebb25
docs: fix typo
pi0 Dec 27, 2024
ce23e94
feat: enable `allowImportingTsExtensions` by default (#3029)
productdevbook Jan 28, 2025
f7aa9de
feat: enable `strict: true` for typescript defaults (#3030)
productdevbook Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// https://code.visualstudio.com/docs/devcontainers/containers
// https://containers.dev/implementors/json_reference/
{
"name": "nitro-devcontainer",
"forwardPorts": [3000],
"image": "node:20.14.0",
"features": {},
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"ms-azuretools.vscode-docker",
"dbaeumer.vscode-eslint",
"github.vscode-github-actions",
"esbenp.prettier-vscode"
]
}
},
"postStartCommand": "corepack enable && pnpm install",
"mounts": ["type=volume,target=${containerWorkspaceFolder}/node_modules"]
}
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ body:
validations:
required: true
- type: textarea
id: additonal
id: additional
attributes:
label: Additional context
description: If applicable, add any other context about the problem here
17 changes: 16 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<!---
☝️ PR title should follow conventional commits (https://conventionalcommits.org)

*** IMPORTANT: PLEASE READ BEFORE CONTINUING TO MAKE A PULL REQUEST ***

- The title should follow conventional commits (https://conventionalcommits.org).

- If it is a bug fix, please ensure there is a linked issue with minimal (nitro) reproduction and/or enough context to explain exactly what it is fixing and why this fix is the best option in Nitro.

- If it is a security fix, please always report it first as per https://github.com/unjs/nitro/blob/main/SECURITY.md

- If it is a new feature, please ensure it has already been discussed. Keep the scope of changes minimal to what is essential, and try to break down your changes into smaller PRs when possible.

- If you are submitting a new preset, please, in addition to the docs, ALWAYS add a new preset in src/presets.

- After submitting, please remain patient until your PR is reviewed.

Thanks for your contribution ❤️
-->

### 🔗 Linked issue
2 changes: 1 addition & 1 deletion .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@ coverage:
status:
project:
default:
threshold: 5%
threshold: 50%
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
15 changes: 8 additions & 7 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: autofix.ci # needed to securely identify the workflow
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [ "main" ]
branches: ["main"]

permissions:
contents: read
@@ -12,16 +12,17 @@ jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm stub
- run: pnpm gen-presets
- name: Fix lint issues
run: npm run lint:fix
- uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
with:
commit-message: 'chore: apply automated lint fixes'
commit-message: "chore: apply automated updates"
29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -12,13 +12,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: 20
cache: pnpm
- run: pnpm install
- run: pnpm stub
@@ -31,15 +31,15 @@ jobs:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: 20
cache: pnpm
- uses: oven-sh/setup-bun@v1
- uses: oven-sh/setup-bun@v2
if: ${{ matrix.os != 'windows-latest' }}
with:
bun-version: latest
@@ -49,17 +49,18 @@ jobs:
deno-version: v1.x
- run: pnpm install
- run: pnpm test:types
if: ${{ matrix.os != 'windows-latest' }}
- run: pnpm build
- run: pnpm vitest --coverage
- run: pnpm vitest-es --coverage
env:
NODE_OPTIONS: --experimental-vm-modules
- uses: codecov/codecov-action@v3
- name: Release Edge
NODE_OPTIONS: --experimental-vm-modules --enable-source-maps
# - uses: codecov/codecov-action@v3
- name: Release Nightly
if: |
github.event_name == 'push' &&
!contains(github.event.head_commit.message, '[skip-release]') &&
!contains(github.event.head_commit.message, 'chore') &&
!contains(github.event.head_commit.message, 'docs')
run: ./scripts/release-edge.sh
!startsWith(github.event.head_commit.message, 'chore') &&
!startsWith(github.event.head_commit.message, 'docs')
run: ./scripts/release-nightly.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -66,7 +66,21 @@ Temporary Items
.env
.netlify
.vercel
.amplify-hosting
staticwebapp.config.json
.eslintcache
playground/firebase.json
.zeabur

test/fixture/functions
.data

.pnpm-store
.wrangler

# mirror pkg
.mirror

# Generated types
*.d.ts
!runtime-meta.d.ts
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ignore-workspace-root-check=true
shell-emulator=true
Loading