@quilted/create 0.2.14 → 0.2.16

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,17 @@
1
1
  # @quilted/create
2
2
 
3
+ ## 0.2.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`905e92ef`](https://github.com/lemonmade/quilt/commit/905e92ef32adad8658042f437b9cfbd248cce3c3) Thanks [@lemonmade](https://github.com/lemonmade)! - Simplify React exports
8
+
9
+ ## 0.2.15
10
+
11
+ ### Patch Changes
12
+
13
+ - [`f2000adb`](https://github.com/lemonmade/quilt/commit/f2000adbb0d4cfd57901b560e4d12e3690bee8d5) Thanks [@lemonmade](https://github.com/lemonmade)! - Simplify package and smaller app templates
14
+
3
15
  ## 0.2.14
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quilted/create",
3
3
  "type": "module",
4
- "version": "0.2.14",
4
+ "version": "0.2.16",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,4 +1,4 @@
1
- import type {PropsWithChildren} from '@quilted/quilt/react/tools';
1
+ import type {PropsWithChildren} from 'react';
2
2
 
3
3
  import styles from './Frame.module.css';
4
4
 
@@ -1,17 +1,15 @@
1
1
  import '@quilted/quilt/globals';
2
2
  import {RequestRouter} from '@quilted/quilt/request-router';
3
+ import {renderToResponse} from '@quilted/quilt/server';
3
4
  import {BrowserAssets} from 'quilt:module/assets';
4
5
 
6
+ import {App} from './App.tsx';
7
+
5
8
  const router = new RequestRouter();
6
9
  const assets = new BrowserAssets();
7
10
 
8
11
  // For all GET requests, render our React application.
9
12
  router.get(async (request) => {
10
- const [{App}, {renderToResponse}] = await Promise.all([
11
- import('./App.tsx'),
12
- import('@quilted/quilt/server'),
13
- ]);
14
-
15
13
  const response = await renderToResponse(<App />, {
16
14
  request,
17
15
  assets,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createOptionalContext,
3
3
  createUseContextHook,
4
- } from '@quilted/quilt/react/tools';
4
+ } from '@quilted/quilt/react';
5
5
 
6
6
  export interface AppContext {}
7
7
 
@@ -1,17 +1,15 @@
1
1
  import '@quilted/quilt/globals';
2
2
  import {RequestRouter} from '@quilted/quilt/request-router';
3
+ import {renderToResponse} from '@quilted/quilt/server';
3
4
  import {BrowserAssets} from 'quilt:module/assets';
4
5
 
6
+ import {App} from './App.tsx';
7
+
5
8
  const router = new RequestRouter();
6
9
  const assets = new BrowserAssets();
7
10
 
8
11
  // For all GET requests, render our React application.
9
12
  router.get(async (request) => {
10
- const [{App}, {renderToResponse}] = await Promise.all([
11
- import('./App.tsx'),
12
- import('@quilted/quilt/server'),
13
- ]);
14
-
15
13
  const response = await renderToResponse(<App />, {
16
14
  request,
17
15
  assets,
@@ -1,4 +1,4 @@
1
- import type {PropsWithChildren} from '@quilted/quilt/react/tools';
1
+ import type {PropsWithChildren} from 'react';
2
2
 
3
3
  import styles from './Frame.module.css';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createOptionalContext,
3
3
  createUseContextHook,
4
- } from '@quilted/quilt/react/tools';
4
+ } from '@quilted/quilt/react';
5
5
 
6
6
  export interface AppContext {}
7
7
 
@@ -1,4 +1,4 @@
1
- import type {PropsWithChildren} from '@quilted/quilt/react/tools';
1
+ import type {PropsWithChildren} from 'react';
2
2
 
3
3
  import styles from './Frame.module.css';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createOptionalContext,
3
3
  createUseContextHook,
4
- } from '@quilted/quilt/react/tools';
4
+ } from '@quilted/quilt/react';
5
5
 
6
6
  export interface AppContext {}
7
7
 
@@ -2,7 +2,7 @@ import {describe, it, expect} from 'vitest';
2
2
 
3
3
  import {run} from './index.ts';
4
4
 
5
- describe('package', () => {
5
+ describe('run()', () => {
6
6
  it('returns something fun', () => {
7
7
  expect(run()).toContain('fun');
8
8
  });