Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/0.29.0 #1120

Merged
merged 35 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ee4d0a4
Enhancement/issue 1088 refactor workers out of SSR builds (#1110)
thescientist13 Jun 29, 2023
2a1e618
v0.29.0-alpha.0
thescientist13 Jun 29, 2023
8c9985b
remove leftover console logs (#1121)
thescientist13 Jul 12, 2023
2436932
Feature/issue 1008 adapter plugin API (#1122)
thescientist13 Jul 23, 2023
a00adf6
v0.29.0-alpha.1
thescientist13 Jul 23, 2023
fdf2b14
bug/issue 1137 have adapted SSR pages return `text/html` content type…
thescientist13 Aug 10, 2023
37c6a17
feature/issue 1008 netlify adapter plugin (#1128)
thescientist13 Aug 12, 2023
69a61ca
Feature/issue 1008 vercel adapter plugin (#1139)
thescientist13 Aug 12, 2023
43516d4
v0.29.0-alpha.2
thescientist13 Aug 12, 2023
ae78778
document callout for configuring Netlify adapter AWS_LAMBDA_RUNTIME s…
thescientist13 Aug 26, 2023
65a80d3
Feature/issue 1048 handle merging additional `Request` / `Response` p…
thescientist13 Aug 26, 2023
28f0ed4
v0.29.0-alpha.3
thescientist13 Aug 26, 2023
a7b18b3
make sure shared bundles across API routes and SSR pages get included…
thescientist13 Sep 1, 2023
8ccb7df
handle Netlify form data handling as encoded URL (#1148)
thescientist13 Sep 1, 2023
e76da6b
v0.29.0-alpha.4
thescientist13 Sep 1, 2023
4c84cab
upgrade to gallinago 0.7.0 (#1153)
thescientist13 Oct 6, 2023
eb5b77f
bug/issue 1161 gracefully handle bare specifiers when resolve custom …
thescientist13 Oct 13, 2023
f1781e0
handle escaping of nested template literals when bundling and packing…
thescientist13 Oct 14, 2023
3432617
bug/issue 1151 custom imports not working for API routes and SSR page…
thescientist13 Oct 14, 2023
1f43653
check for api assets build output directory before copying for vercel…
thescientist13 Oct 14, 2023
5360e3d
upgrade plugin-typescript tp typescript 5.x (#1164)
thescientist13 Oct 14, 2023
844856a
Bug/issue 1159 devServer proxy routing broken with content encoding h…
thescientist13 Oct 14, 2023
60971b1
v0.29.0-alpha.5
thescientist13 Oct 14, 2023
9135961
Issue-1171: Include protocol with logged urls (#1173)
DevLab2425 Oct 26, 2023
1c9e938
grammar (#1170)
thescientist13 Oct 26, 2023
45facc4
Docs/issue 1004 document latest status for non standard import format…
thescientist13 Oct 27, 2023
34156fc
Rfc/issue 952 data loading strategies (#1157)
thescientist13 Oct 31, 2023
d2a6103
Feature/issue 1116 base path configuration (#1135)
thescientist13 Nov 3, 2023
9f087a3
add support for optimizing CSS `:has` / `:is` pseudo-selectors (#1107)
thescientist13 Nov 4, 2023
b09a7fe
remove leftover base path demo code (#1179)
thescientist13 Nov 4, 2023
26938f3
v0.29.0-alpha.6
thescientist13 Nov 4, 2023
ce0c14f
ensure resolving graph.json respects base path configuration (#1180)
thescientist13 Nov 7, 2023
7c9c23f
chore/Issue 1016: Replace the use of request with fetch in test cases…
DevLab2425 Nov 8, 2023
a1d247f
content/v0.29.0 release blog post (#1174)
thescientist13 Nov 8, 2023
9684078
host v0.29.0 blog video on CDN
thescientist13 Nov 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
**/node_modules/**
!.eslintrc.cjs
!.mocharc.js
packages/plugin-babel/test/cases/**/*main.js
packages/plugin-babel/test/cases/**/*main.js
TODO.md
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ coverage/
node_modules/
packages/**/test/**/yarn.lock
packages/**/test/**/package-lock.json
public/
packages/**/test/**/netlify
packages/**/test/**/.netlify
packages/**/test/**/.vercel
public/
adapter-outlet/
3 changes: 2 additions & 1 deletion .ls-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ ls:
ignore:
- .git
- node_modules
- packages/init/node_modules
- packages/init/node_modules
- packages/plugin-typescript/node_modules
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.28.5",
"version": "0.29.0-alpha.6",
"packages": [
"packages/*",
"www"
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
},
"devDependencies": {
"@ls-lint/ls-lint": "^1.10.0",
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"babel-eslint": "^10.1.0",
"c8": "^7.10.0",
"chai": "^4.2.0",
"cross-env": "^7.0.3",
"eslint": "^6.8.0",
"eslint": "^8.51.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-no-only-tests": "^2.6.0",
"gallinago": "^0.6.0",
"gallinago": "^0.7.0",
"glob-promise": "^3.4.0",
"jsdom": "^16.5.0",
"lerna": "^3.16.4",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@greenwood/cli",
"version": "0.28.5",
"version": "0.29.0-alpha.6",
"description": "Greenwood CLI.",
"type": "module",
"repository": "https://github.com/ProjectEvergreen/greenwood",
Expand Down Expand Up @@ -34,14 +34,14 @@
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-replace": "^2.3.4",
"@rollup/plugin-terser": "^0.1.0",
"@web/rollup-plugin-import-meta-assets": "^1.0.0",
"acorn": "^8.0.1",
"acorn-walk": "^8.0.0",
"commander": "^2.20.0",
"css-tree": "^2.2.1",
"es-module-shims": "^1.2.0",
"front-matter": "^4.0.2",
"koa": "^2.13.0",
"koa-body": "^6.0.1",
"livereload": "^0.9.1",
"markdown-toc": "^1.2.0",
"node-html-parser": "^1.2.21",
Expand All @@ -52,7 +52,7 @@
"remark-rehype": "^7.0.0",
"rollup": "^2.58.0",
"unified": "^9.2.0",
"wc-compiler": "~0.8.0"
"wc-compiler": "~0.9.0"
},
"devDependencies": {
"@babel/runtime": "^7.10.4",
Expand Down
9 changes: 8 additions & 1 deletion packages/cli/src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { preRenderCompilationWorker, preRenderCompilationCustom, staticRenderCompilation } from '../lifecycles/prerender.js';
import { ServerInterface } from '../lib/server-interface.js';

// TODO a lot of these are duplicated in the prerender lifecycle too

Check warning on line 8 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO a lot of these are duplicated in...'

Check warning on line 8 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO a lot of these are duplicated in...'

Check warning on line 8 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO a lot of these are duplicated in...'

Check warning on line 8 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO a lot of these are duplicated in...'

Check warning on line 8 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO a lot of these are duplicated in...'

Check warning on line 8 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO a lot of these are duplicated in...'
// would be good to refactor
async function servePage(url, request, plugins) {
let response = new Response('');
Expand Down Expand Up @@ -42,7 +42,7 @@
});
}

// TODO does this make more sense in bundle lifecycle?

Check warning on line 45 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO does this make more sense in bundle...'

Check warning on line 45 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO does this make more sense in bundle...'

Check warning on line 45 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO does this make more sense in bundle...'

Check warning on line 45 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO does this make more sense in bundle...'

Check warning on line 45 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected 'todo' comment: 'TODO does this make more sense in bundle...'

Check warning on line 45 in packages/cli/src/commands/build.js

View workflow job for this annotation

GitHub Actions / build (18)

Unexpected ' TODO' comment: 'TODO does this make more sense in bundle...'
// https://github.com/ProjectEvergreen/greenwood/issues/970
// or could this be done sooner (like in appTemplate building in html resource plugin)?
// Or do we need to ensure userland code / plugins have gone first
Expand Down Expand Up @@ -71,6 +71,9 @@
const prerenderPlugin = compilation.config.plugins.find(plugin => plugin.type === 'renderer')
? compilation.config.plugins.find(plugin => plugin.type === 'renderer').provider(compilation)
: {};
const adapterPlugin = compilation.config.plugins.find(plugin => plugin.type === 'adapter')
? compilation.config.plugins.find(plugin => plugin.type === 'adapter').provider(compilation)
: null;

if (!await checkResourceExists(outputDir)) {
await fs.mkdir(outputDir, {
Expand Down Expand Up @@ -98,7 +101,7 @@
return Promise.resolve(server);
}));

if (prerenderPlugin.workerUrl) {
if (prerenderPlugin.executeModuleUrl) {
await trackResourcesForRoutes(compilation);
await preRenderCompilationWorker(compilation, prerenderPlugin);
} else {
Expand All @@ -114,6 +117,10 @@
await bundleCompilation(compilation);
await copyAssets(compilation);

if (adapterPlugin) {
await adapterPlugin();
}

resolve();
} catch (err) {
reject(err);
Expand Down
6 changes: 4 additions & 2 deletions packages/cli/src/commands/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ const runDevServer = async (compilation) => {
return new Promise(async (resolve, reject) => {

try {
const { port } = compilation.config.devServer;
const { basePath, devServer } = compilation.config;
const { port } = devServer;
const postfixSlash = basePath === '' ? '' : '/';

(await getDevServer(compilation)).listen(port, () => {

console.info(`Started local development server at localhost:${port}`);
console.info(`Started local development server at http://localhost:${port}${basePath}${postfixSlash}`);

const servers = [...compilation.config.plugins.filter((plugin) => {
return plugin.type === 'server';
Expand Down
7 changes: 4 additions & 3 deletions packages/cli/src/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ const runProdServer = async (compilation) => {
return new Promise(async (resolve, reject) => {

try {
const port = compilation.config.port;
const { basePath, port } = compilation.config;
const postfixSlash = basePath === '' ? '' : '/';
const hasApisDir = await checkResourceExists(compilation.context.apisDir);
const hasDynamicRoutes = compilation.graph.find(page => page.isSSR && !page.data.static);
const hasDynamicRoutes = compilation.graph.find(page => page.isSSR && !page.prerender);
const server = (hasDynamicRoutes && !compilation.config.prerender) || hasApisDir ? getHybridServer : getStaticServer;

(await server(compilation)).listen(port, () => {
console.info(`Started server at localhost:${port}`);
console.info(`Started server at http://localhost:${port}${basePath}${postfixSlash}`);
});
} catch (err) {
reject(err);
Expand Down
Loading