Skip to content

Commit

Permalink
Merge branch 'master' into server-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
stalkerg committed Jun 4, 2021
2 parents b2d0c8d + 6cf6955 commit d874dbd
Show file tree
Hide file tree
Showing 43 changed files with 328 additions and 114 deletions.
7 changes: 7 additions & 0 deletions .changeset/bright-dolphins-try.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/adapter-vercel': patch
---

Upgrade esbuild to ^0.12.5
10 changes: 10 additions & 0 deletions .changeset/funny-terms-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@sveltejs/adapter-begin': patch
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-netlify': patch
'@sveltejs/adapter-node': patch
'@sveltejs/adapter-static': patch
'@sveltejs/adapter-vercel': patch
---

Remove peerDependencies due to pnpm bug
5 changes: 5 additions & 0 deletions .changeset/great-bugs-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: SSL for HMR websockets #844
10 changes: 10 additions & 0 deletions .changeset/lovely-mice-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@sveltejs/adapter-begin': patch
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-netlify': patch
'@sveltejs/adapter-node': patch
'@sveltejs/adapter-static': patch
'@sveltejs/adapter-vercel': patch
---

Attempt to fix peerDependencies specification
7 changes: 7 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"brave-turkeys-bathe",
"breezy-sheep-dress",
"bright-cherries-hug",
"bright-dolphins-try",
"bright-sheep-promise",
"brown-bugs-arrive",
"brown-days-agree",
Expand Down Expand Up @@ -92,6 +93,7 @@
"four-pillows-give",
"friendly-rivers-argue",
"funny-needles-talk",
"funny-terms-repair",
"fuzzy-cougars-compare",
"fuzzy-ghosts-call",
"fuzzy-jeans-join",
Expand Down Expand Up @@ -144,6 +146,7 @@
"long-moles-fold",
"loud-seals-remember",
"lovely-apricots-fail",
"lovely-mice-search",
"lucky-bottles-kick",
"mean-bananas-live",
"metal-nails-divide",
Expand Down Expand Up @@ -189,6 +192,7 @@
"poor-terms-explain",
"poor-years-hear",
"popular-masks-cheat",
"pretty-cycles-learn",
"pretty-drinks-cough",
"pretty-foxes-attend",
"pretty-kids-watch",
Expand All @@ -212,6 +216,7 @@
"rude-olives-wink",
"rude-tomatoes-thank",
"selfish-avocados-develop",
"selfish-ligers-allow",
"selfish-owls-own",
"serious-books-push",
"seven-bags-sniff",
Expand Down Expand Up @@ -244,6 +249,7 @@
"smooth-shoes-mix",
"smooth-shrimps-fly",
"soft-houses-pump",
"soft-students-cover",
"spicy-geese-accept",
"spicy-kings-perform",
"spotty-dragons-wait",
Expand Down Expand Up @@ -291,6 +297,7 @@
"tricky-avocados-smile",
"tricky-bats-smoke",
"tricky-buses-punch",
"tricky-rockets-agree",
"tricky-walls-approve",
"tricky-wolves-confess",
"twelve-feet-deny",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/selfish-ligers-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-netlify': patch
---

Allow `_redirects` to be placed in root directory
5 changes: 5 additions & 0 deletions .changeset/soft-students-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

update vite to 2.3.6
5 changes: 5 additions & 0 deletions .changeset/tricky-rockets-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Make it possible to type context, page params and props for LoadInput and LoadOutput
5 changes: 5 additions & 0 deletions .changeset/twenty-dryers-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

