Skip to content

Commit

Permalink
Merge pull request #1505 from analogjs/beta
Browse files Browse the repository at this point in the history
chore: release 1.10.2
  • Loading branch information
brandonroberts authored Dec 16, 2024
2 parents ba817a0 + f981f91 commit 4986aee
Show file tree
Hide file tree
Showing 50 changed files with 1,613 additions and 909 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,15 @@
"contributions": [
"code"
]
},
{
"login": "alexrosepizant",
"name": "Alex Rose-Pizant",
"avatar_url": "https://avatars.githubusercontent.com/u/7753376?v=4",
"profile": "https://github.com/alexrosepizant",
"contributions": [
"infra"
]
}
],
"contributorsPerLine": 7,
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ jobs:

unit:
runs-on: ubuntu-latest
needs:
- build
- build-windows
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -104,7 +101,6 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
- build-windows
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Release Test

on:
workflow_dispatch:
inputs:
analog_build_tag:
description: 'Analog Build Tag'
required: true
default: 'latest'
type: choice
options:
- latest
- beta
angular_build_tag:
description: 'Angular Build Tag'
required: true
default: 'latest'
type: choice
options:
- latest
- next
nx_build_tag:
description: 'Nx Build Tag'
required: true
default: 'latest'
type: choice
options:
- latest
- canary

jobs:
create-analog:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- run: corepack enable
- run: npm --version
- name: Create Analog Application
run: npm create analog@${{ inputs.analog_build_tag }} analog-app -- --skipTailwind --analogSFC=false --template latest
- name: Build, Test, and Validate
run: |
cd analog-app
npm install
npm run build
npm run test
cat ./dist/analog/public/index.html
create-nx-workspace:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- run: corepack enable
- run: npm --version
- name: Create Nx Workspace
run: |
npx create-nx-workspace@${{ inputs.nx_build_tag }} analog-nx-workspace --preset @analogjs/platform@${{ inputs.analog_build_tag }} --analogAppName my-analog-app --addTailwind=false --addTRPC=false --ci skip
- name: Build, Test, and Validate
run: |
cd analog-nx-workspace
npm install
npx nx build my-analog-app
npx nx test my-analog-app
cat ./dist/my-analog-app/analog/public/index.html
migrate-angular-app:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- run: corepack enable
- run: npm --version
- name: Create Angular App
run: |
npx @angular/cli@${{ inputs.angular_build_tag }} new my-angular-app --style css --no-ssr
- name: Migrate, Build, Test, and Validate
run: |
cd my-angular-app
npm install @analogjs/platform@${{ inputs.analog_build_tag }} --save-dev
npx ng g @analogjs/platform:init --project my-angular-app --vitest=true
npm run build
npm run test
cat ./dist/analog/public/index.html
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
## [1.10.2-beta.12](https://github.com/analogjs/analog/compare/v1.10.2-beta.11...v1.10.2-beta.12) (2024-12-16)

### Bug Fixes

