analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.43k stars 224 forks source link

AnalogJS 1.0 migration guide #809

Open brandonroberts opened 7 months ago

brandonroberts commented 7 months ago

In the 1.0 release, the Analog Vite plugins will be published as ESM-only.

Package updates Update vite to ^5.0.0 in the root package.json and install if on a 4.x release version

For existing Angular CLI workspaces, a few migrations will need to be made.

For existing Nx workspaces with an Analog project

export default defineConfig(({ mode }) => {
  return {
    // other config
    server: {
      fs: {
        allow: ['.'],
      },
    },
});
nckirik commented 3 months ago

the 1.0 release doesn't have @analogjs/trpc package.

@brandonroberts mentioned that trpc support will be moved to @spartan-ng/trpc that is maintained by @goetzrobin

currently @spartan-ng/trpc doesn't have any releases and i'm keeping @analogjs/trpc at 0.2.45 in my project for now.

is this the right way to go?

brandonroberts commented 3 months ago

@nckirik yes, that's correct. It should still work the same as before as an independent package

BaronVonPerko commented 3 months ago

Just to note, I needed to also update my vite to version 5 (it was 4 and was throwing the ESM error)

brandonroberts commented 3 months ago

Good catch. Thanks @BaronVonPerko