Skip to content

Commit

Permalink
Merge branch 'master' into public-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Feb 21, 2022
2 parents a1db92b + 1264c46 commit 4aba92f
Show file tree
Hide file tree
Showing 17 changed files with 62 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-seahorses-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Allow the `transformPage` resolve option to return a promise
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@
"large-icons-complain",
"large-kangaroos-remain",
"large-lies-reply",
"late-bobcats-brake",
"late-cats-care",
"late-foxes-clean",
"late-glasses-sin",
Expand Down Expand Up @@ -457,6 +458,7 @@
"pretty-snakes-burn",
"proud-bananas-love",
"proud-buses-hug",
"proud-cooks-relax",
"proud-goats-hide",
"proud-hairs-chew",
"proud-needles-shake",
Expand Down
9 changes: 9 additions & 0 deletions packages/adapter-auto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @sveltejs/adapter-auto

## 1.0.0-next.24

### Patch Changes

- Updated dependencies [[`f223f91a`](/~https://github.com/sveltejs/kit/commit/f223f91ab8346fb8fc376393603956e72baa6369)]:
- @sveltejs/adapter-cloudflare@1.0.0-next.12
- @sveltejs/adapter-netlify@1.0.0-next.46
- @sveltejs/adapter-vercel@1.0.0-next.44

## 1.0.0-next.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-auto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-auto",
"version": "1.0.0-next.23",
"version": "1.0.0-next.24",
"repository": {
"type": "git",
"url": "/~https://github.com/sveltejs/kit",
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-cloudflare-workers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sveltejs/adapter-cloudflare-workers

## 1.0.0-next.34

### Patch Changes

- [breaking] rename `app.render` to `server.respond` ([#4034](/~https://github.com/sveltejs/kit/pull/4034))

## 1.0.0-next.33

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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.33",
"version": "1.0.0-next.34",
"repository": {
"type": "git",
"url": "/~https://github.com/sveltejs/kit",
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sveltejs/adapter-cloudflare

## 1.0.0-next.12

### Patch Changes

- [breaking] rename `app.render` to `server.respond` ([#4034](/~https://github.com/sveltejs/kit/pull/4034))

## 1.0.0-next.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-cloudflare",
"version": "1.0.0-next.11",
"version": "1.0.0-next.12",
"repository": {
"type": "git",
"url": "/~https://github.com/sveltejs/kit",
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-netlify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sveltejs/adapter-netlify

## 1.0.0-next.46

### Patch Changes

- [breaking] rename `app.render` to `server.respond` ([#4034](/~https://github.com/sveltejs/kit/pull/4034))

## 1.0.0-next.45

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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.45",
"version": "1.0.0-next.46",
"repository": {
"type": "git",
"url": "/~https://github.com/sveltejs/kit",
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sveltejs/adapter-node

## 1.0.0-next.69

### Patch Changes

- [breaking] rename `app.render` to `server.respond` ([#4034](/~https://github.com/sveltejs/kit/pull/4034))

## 1.0.0-next.68

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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.68",
"version": "1.0.0-next.69",
"repository": {
"type": "git",
"url": "/~https://github.com/sveltejs/kit",
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-vercel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sveltejs/adapter-vercel

## 1.0.0-next.44

### Patch Changes

- [breaking] rename `app.render` to `server.respond` ([#4034](/~https://github.com/sveltejs/kit/pull/4034))

## 1.0.0-next.43

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-vercel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/adapter-vercel",
"version": "1.0.0-next.43",
"version": "1.0.0-next.44",
"repository": {
"type": "git",
"url": "/~https://github.com/sveltejs/kit",
Expand Down
8 changes: 8 additions & 0 deletions packages/kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @sveltejs/kit

## 1.0.0-next.280

### Patch Changes

- [breaking] rename `app.render` to `server.respond` ([#4034](/~https://github.com/sveltejs/kit/pull/4034))

* [breaking] allow providing `Params` type argument for `RequestHandler` ([#3989](/~https://github.com/sveltejs/kit/pull/3989))

## 1.0.0-next.279

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sveltejs/kit",
"version": "1.0.0-next.279",
"version": "1.0.0-next.280",
"repository": {
"type": "git",
"url": "/~https://github.com/sveltejs/kit",
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/page/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export async function render_response({
const assets =
options.paths.assets || (segments.length > 0 ? segments.map(() => '..').join('/') : '.');

const html = resolve_opts.transformPage({
const html = await resolve_opts.transformPage({
html: options.template({ head, body, assets, nonce: /** @type {string} */ (csp.nonce) })
});

Expand Down

0 comments on commit 4aba92f

Please sign in to comment.