@quilted/create 0.2.48 → 0.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esnext/_virtual/index7.esnext +2 -2
- package/build/esnext/_virtual/index8.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.esnext +1 -1
- package/package.json +1 -1
- package/templates/app-basic/browser.tsx +0 -1
- package/templates/app-basic/server.tsx +9 -11
- package/templates/app-empty/server.tsx +1 -3
- package/templates/app-graphql/browser.tsx +0 -1
- package/templates/app-graphql/server.tsx +9 -11
- package/templates/app-trpc/browser.tsx +0 -1
- package/templates/app-trpc/server.tsx +11 -13
- package/templates/workspace/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @quilted/create
|
|
2
2
|
|
|
3
|
+
## 0.2.49
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#871](https://github.com/lemonmade/quilt/pull/871) [`c16b322`](https://github.com/lemonmade/quilt/commit/c16b3224d3c86bc3a3b6f6af44267650d1e8dc1d) Thanks [@lemonmade](https://github.com/lemonmade)! - Remove @quilt/quilt/globals module
|
|
8
|
+
|
|
9
|
+
- [`fc772fb`](https://github.com/lemonmade/quilt/commit/fc772fb47bd077eb10f67a986a9f4ae792f631f0) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix old @quilted/rollup dependency in workspace template
|
|
10
|
+
|
|
11
|
+
- [`64fc42b`](https://github.com/lemonmade/quilt/commit/64fc42b87ca72eec8dfab211d2ddecdbbaa0e4ac) Thanks [@lemonmade](https://github.com/lemonmade)! - Transition browser header helpers to use classes
|
|
12
|
+
|
|
3
13
|
## 0.2.48
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var dirGlob = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { dirGlob as __module };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var utils = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { utils as __exports };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as dirGlob } from '../../../../../_virtual/
|
|
1
|
+
import { __module as dirGlob } from '../../../../../_virtual/index7.esnext';
|
|
2
2
|
import path__default from 'node:path';
|
|
3
3
|
import { __require as requirePathType } from '../../../path-type@4.0.0/node_modules/path-type/index.esnext';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as utils } from '../../../../../../../_virtual/
|
|
1
|
+
import { __exports as utils } from '../../../../../../../_virtual/index8.esnext';
|
|
2
2
|
import { __require as requireArray } from './array.esnext';
|
|
3
3
|
import { __require as requireErrno } from './errno.esnext';
|
|
4
4
|
import { __require as requireFs } from './fs.esnext';
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import '@quilted/quilt/globals';
|
|
2
|
-
|
|
3
1
|
import {RequestRouter} from '@quilted/quilt/request-router';
|
|
4
2
|
import {Router} from '@quilted/quilt/navigation';
|
|
5
3
|
import {
|
|
6
4
|
renderAppToHTMLResponse,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
CacheControlHeader,
|
|
6
|
+
ContentSecurityPolicyHeader,
|
|
7
|
+
PermissionsPolicyHeader,
|
|
8
|
+
StrictTransportSecurityHeader,
|
|
11
9
|
} from '@quilted/quilt/server';
|
|
12
10
|
|
|
13
11
|
import Env from 'quilt:module/env';
|
|
@@ -53,7 +51,7 @@ router.get(async (request) => {
|
|
|
53
51
|
// app or deployment, make sure to update this component accordingly!
|
|
54
52
|
//
|
|
55
53
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
|
|
56
|
-
'Cache-Control':
|
|
54
|
+
'Cache-Control': CacheControlHeader.stringify({
|
|
57
55
|
cache: false,
|
|
58
56
|
}),
|
|
59
57
|
|
|
@@ -64,7 +62,7 @@ router.get(async (request) => {
|
|
|
64
62
|
// to the allowlist for more specific directives.
|
|
65
63
|
//
|
|
66
64
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
|
67
|
-
'Content-Security-Policy':
|
|
65
|
+
'Content-Security-Policy': ContentSecurityPolicyHeader.stringify({
|
|
68
66
|
// By default, only allow sources from the page's origin.
|
|
69
67
|
defaultSources: ["'self'"],
|
|
70
68
|
// In development, allow connections to local websockets for hot reloading.
|
|
@@ -89,8 +87,8 @@ router.get(async (request) => {
|
|
|
89
87
|
// Sets a strict permissions policy for this page, which limits access
|
|
90
88
|
// to some native browser features.
|
|
91
89
|
//
|
|
92
|
-
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/
|
|
93
|
-
'Permissions-Policy':
|
|
90
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy
|
|
91
|
+
'Permissions-Policy': PermissionsPolicyHeader.stringify({
|
|
94
92
|
// Disables Google's Federated Learning of Cohorts ("FLoC") tracking initiative.
|
|
95
93
|
// @see https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
|
|
96
94
|
interestCohort: false,
|
|
@@ -110,7 +108,7 @@ router.get(async (request) => {
|
|
|
110
108
|
// Instructs browsers to only load this page over HTTPS.
|
|
111
109
|
//
|
|
112
110
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
|
|
113
|
-
'Strict-Transport-Security':
|
|
111
|
+
'Strict-Transport-Security': StrictTransportSecurityHeader.stringify(),
|
|
114
112
|
},
|
|
115
113
|
});
|
|
116
114
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import '@quilted/quilt/globals';
|
|
2
|
-
|
|
3
|
-
import {RequestRouter} from '@quilted/quilt/request-router';
|
|
4
1
|
import {renderAppToHTMLResponse} from '@quilted/quilt/server';
|
|
2
|
+
import {RequestRouter} from '@quilted/quilt/request-router';
|
|
5
3
|
import {BrowserAssets} from 'quilt:module/assets';
|
|
6
4
|
|
|
7
5
|
import {App} from './App.tsx';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import '@quilted/quilt/globals';
|
|
2
|
-
|
|
3
1
|
import {RequestRouter, JSONResponse} from '@quilted/quilt/request-router';
|
|
4
2
|
import {Router} from '@quilted/quilt/navigation';
|
|
5
3
|
import {
|
|
6
4
|
renderAppToHTMLResponse,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
CacheControlHeader,
|
|
6
|
+
ContentSecurityPolicyHeader,
|
|
7
|
+
PermissionsPolicyHeader,
|
|
8
|
+
StrictTransportSecurityHeader,
|
|
11
9
|
} from '@quilted/quilt/server';
|
|
12
10
|
import {GraphQLCache} from '@quilted/quilt/graphql';
|
|
13
11
|
|
|
@@ -78,7 +76,7 @@ router.get(async (request) => {
|
|
|
78
76
|
// app or deployment, make sure to update this component accordingly!
|
|
79
77
|
//
|
|
80
78
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
|
|
81
|
-
'Cache-Control':
|
|
79
|
+
'Cache-Control': CacheControlHeader.stringify({
|
|
82
80
|
cache: false,
|
|
83
81
|
}),
|
|
84
82
|
|
|
@@ -89,7 +87,7 @@ router.get(async (request) => {
|
|
|
89
87
|
// to the allowlist for more specific directives.
|
|
90
88
|
//
|
|
91
89
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
|
92
|
-
'Content-Security-Policy':
|
|
90
|
+
'Content-Security-Policy': ContentSecurityPolicyHeader.stringify({
|
|
93
91
|
// By default, only allow sources from the page's origin.
|
|
94
92
|
defaultSources: ["'self'"],
|
|
95
93
|
// In development, allow connections to local websockets for hot reloading.
|
|
@@ -114,8 +112,8 @@ router.get(async (request) => {
|
|
|
114
112
|
// Sets a strict permissions policy for this page, which limits access
|
|
115
113
|
// to some native browser features.
|
|
116
114
|
//
|
|
117
|
-
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/
|
|
118
|
-
'Permissions-Policy':
|
|
115
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy
|
|
116
|
+
'Permissions-Policy': PermissionsPolicyHeader.stringify({
|
|
119
117
|
// Disables Google's Federated Learning of Cohorts ("FLoC") tracking initiative.
|
|
120
118
|
// @see https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
|
|
121
119
|
interestCohort: false,
|
|
@@ -135,7 +133,7 @@ router.get(async (request) => {
|
|
|
135
133
|
// Instructs browsers to only load this page over HTTPS.
|
|
136
134
|
//
|
|
137
135
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
|
|
138
|
-
'Strict-Transport-Security':
|
|
136
|
+
'Strict-Transport-Security': StrictTransportSecurityHeader.stringify(),
|
|
139
137
|
},
|
|
140
138
|
});
|
|
141
139
|
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import '@quilted/quilt/globals';
|
|
2
|
-
|
|
3
|
-
import {RequestRouter} from '@quilted/quilt/request-router';
|
|
4
|
-
import {Router} from '@quilted/quilt/navigation';
|
|
5
1
|
import {
|
|
6
2
|
renderAppToHTMLResponse,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
CacheControlHeader,
|
|
4
|
+
ContentSecurityPolicyHeader,
|
|
5
|
+
PermissionsPolicyHeader,
|
|
6
|
+
StrictTransportSecurityHeader,
|
|
11
7
|
} from '@quilted/quilt/server';
|
|
8
|
+
import {RequestRouter} from '@quilted/quilt/request-router';
|
|
9
|
+
import {Router} from '@quilted/quilt/navigation';
|
|
12
10
|
|
|
13
11
|
import Env from 'quilt:module/env';
|
|
14
12
|
import {BrowserAssets} from 'quilt:module/assets';
|
|
@@ -76,7 +74,7 @@ router.get(async (request) => {
|
|
|
76
74
|
// app or deployment, make sure to update this component accordingly!
|
|
77
75
|
//
|
|
78
76
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
|
|
79
|
-
'Cache-Control':
|
|
77
|
+
'Cache-Control': CacheControlHeader.stringify({
|
|
80
78
|
cache: false,
|
|
81
79
|
}),
|
|
82
80
|
|
|
@@ -87,7 +85,7 @@ router.get(async (request) => {
|
|
|
87
85
|
// to the allowlist for more specific directives.
|
|
88
86
|
//
|
|
89
87
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
|
90
|
-
'Content-Security-Policy':
|
|
88
|
+
'Content-Security-Policy': ContentSecurityPolicyHeader.stringify({
|
|
91
89
|
// By default, only allow sources from the page's origin.
|
|
92
90
|
defaultSources: ["'self'"],
|
|
93
91
|
// In development, allow connections to local websockets for hot reloading.
|
|
@@ -112,8 +110,8 @@ router.get(async (request) => {
|
|
|
112
110
|
// Sets a strict permissions policy for this page, which limits access
|
|
113
111
|
// to some native browser features.
|
|
114
112
|
//
|
|
115
|
-
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/
|
|
116
|
-
'Permissions-Policy':
|
|
113
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy
|
|
114
|
+
'Permissions-Policy': PermissionsPolicyHeader.stringify({
|
|
117
115
|
// Disables Google's Federated Learning of Cohorts ("FLoC") tracking initiative.
|
|
118
116
|
// @see https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
|
|
119
117
|
interestCohort: false,
|
|
@@ -133,7 +131,7 @@ router.get(async (request) => {
|
|
|
133
131
|
// Instructs browsers to only load this page over HTTPS.
|
|
134
132
|
//
|
|
135
133
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
|
|
136
|
-
'Strict-Transport-Security':
|
|
134
|
+
'Strict-Transport-Security': StrictTransportSecurityHeader.stringify(),
|
|
137
135
|
},
|
|
138
136
|
});
|
|
139
137
|
|