@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 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,4 +1,4 @@
1
- import { __exports as prompts } from '../../../../../../_virtual/prompts2.mjs';
1
+ import { __exports as prompts } from '../../../../../../_virtual/prompts.mjs';
2
2
  import { __require as requireElements } from './elements/index.mjs';
3
3
 
4
4
  var hasRequiredPrompts;
@@ -1,4 +1,4 @@
1
- import { __exports as prompts } from '../../../../../../_virtual/prompts.mjs';
1
+ import { __exports as prompts } from '../../../../../../_virtual/prompts2.mjs';
2
2
  import { __require as requireElements } from './elements/index.mjs';
3
3
 
4
4
  var hasRequiredPrompts;
@@ -1,3 +1,3 @@
1
- var utils = {};
1
+ var dirGlob = {exports: {}};
2
2
 
3
- export { utils as __exports };
3
+ export { dirGlob as __module };
@@ -1,3 +1,3 @@
1
- var dirGlob = {exports: {}};
1
+ var utils = {};
2
2
 
3
- export { dirGlob as __module };
3
+ export { utils as __exports };
@@ -1,4 +1,4 @@
1
- import { __module as dirGlob } from '../../../../../_virtual/index8.esnext';
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/index7.esnext';
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@quilted/create",
3
3
  "type": "module",
4
- "version": "0.2.48",
4
+ "version": "0.2.49",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,4 +1,3 @@
1
- import '@quilted/quilt/globals';
2
1
  import type {ComponentChild} from 'preact';
3
2
  import {hydrate} from '@quilted/quilt/browser';
4
3
  import {Router} from '@quilted/quilt/navigation';
@@ -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
- cacheControlHeader,
8
- contentSecurityPolicyHeader,
9
- permissionsPolicyHeader,
10
- strictTransportSecurityHeader,
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': cacheControlHeader({
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': contentSecurityPolicyHeader({
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/Feature-Policy
93
- 'Permissions-Policy': permissionsPolicyHeader({
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': strictTransportSecurityHeader(),
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,4 +1,3 @@
1
- import '@quilted/quilt/globals';
2
1
  import type {ComponentChild} from 'preact';
3
2
  import {hydrate} from '@quilted/quilt/browser';
4
3
  import {Router} from '@quilted/quilt/navigation';
@@ -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
- cacheControlHeader,
8
- contentSecurityPolicyHeader,
9
- permissionsPolicyHeader,
10
- strictTransportSecurityHeader,
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': cacheControlHeader({
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': contentSecurityPolicyHeader({
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/Feature-Policy
118
- 'Permissions-Policy': permissionsPolicyHeader({
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': strictTransportSecurityHeader(),
136
+ 'Strict-Transport-Security': StrictTransportSecurityHeader.stringify(),
139
137
  },
140
138
  });
141
139
 
@@ -1,4 +1,3 @@
1
- import '@quilted/quilt/globals';
2
1
  import type {ComponentChild} from 'preact';
3
2
  import {hydrate} from '@quilted/quilt/browser';
4
3
  import {Router} from '@quilted/quilt/navigation';
@@ -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
- cacheControlHeader,
8
- contentSecurityPolicyHeader,
9
- permissionsPolicyHeader,
10
- strictTransportSecurityHeader,
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': cacheControlHeader({
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': contentSecurityPolicyHeader({
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/Feature-Policy
116
- 'Permissions-Policy': permissionsPolicyHeader({
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': strictTransportSecurityHeader(),
134
+ 'Strict-Transport-Security': StrictTransportSecurityHeader.stringify(),
137
135
  },
138
136
  });
139
137
 
@@ -13,7 +13,7 @@
13
13
  "typescript:watch": "tsx watch --conditions quilt:source"
14
14
  },
15
15
  "devDependencies": {
16
- "@quilted/rollup": "^0.2.0",
16
+ "@quilted/rollup": "^0.3.0",
17
17
  "@quilted/vite": "^0.2.0",
18
18
  "@quilted/typescript": "^0.4.0",
19
19
  "rollup": "^4.34.0",