@quilted/quilt 0.5.63 → 0.5.64

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,11 @@
1
1
  # @quilted/quilt
2
2
 
3
+ ## 0.5.64
4
+
5
+ ### Patch Changes
6
+
7
+ - [#190](https://github.com/lemonmade/quilt/pull/190) [`9bf454a`](https://github.com/lemonmade/quilt/commit/9bf454aaefc7ac6b85060fc5493b6b3ee4e2b526) Thanks [@lemonmade](https://github.com/lemonmade)! - Add easy environment variables
8
+
3
9
  ## 0.5.63
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -148,8 +148,7 @@ async function renderStatic(App, {
148
148
  fallback: false
149
149
  });
150
150
  }
151
- } // console.log({routeId, match, addFallbacks, children, routes, ownRoute});
152
-
151
+ }
153
152
 
154
153
  if (hasChildren) {
155
154
  for (const {
@@ -0,0 +1 @@
1
+
@@ -126,8 +126,7 @@ async function renderStatic(App, {
126
126
  fallback: false
127
127
  });
128
128
  }
129
- } // console.log({routeId, match, addFallbacks, children, routes, ownRoute});
130
-
129
+ }
131
130
 
132
131
  if (hasChildren) {
133
132
  for (const {
@@ -0,0 +1 @@
1
+
@@ -126,8 +126,7 @@ async function renderStatic(App, {
126
126
  fallback: false
127
127
  });
128
128
  }
129
- } // console.log({routeId, match, addFallbacks, children, routes, ownRoute});
130
-
129
+ }
131
130
 
132
131
  if (hasChildren) {
133
132
  for (const {
@@ -1481,6 +1481,11 @@
1481
1481
  "signature": "74db8898203d9d4aa49fd0eb4f2608aaf6d63d68c39c1df3b7a37129ca729532",
1482
1482
  "affectsGlobalScope": false
1483
1483
  },
1484
+ "../src/env.ts": {
1485
+ "version": "06689faf7538ac12ac05cf4af8bfe481795bedf6defda7ccb7932275b54d5d21",
1486
+ "signature": "2e1a31d471411b9be7152aa351dfd04772bd73b18c5a853a39f5c07b000f18ce",
1487
+ "affectsGlobalScope": false
1488
+ },
1484
1489
  "../src/global.ts": {
1485
1490
  "version": "4b6d57bd53bfd6ff76314c8fce64627953a03bfabccd96bf042f6de6ca797b67",
1486
1491
  "signature": "26208398168ed2930b36a962dba389b8c40960cddd1b6e1260be106f56bef77f",
@@ -2197,7 +2202,7 @@
2197
2202
  "affectsGlobalScope": false
2198
2203
  },
2199
2204
  "../src/static/index.tsx": {
2200
- "version": "d142882f48ec1123548b93d300f120faf8425661be2ce8b26a47a7826d17e7ed",
2205
+ "version": "484ef45460d69fee3a479cc925a55ee1c72b4b24baf4fb3789e1bac91e74f830",
2201
2206
  "signature": "654cc8b3ee68d511afe7b400f351452de1a25ecff75191355113a8c186ad76c2",
2202
2207
  "affectsGlobalScope": false
2203
2208
  },
@@ -7300,6 +7305,7 @@
7300
7305
  "../../polyfills/build/typescript/noop.d.ts",
7301
7306
  "../src/App.tsx",
7302
7307
  "../src/email.ts",
7308
+ "../src/env.ts",
7303
7309
  "../src/global.ts",
7304
7310
  "../src/html.ts",
7305
7311
  "../src/http-handlers/index.ts",
@@ -0,0 +1,5 @@
1
+ export interface EnvironmentVariables {
2
+ }
3
+ declare const Env: EnvironmentVariables;
4
+ export default Env;
5
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;CAAG;AAExC,OAAO,CAAC,MAAM,GAAG,EAAE,oBAAoB,CAAC;AAExC,eAAe,GAAG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/static/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAOvD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,4BAA4B,CAAC;AAI1D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AI,EAAE,SAAS,CAAC;CAC1B;AAOD,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAID,wBAAsB,YAAY,CAChC,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,EACvB,EACE,MAAM,EACN,MAAM,EAAE,cAAc,EACtB,QAAQ,EACR,KAAY,EACZ,OAAkB,EAClB,QAAe,GAChB,EAAE,OAAO,iBAsOX"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quilted/quilt",
3
3
  "type": "module",
4
- "version": "0.5.63",
4
+ "version": "0.5.64",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/lemonmade/quilt.git",
@@ -134,6 +134,9 @@
134
134
  "global": [
135
135
  "./build/typescript/global.d.ts"
136
136
  ],
137
+ "env": [
138
+ "./build/typescript/env.d.ts"
139
+ ],
137
140
  "http": [
138
141
  "./build/typescript/http.d.ts"
139
142
  ],
@@ -6,6 +6,7 @@ export default createPackage((pkg) => {
6
6
  pkg.entry({source: './src/html', name: 'html'});
7
7
  pkg.entry({source: './src/email', name: 'email'});
8
8
  pkg.entry({source: './src/global', name: 'global'});
9
+ pkg.entry({source: './src/env', name: 'env'});
9
10
  pkg.entry({source: './src/react', name: 'react'});
10
11
  pkg.entry({
11
12
  source: './src/react/server',
package/src/env.ts ADDED
@@ -0,0 +1,5 @@
1
+ export interface EnvironmentVariables {}
2
+
3
+ declare const Env: EnvironmentVariables;
4
+
5
+ export default Env;
@@ -169,8 +169,6 @@ export async function renderStatic(
169
169
  }
170
170
  }
171
171
 
172
- // console.log({routeId, match, addFallbacks, children, routes, ownRoute});
173
-
174
172
  if (hasChildren) {
175
173
  for (const {id, route} of matchedRoutes) {
176
174
  for (const child of children!) {