0.2.0-beta.0 (2023-04-13)
Bug Fixes
- add configurations to analog-app (23a4b6f)
- add vite plugin as dependency on platform package (bb21e9a)
- add working StackBlitz link (#323) (2d77c7d)
- angular-vite-plugin: account for direct links to external styles/templates (77e6559)
- apply content plugin to serve (02dab18)
- astro-angular: check the component inputs before setting (#81) (c440629), closes #79
- astro-angular: inline sourcemaps into compiled output (#99) (0c73e1a), closes #96
- astro-angular: update zone.js import to zone.js/node (#189) (84e9139)
- create-analog: add @nrwl/angular package to support Nx 15.4.x (#204) (33d729f)
- create-analog: add tsconfig references so IDE can recognise projects (#65) (08c7467)
- create-analog: exclude router for StackBlitz (870d982)
- create-analog: fail silent when commit cannot be created (#63) (4a66a0c)
- create-analog: fix initial commit and gitignore file in template app (#84) (c431cd8)
- create-analog: move index.html to root in template app (e595ed2)
- create-analog: pin @nrwl/vite package to 15.3.x (#187) (443038c)
- create-analog: register router and initial client/server routes (#152) (11288d0)
- create-analog: set composite to false and include ts files in tsconfig (#76) (c287041), closes #75
- invalid cached routes on when routes are added/deleted (1beda39), closes #119
- only use Nitro during serve, build (#156) (4b5b30a), closes #151
- platform: absolute paths must be valid file URLs on windows #270 (#275) (d9721f4)
- platform: add handling of routes array for prerendering (#227) (4f2afef)
- platform: apply Nitro options after defaults (#179) (015844c)
- platform: convert runtime files to JS for pre-rendering (#183) (07e5b34)
- platform: exclude @analogjs/content from being eagerly bundled (c8202ab)
- platform: exclude @analogjs/content from being eagerly bundled (0a3c1c3)
- platform: keep router package from being eagerly optimized (b3d643b)
- platform: only apply nitro SSR options during build (#191) (151717c)
- platform: only transform xhr2 to default import one time (#297) (4a1f2b3)
- platform: optimize content package if installed (ebc3815)
- platform: update directory for public assets (dfed7f0)
- platform: update path for route invalidation (1f6b8a4)
- platform: use slash in event handler for api middleware(#325) (c8e65ea)
- router: lazy load markdown routes (#233) (16688e5), closes #200
- router: update regex to correctly parse catch-all routes (#330) (3c188ba)
- routes: fix nested dynamic routes path (#305) (8abb61c)
- simplify plugin flags (ebd8e61)
- vite-plugin-angular: add check for undefined viteServer for build in test mode (#279) (301cffd)
- vite-plugin-angular: add condition for sass styles (#186) (6ec883a)
- vite-plugin-angular: add listeners to watch file add/deletion of files for compilation (58d6732)
- vite-plugin-angular: add plugin to remove inline resource imports (#111) (3ceb470)
- vite-plugin-angular: add rxjs and rxjs/operators to dep optimizations (#267) (aa82373)
- vite-plugin-angular: add workspaceRoot to plugin options (5b90fbc)
- vite-plugin-angular: allow build-angular v15 (#162) (3e56717)
- vite-plugin-angular: always strip license comments from builds (#29) (5af9f28)
- vite-plugin-angular: check for data query param for inlnine styles (3c7ac2a)
- vite-plugin-angular: fix parsing of tsconfig option (#135) (a993a86), closes #134
- vite-plugin-angular: fix resolution of external templates for builds (#93) (c99f0a0)
- vite-plugin-angular: mark plugin options as optional (b4fc93a)
- vite-plugin-angular: process/transform styles before Angular compilation (#167) (a2f3aa6), closes #142
- vite-plugin-angular: remove sass from resolve conditions (a14df45)
- vite-plugin-angular: remove sass from resolve conditions (#177) (f821d60)
- vite-plugin-angular: skip transforming inline scripts (#98) (d54258e), closes #96
- vite-plugin-angular: support watch mode for multiple templateUrls (#264) (7f96057), closes #257
- vite-plugin-angular: update plugin to ignore tsx files (#102) (8bf9854), closes #100
- vite-plugin-angular: use babel to make transform results compati… (#231) (c70e5dc), closes #202
Features
- add Angular Vite plugin and setup initial app (6c9a98c)
- add create-analog package (c9261a4)
- add SSR support for dev/build (#182) (965ed61), closes #21
- add support for pages directory and .page.ts routes (#281) (4240cf5), closes #274
- angular-vite-plugin: add initial support for external styles/templates (#9) (e5c5da1), closes #5
- astro-angular: add ability to pass vite options to integration (#130) (6769d1d), closes #129
- astro-angular: add props (inputs) processing (#67) (2503e19), closes #60
- astro-angular: enabled angular prod build (#66) (b0235fc), closes #64
- astro-angular: update Astro integration with Angular v14.2 APIs (#58) (b385869), closes #24
- astro-integration-angular: move astro integration to analog monorepo (#28) (dfbd57b), closes #24
- change output directory from "server" to "analog" (#300) (2267afc), closes #295
- content: add injectable token/service that provides list of content w/frontmatter (#225) (62aeb66), closes #222
- content: add slug to metadata based on filename (#248) (bf8581a), closes #247
- content: add support for accessing content files within nested folders (#286) (19acf0c), closes #282
- content: add support for front-matter in routes using markdown (#205) (5b4292a), closes #198
- content: add support for lazy loading content files (#235) (4709629), closes #234
- content: update injectContent function to return content object… (#229) (19beed1), closes #228
- content: use angular router for internal links (61813d0)
- create-analog: add angular 15 template (#116) (#158) (df44122)
- create-analog: add git initialization after app creation (aadf018)
- create-analog: add SSR support to v15 template app (#190) (08ff148)
- create-analog: add tailwind gen to create-analog script (#315) (80fe21c)
- create-analog: add template for Angular v16 pre-release (#296) (f7748b1)
- create-analog: set start command based on package manager (#43) (b9e5f28)
- create-analog: update Angular v15 template to use @nrwl/vite package (#168) (73b6180)
- enable ssr by default for analog platform plugin (#301) (95aa678)
- introduce @analogjs/platform package for initial support for API routes (#132) (519c40c), closes #6
- introduce file-based @analogjs/router library (#101) (480e8e1), closes #1
- move plugins under platform package (#146) (cbc0264)
- platform: add initial Nx plugin support (#308) (3a84ced), closes #293
- platform: allow for configurable API route path prefix (#319) (26c78a1)
- platform: allow nx-plugin to be packaged with @analogjs/platform (#313) (c842919)
- platform: update prerender option to discover and resolve routes (#211) (99a7bb2)
- router: add ability to provide meta tags using RouteMeta (#230) (004289d), closes #214
- router: add experimental support for markdown as routes (#185) (55b1fde)
- router: add RouteMeta type (f682c60)
- router: add support for angular v15 (c99a84c)
- router: add support for named index routes (#149) (1dc54d2), closes #148
- router: deprecate defineRouteMeta in favor of RouteMeta (5d94827), closes #223
- router: set title and meta tags for markdown pages (#236) (d6ef56b), closes #215
- update nitropack to 0.6.x (#145) (295bdac)
- update package.json deps for Angular v16 support (#298) (f1c25e4)
- update template application to use platform and router packages (#147) (c4f1619)
- upgrade dependencies to the latest Angular v16.0.0-next.7 release (#322) (0fe23c6)
- vite-angular-plugin: update to Vite 3.0.x and Vitest 0.20.x (#18) (711bdae), closes #7
- vite-plugin-angular: add caching to compilation host (1331039)
- vite-plugin-angular: add optimizer plugin for builds (b78cfad)
- vite-plugin-angular: add support for css preprocessing in component styles (#88) (418c52e), closes #82
- vite-plugin-angular: add support for Vitest and update create-analog template (#15) (b0fb790), closes #13
- vite-plugin-angular: add tsTransformers config (#213) (e733cd1), closes #210
- vite-plugin-angular: change tsTransformers parameter type (#221) (3fd3ffa)
- vite-plugin-angular: inline esbuild compiler plugin (#252) (8088439), closes #139 #2
- vite-plugin-angular: support Angular Material custom package.json exports (#141) (cee43a9), closes #112
Performance Improvements
- vite-plugin-angular: add perf changes from esbuild browser builder (#27) (168170f), closes #14
BREAKING CHANGES
- platform: The
prerender
option has been renamed to static
, and prerender
is now a config object to auto-discover routes to be pre-rendered, and to add support for resolving additional routes async.
BEFORE:
analog({
prerender: true,
});
AFTER:
analog({
static: true,
prerender: {
discover: true,
routes: async () => ['/', '/blog', '/extra/route'],
},
});