Skip to content

Commit

Permalink
rename @sveltejs/kit/http to @sveltejs/kit/node (#1391)
Browse files Browse the repository at this point in the history
* rename @sveltejs/kit/http to @sveltejs/kit/node

* changeset
  • Loading branch information
Rich Harris authored May 10, 2021
1 parent 3c4bc8e commit 9b448a6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .changeset/tall-berries-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sveltejs/adapter-node': patch
'@sveltejs/adapter-vercel': patch
'@sveltejs/kit': patch
---

Rename @sveltejs/kit/http to @sveltejs/kit/node
2 changes: 1 addition & 1 deletion packages/adapter-node/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url';
import compression from 'compression';
import polka from 'polka';
import sirv from 'sirv';
import { getRawBody } from '@sveltejs/kit/http'; // eslint-disable-line import/no-unresolved
import { getRawBody } from '@sveltejs/kit/node'; // eslint-disable-line import/no-unresolved
import '@sveltejs/kit/install-fetch'; // eslint-disable-line import/no-unresolved

// App is a dynamic file built from the application layer.
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-vercel/files/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getRawBody } from '@sveltejs/kit/http'; // eslint-disable-line import/no-unresolved
import { getRawBody } from '@sveltejs/kit/node'; // eslint-disable-line import/no-unresolved
import '@sveltejs/kit/install-fetch'; // eslint-disable-line import/no-unresolved

// TODO hardcoding the relative location makes this brittle
Expand Down
4 changes: 2 additions & 2 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"./ssr": {
"import": "./dist/ssr.js"
},
"./http": {
"import": "./dist/http.js"
"./node": {
"import": "./dist/node.js"
},
"./install-fetch": {
"import": "./dist/install-fetch.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default [
input: {
cli: 'src/cli.js',
ssr: 'src/runtime/server/index.js',
http: 'src/core/http/index.js',
node: 'src/core/node/index.js',
'install-fetch': 'src/install-fetch.js'
},
output: {
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/core/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import create_manifest_data from '../../core/create_manifest_data/index.js';
import { create_app } from '../../core/create_app/index.js';
import { rimraf } from '../filesystem/index.js';
import { respond } from '../../runtime/server/index.js';
import { getRawBody } from '../http/index.js';
import { getRawBody } from '../node/index.js';
import { copy_assets, get_no_external, resolve_entry } from '../utils.js';
import svelte from '@sveltejs/vite-plugin-svelte';
import { get_server } from '../server/index.js';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/kit/src/core/start/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';
import { parse, pathToFileURL } from 'url';
import sirv from 'sirv';
import { getRawBody } from '../http/index.js';
import { getRawBody } from '../node/index.js';
import { join, resolve } from 'path';
import { get_server } from '../server/index.js';
import '../../install-fetch.js';
Expand Down

0 comments on commit 9b448a6

Please sign in to comment.