package command can now transpile TypeScript files
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ change, please create an [RFC](https://github.com/sveltejs/rfcs).
If you're filing an issue about a bug please include as much information
as you can, including the following.

- The output of `npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers`
- The output of `npx envinfo --system --npmPackages svelte,@sveltejs/kit,@sveltejs/adapter-node,@sveltejs/adapter-static,@sveltejs/adapter-begin,@sveltejs/adapter-netlify,@sveltejs/adapter-vercel vite --binaries --browsers`
- Your browser
- Your adapter (e.g. Node, static, Vercel, Begin, etc...)
- If using a community adapter, the adapter and version

- _Repeatable steps to reproduce the issue_

Expand Down
6 changes: 2 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ Stack trace goes here...
<details>
<summary>Diagnostics</summary>

- The output of `npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers`

- The output of `npx envinfo --system --npmPackages svelte,@sveltejs/kit,@sveltejs/adapter-node,@sveltejs/adapter-static,@sveltejs/adapter-begin,@sveltejs/adapter-netlify,@sveltejs/adapter-vercel vite --binaries --browsers`
- Your browser

- Your adapter (e.g. Node, static, Vercel, Begin, etc...)
- If using a community adapter, the adapter and version
</details>

**Severity**
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/10-adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Adapters
---

Before you can deploy your SvelteKit app, you need to _adapt_ it for your deployment target. Adapters are small plugins that take the built app as input and generate output that is optimised for a specific platform.
Before you can deploy your SvelteKit app, you need to _adapt_ it for your deployment target. Adapters are small plugins that take the built app as input and generate output for deployment. Many adapters are optimised for a specific hosting provider, and you can generally find information about deployment in your adapter's documentation. However, some adapters, like `adapter-static`, build output that can be hosted on numerous hosting providers, so it may also be helpful to reference the documentation of your hosting provider in these cases.

For example, if you want to run your app as a simple Node server, you would use the `@sveltejs/adapter-node` package:

Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/12-packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { Foo } from 'your-library';
import Foo from 'your-library/Foo.svelte';
```

## Publishing
### Publishing

To publish the generated package:

Expand All @@ -35,7 +35,7 @@ npm publish package

If you configure a custom [`package.dir`](#configuration-package), change `package` accordingly.

## Caveats
### Caveats

This is a relatively experimental feature and is not yet fully implemented:

Expand Down
4 changes: 3 additions & 1 deletion documentation/docs/13-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ Builds a production version of your app, and runs your adapter if you have one s

- `--verbose` — log more detail

After building the app, you can reference the documentation of your chosen [adapter](#adapters) and hosting platform for specific instructions on how to serve your app.

### svelte-kit preview

After you've built your app with `svelte-kit build`, you can start the production version (irrespective of any adapter that has been applied) locally with `svelte-kit preview`. This is intended for testing the production build locally, **not for serving your app**, for which you should always use an adapter.
After you've built your app with `svelte-kit build`, you can start the production version (irrespective of any adapter that has been applied) locally with `svelte-kit preview`. This is intended for testing the production build locally, **not for serving your app**, for which you should always use an [adapter](#adapters).

Like `svelte-kit dev`, it accepts the following options:

Expand Down
14 changes: 8 additions & 6 deletions documentation/faq/80-integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,20 @@ if (browser) {
}
```

You can also run code in `onMount` if you'd like to run it after the component has been first rendered to the DOM:
You can also run code in `onMount` if you'd like to run it after the component has been first rendered to the DOM. In this case, you may still find a benefit of including a `browser` check as shown below because Vite may otherwise attempt to optimize the dependency and fail on it. [We hope to make this unnecessary in the future](https://github.com/sveltejs/svelte/issues/6372).

```html
<script>
import { onMount } from 'svelte';
import { browser } from '$app/env';
let awkward;
let lib;
onMount(async () => {
const module = await import('some-browser-only-library');
awkward = module.default;
});
if (browser) {
onMount(async () => {
lib = (await import('some-browser-only-library')).default;
});
}
</script>
```

Expand Down
7 changes: 7 additions & 0 deletions packages/adapter-begin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @sveltejs/adapter-begin

## 1.0.0-next.11

### Patch Changes

- edc307d: Remove peerDependencies due to pnpm bug
- 2636e68: Attempt to fix peerDependencies specification

## 1.0.0-next.10

### Patch Changes
Expand Down
5 changes: 1 addition & 4 deletions packages/adapter-begin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-begin",
"version": "1.0.0-next.10",
"version": "1.0.0-next.11",
"main": "index.cjs",
"types": "index.d.ts",
"scripts": {
Expand All @@ -18,9 +18,6 @@
"dependencies": {
"@architect/parser": "^3.0.1"
},
"peerDependencies": {
"@sveltejs/kit": "workspace:*"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"rollup": "^2.47.0",
Expand Down
13 changes: 13 additions & 0 deletions packages/adapter-cloudflare-workers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @sveltejs/adapter-cloudflare-workers

## 1.0.0-next.12

### Patch Changes

- c51ab7d: Upgrade esbuild to ^0.12.5

## 1.0.0-next.11

### Patch Changes

- edc307d: Remove peerDependencies due to pnpm bug
- 2636e68: Attempt to fix peerDependencies specification

## 1.0.0-next.10

### Patch Changes
Expand Down
9 changes: 3 additions & 6 deletions packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-cloudflare-workers",
"version": "1.0.0-next.10",
"version": "1.0.0-next.12",
"type": "module",
"exports": {
"import": "./index.js"
Expand All @@ -17,13 +17,10 @@
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"
},
"dependencies": {
"esbuild": "^0.11.18",
"@iarna/toml": "^2.2.5"
"@iarna/toml": "^2.2.5",
"esbuild": "^0.12.5"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*"
},
"peerDependencies": {
"@sveltejs/kit": "workspace:*"
}
}
14 changes: 14 additions & 0 deletions packages/adapter-netlify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @sveltejs/adapter-netlify

## 1.0.0-next.17

### Patch Changes

- c51ab7d: Upgrade esbuild to ^0.12.5

## 1.0.0-next.16

### Patch Changes

- edc307d: Remove peerDependencies due to pnpm bug
- 2636e68: Attempt to fix peerDependencies specification
- 3b988a4: Allow `_redirects` to be placed in root directory

## 1.0.0-next.15

### Patch Changes
Expand Down
1 change: 1 addition & 0 deletions packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function () {
utils.copy_client_files(publish);

utils.log.minor('Writing redirects...');
utils.copy('_redirects', `${publish}/_redirects`);
appendFileSync(`${publish}/_redirects`, '\n\n/* /.netlify/functions/render 200');
}
};
Expand Down
9 changes: 3 additions & 6 deletions packages/adapter-netlify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-netlify",
"version": "1.0.0-next.15",
"version": "1.0.0-next.17",
"type": "module",
"exports": {
"import": "./index.js"
Expand All @@ -17,11 +17,8 @@
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"
},
"dependencies": {
"esbuild": "^0.11.18",
"@iarna/toml": "^2.2.5"
},
"peerDependencies": {
"@sveltejs/kit": "workspace:*"
"@iarna/toml": "^2.2.5",
"esbuild": "^0.12.5"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
Expand Down
7 changes: 7 additions & 0 deletions packages/adapter-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @sveltejs/adapter-node

## 1.0.0-next.24

### Patch Changes

- edc307d: Remove peerDependencies due to pnpm bug
- 2636e68: Attempt to fix peerDependencies specification

## 1.0.0-next.23

### Patch Changes
Expand Down
5 changes: 1 addition & 4 deletions packages/adapter-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-node",
"version": "1.0.0-next.23",
"version": "1.0.0-next.24",
"type": "module",
"exports": {
"import": "./index.js"
Expand Down Expand Up @@ -31,8 +31,5 @@
"sirv": "^1.0.12",
"typescript": "^4.2.4",
"uvu": "^0.5.1"
},
"peerDependencies": {
"@sveltejs/kit": "workspace:*"
}
}
7 changes: 7 additions & 0 deletions packages/adapter-static/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @sveltejs/adapter-static

## 1.0.0-next.13

### Patch Changes

- edc307d: Remove peerDependencies due to pnpm bug
- 2636e68: Attempt to fix peerDependencies specification

## 1.0.0-next.12

### Patch Changes
Expand Down
5 changes: 1 addition & 4 deletions packages/adapter-static/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-static",
"version": "1.0.0-next.12",
"version": "1.0.0-next.13",
"type": "module",
"main": "index.js",
"exports": {
Expand All @@ -14,9 +14,6 @@
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",
"test": "uvu test test.js"
},
"peerDependencies": {
"@sveltejs/kit": "workspace:*"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"playwright-chromium": "^1.10.0",
Expand Down
Loading

0 comments on commit d874dbd

Please sign in to comment.