- **vite-plugin-angular:** properly transform files during testing with watch mode ([#1503](https://github.com/analogjs/analog/issues/1503)) ([6d9179f](https://github.com/analogjs/analog/commit/6d9179f5e624d9ff65c8f1069424b07903cd9865))

## [1.10.2-beta.11](https://github.com/analogjs/analog/compare/v1.10.2-beta.10...v1.10.2-beta.11) (2024-12-15)

### Bug Fixes

- **vite-plugin-angular:** only apply sourcemap transform to TS files during testing ([#1500](https://github.com/analogjs/analog/issues/1500)) ([0b56d46](https://github.com/analogjs/analog/commit/0b56d463ac75f3d917919e2f658f171a68b5cd26))

## [1.10.2-beta.10](https://github.com/analogjs/analog/compare/v1.10.2-beta.9...v1.10.2-beta.10) (2024-12-14)

### Bug Fixes

- **vite-plugin-angular:** process destructured objects ([#1499](https://github.com/analogjs/analog/issues/1499)) ([cba76da](https://github.com/analogjs/analog/commit/cba76da9156f2d1c8b4d50d104e057ff5da78c9d))

## [1.10.2-beta.9](https://github.com/analogjs/analog/compare/v1.10.2-beta.8...v1.10.2-beta.9) (2024-12-14)

### Bug Fixes

- **vite-plugin-angular:** process call expr and property access expr property ([#1498](https://github.com/analogjs/analog/issues/1498)) ([cf7db8f](https://github.com/analogjs/analog/commit/cf7db8f05902fa138c8f1e0042c01430e5ef7ab9))

## [1.10.2-beta.8](https://github.com/analogjs/analog/compare/v1.10.2-beta.7...v1.10.2-beta.8) (2024-12-13)

### Bug Fixes

- **vite-plugin-angular:** fix Angular v18/v19 support for ɵPendingTasks ([#1497](https://github.com/analogjs/analog/issues/1497)) ([3215ab4](https://github.com/analogjs/analog/commit/3215ab4e0dfb67d694d660ce21087d182bcb8be5))

## [1.10.2-beta.7](https://github.com/analogjs/analog/compare/v1.10.2-beta.6...v1.10.2-beta.7) (2024-12-12)

### Bug Fixes

- **vite-plugin-angular:** return undefined when not resolving id ([#1495](https://github.com/analogjs/analog/issues/1495)) ([ac6a854](https://github.com/analogjs/analog/commit/ac6a854bcc921d9e4c77383f99bfd63186dce582))

## [1.10.2-beta.6](https://github.com/analogjs/analog/compare/v1.10.2-beta.5...v1.10.2-beta.6) (2024-12-11)

### Bug Fixes

- exclude astro-app from builds ([ebabc90](https://github.com/analogjs/analog/commit/ebabc90b486169796d45f71e1c80d59a1d3fe584))

## [1.10.2-beta.5](https://github.com/analogjs/analog/compare/v1.10.2-beta.4...v1.10.2-beta.5) (2024-12-11)

### Bug Fixes

- **vite-plugin-angular:** resolve JIT external template/style files ([#1493](https://github.com/analogjs/analog/issues/1493)) ([54e9488](https://github.com/analogjs/analog/commit/54e9488f222f56fd055d8b837459eb668c94d0a3))

## [1.10.2-beta.4](https://github.com/analogjs/analog/compare/v1.10.2-beta.3...v1.10.2-beta.4) (2024-12-10)

### Bug Fixes

- **vite-plugin-angular:** skip re-transform in JIT mode ([#1489](https://github.com/analogjs/analog/issues/1489)) ([30533c6](https://github.com/analogjs/analog/commit/30533c6f0deaa3457847a65b170d3938c15ee087))

## [1.10.2-beta.3](https://github.com/analogjs/analog/compare/v1.10.2-beta.2...v1.10.2-beta.3) (2024-12-10)

### Bug Fixes

- **create-analog:** remove override for @nx/angular package ([#1487](https://github.com/analogjs/analog/issues/1487)) ([cb3d70b](https://github.com/analogjs/analog/commit/cb3d70bc1a5a2451c29f43e04d98e29826a07f40))

## [1.10.2-beta.2](https://github.com/analogjs/analog/compare/v1.10.2-beta.1...v1.10.2-beta.2) (2024-12-08)

### Bug Fixes

- **nx-plugin:** update Nx preset to 20.x and Angular 19.x ([#1484](https://github.com/analogjs/analog/issues/1484)) ([7d8ee23](https://github.com/analogjs/analog/commit/7d8ee23498e483a5026a00c819ee05de8e62bc23))

## [1.10.2-beta.1](https://github.com/analogjs/analog/compare/v1.10.1...v1.10.2-beta.1) (2024-12-07)

### Bug Fixes

- **create-analog:** set root property to empty on angular.json ([#1481](https://github.com/analogjs/analog/issues/1481)) ([d9cdbe2](https://github.com/analogjs/analog/commit/d9cdbe20b82145bc24662ae1bdbd5d86b4f202e2))

## [1.10.1](https://github.com/analogjs/analog/compare/v1.10.0...v1.10.1) (2024-12-04)

### Bug Fixes
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- prettier-ignore-start -->
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-126-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-127-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<!-- prettier-ignore-end -->

Expand Down Expand Up @@ -274,6 +274,9 @@ Thanks goes to these wonderful people for contributing to Analog ([emoji key](ht
<td align="center" valign="top" width="14.28%"><a href="http://gillespie59.github.io/"><img src="https://avatars.githubusercontent.com/u/555768?v=4?s=100" width="100px;" alt="Emmanuel DEMEY"/><br /><sub><b>Emmanuel DEMEY</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=EmmanuelDemey" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://nickyt.co"><img src="https://avatars.githubusercontent.com/u/833231?v=4?s=100" width="100px;" alt="Nick Taylor"/><br /><sub><b>Nick Taylor</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=nickytonline" title="Code">💻</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/alexrosepizant"><img src="https://avatars.githubusercontent.com/u/7753376?v=4?s=100" width="100px;" alt="Alex Rose-Pizant"/><br /><sub><b>Alex Rose-Pizant</b></sub></a><br /><a href="#infra-alexrosepizant" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</tbody>
</table>

Expand Down
3 changes: 3 additions & 0 deletions apps/docs-app/docs/contributors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ Andres is a software engineer for HeroDevs, Angular and Firebase GDE.
<td align="center" valign="top" width="14.28%"><a href="http://gillespie59.github.io/"><img src="https://avatars.githubusercontent.com/u/555768?v=4?s=100" width="100px;" alt="Emmanuel DEMEY"/><br /><sub><b>Emmanuel DEMEY</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=EmmanuelDemey" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://nickyt.co"><img src="https://avatars.githubusercontent.com/u/833231?v=4?s=100" width="100px;" alt="Nick Taylor"/><br /><sub><b>Nick Taylor</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=nickytonline" title="Code">💻</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/alexrosepizant"><img src="https://avatars.githubusercontent.com/u/7753376?v=4?s=100" width="100px;" alt="Alex Rose-Pizant"/><br /><sub><b>Alex Rose-Pizant</b></sub></a><br /><a href="#infra-alexrosepizant" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</tbody>
</table>

Expand Down
47 changes: 42 additions & 5 deletions apps/docs-app/docs/guides/forms.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Server Form Actions
# Form Server Actions

Analog supports server-side handling of form submissions. This can be achieved by using a directive, and defining an async `action` function in `.server.ts` file for the page.
Analog supports server-side handling of form submissions and validation.

<div className="video-container">
<div className="video-responsive-wrapper">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/4pFPO1OpD4Q?si=HcESaJI03LgEljpQ&amp;controls=0">
</iframe>
</div>
</div>

## Setting up the Form

Expand Down Expand Up @@ -65,7 +75,6 @@ export default class NewsletterComponent {

onError(result?: FormErrors) {
this.errors.set(result);
console.log({ result });
}
}
```
Expand Down Expand Up @@ -100,8 +109,6 @@ export async function action({ event }: PageServerAction) {
return redirect('/');
}

console.log({ email: body.get('email') });

return json({ type: 'success' });
}
```
Expand All @@ -110,6 +117,36 @@ export async function action({ event }: PageServerAction) {
- The `redirect` function returns a redirect response to the client. This should be an absolute path.
- The `fail` function is used for returning form validation errors.

### Handling Multiple Forms

To handle multiple forms on the same page, add a hidden input to distinguish each form.

```html
<form method="post">
<div>
<label for="email"> Email </label>
<input type="email" name="email" />
</div>

<input type="hidden" name="action" value="register" />

<button class="button" type="submit">Submit</button>
</form>
```

In the server action, use the `action` value.

```ts
export async function action({ event }: PageServerAction) {
const body = await readFormData(event);
const action = body.get('action') as string;

if (action === 'register') {
// process register form
}
}
```

## Handling GET Requests

Forms with a `GET` action can be used to navigate to the same URL, with the form inputs passed as query parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ Andres ist Softwareentwickler für HeroDevs, Angular und Firebase GDE.
<td align="center" valign="top" width="14.28%"><a href="http://gillespie59.github.io/"><img src="https://avatars.githubusercontent.com/u/555768?v=4?s=100" width="100px;" alt="Emmanuel DEMEY"/><br /><sub><b>Emmanuel DEMEY</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=EmmanuelDemey" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://nickyt.co"><img src="https://avatars.githubusercontent.com/u/833231?v=4?s=100" width="100px;" alt="Nick Taylor"/><br /><sub><b>Nick Taylor</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=nickytonline" title="Code">💻</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/alexrosepizant"><img src="https://avatars.githubusercontent.com/u/7753376?v=4?s=100" width="100px;" alt="Alex Rose-Pizant"/><br /><sub><b>Alex Rose-Pizant</b></sub></a><br /><a href="#infra-alexrosepizant" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</tbody>
</table>

Expand Down
4 changes: 4 additions & 0 deletions apps/docs-app/i18n/es/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@
"message": "Patrocina Analog",
"description": "The label of the button to sponsor Analog"
},
"homepage.partnerSection.zerops": {
"message": "Partner Oficial de Despliegues",
"description": "The label of the official deployment partner"
},
"features.fileBasedRouting": {
"message": "Analog usa enrutado basado en ficheros y soporta rutas de API (servidor) para aplicaciones Angular.",
"description": "The description of the feature 'File-based routing and API routes'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,9 @@
"sidebar.docsSidebar.doc.Sponsoring": {
"message": "Patrocinio",
"description": "The label for the doc item Sponsoring in sidebar docsSidebar, linking to the doc sponsoring"
},
"sidebar.docsSidebar.doc.Support": {
"message": "Soporte",
"description": "The label for the doc item Support in sidebar docsSidebar, linking to the doc sponsoring"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ Andres es un ingeniero en software para HeroDevs, GDE en Angular y Firebase.
<td align="center" valign="top" width="14.28%"><a href="http://gillespie59.github.io/"><img src="https://avatars.githubusercontent.com/u/555768?v=4?s=100" width="100px;" alt="Emmanuel DEMEY"/><br /><sub><b>Emmanuel DEMEY</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=EmmanuelDemey" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://nickyt.co"><img src="https://avatars.githubusercontent.com/u/833231?v=4?s=100" width="100px;" alt="Nick Taylor"/><br /><sub><b>Nick Taylor</b></sub></a><br /><a href="https://github.com/analogjs/analog/commits?author=nickytonline" title="Code">💻</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/alexrosepizant"><img src="https://avatars.githubusercontent.com/u/7753376?v=4?s=100" width="100px;" alt="Alex Rose-Pizant"/><br /><sub><b>Alex Rose-Pizant</b></sub></a><br /><a href="#infra-alexrosepizant" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</tbody>
</table>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
sidebar_position: 5
---

# Soporte

Ya seas un desarrollador independiente o una gran empresa, ¡tenemos diferentes opciones disponibles para ti!

## Discord

Hay un [Servidor Discord](https://chat.analogjs.org) disponible para:

- Soporte de la comunidad
- Preguntas y respuestas
- Chat general

## GitHub

El [código fuente](https://github.com/analogjs/analog) de Analog tiene licencia MIT, es gratuito y de código abierto. Puedes solicitar soporte general de las siguientes maneras:

- Reportes de errores
- Solicitudes de nuevas funcionalidades
- Pull Requests
- [Contribuciones](/docs/contributing) Generales

## Soporte dedicado

Ofrecemos soporte dedicado a través de:

- Consultoría de arquitectura
- Contratos de soporte empresarial
- Servicios de retención
- Workshops

- Agenda una [reunión](https://calendly.com/brandontroberts/session) o [Contáctanos](mailto:support@analogjs.org?subject=Dedicated+Support) directamente para hablar sobre las opciones de soporte dedicado.
4 changes: 4 additions & 0 deletions apps/docs-app/i18n/es/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"message": "Documentación",
"description": "Navbar item with label Docs"
},
"item.label.Support": {
"message": "Soporte",
"description": "Navbar item with label Support"
},
"item.label.GitHub": {
"message": "GitHub",
"description": "Navbar item with label GitHub"
Expand Down
Loading

0 comments on commit 4986aee

Please sign in to comment.