Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
🚀 Release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eneajaho committed Jan 5, 2023
1 parent 37c2eb1 commit f174e43
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 30 deletions.
28 changes: 12 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Incremental Static Regeneration for Angular
Incremental Static Regeneration (ISR) enables developers and content editors to use static-generation on a per-page basis, without needing to rebuild the entire site. With ISR, you can retain the benefits of static while scaling to millions of pages. [Source](https://vercel.com/docs/concepts/next.js/incremental-static-regeneration)
A library that enables Angular Universal applications to generate static pages at runtime and then update them incrementally on demand or on a schedule.

📰 [Read the blog post](https://itnext.io/incremental-static-regeneration-for-angular-42b0a8440e53)

Expand All @@ -16,7 +16,7 @@ npm install ngx-isr
```ts
const isr = new ISRHandler({
indexHtml,
invalidateSecretToken: 'MY_TOKEN', // replace with env secret key
invalidateSecretToken: 'MY_TOKEN', // replace with env secret key ex. process.env.REVALIDATE_SECRET_TOKEN
enableLogging: !environment.production
});
```
Expand Down Expand Up @@ -143,20 +143,16 @@ const routes: Routes = [


## Changelog
- Version 0.3.1
* Features:
* Added FileSystem CacheHandler
* Added "@types/node": "^14.15.0" to peerDeps required by FileSystemCacheHandler

- Version 0.3.0
* Features:
* Added support for Angular v14

- Version 0.2.0
* Features:
* Added `skipCachingOnHttpError` option. It will be enabled by default.
* Breaking changes:
* When adding `NgxIsrModule` in AppServerModule imports, we should change it to be `NgxIsrModule.forRoot()`.
- Version 0.4.0
Now ngx-isr will support only project in v15 and above. If you want to use it in older versions of Angular, please use v0.3.1.

The reason for this is because now we use `ɵSERVER_CONTEXT` token in order to set the rendering context that now will be shown as: `ng-server-context="ngx-isr"`. And this token is only available in v15 and above.

* Changes:
* chore: Updated the project to v15
* feat: Added server context provider
* feat: Added RedisCacheHandler class usage in the demo app (experimental)
* chore: Started to convert the demo app in a documentation page for the library

## License
MIT
23 changes: 12 additions & 11 deletions projects/ngx-isr/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Incremental Static Regeneration for Angular
Incremental Static Regeneration (ISR) enables developers and content editors to use static-generation on a per-page basis, without needing to rebuild the entire site. With ISR, you can retain the benefits of static while scaling to millions of pages. [Source](https://vercel.com/docs/concepts/next.js/incremental-static-regeneration)
A library that enables Angular Universal applications to generate static pages at runtime and then update them incrementally on demand or on a schedule.

📰 [Read the blog post](https://itnext.io/incremental-static-regeneration-for-angular-42b0a8440e53)

Expand All @@ -16,7 +16,7 @@ npm install ngx-isr
```ts
const isr = new ISRHandler({
indexHtml,
invalidateSecretToken: 'MY_TOKEN', // replace with env secret key
invalidateSecretToken: 'MY_TOKEN', // replace with env secret key ex. process.env.REVALIDATE_SECRET_TOKEN
enableLogging: !environment.production
});
```
Expand Down Expand Up @@ -143,15 +143,16 @@ const routes: Routes = [


## Changelog
- Version 0.3.0
* Features:
* Added support for Angular v14

- Version 0.2.0
* Features:
* Added `skipCachingOnHttpError` option. It will be enabled by default.
* Breaking changes:
* When adding `NgxIsrModule` in AppServerModule imports, we should change it to be `NgxIsrModule.forRoot()`.
- Version 0.4.0
Now ngx-isr will support only project in v15 and above. If you want to use it in older versions of Angular, please use v0.3.1.

The reason for this is because now we use `ɵSERVER_CONTEXT` token in order to set the rendering context that now will be shown as: `ng-server-context="ngx-isr"`. And this token is only available in v15 and above.

* Changes:
* chore: Updated the project to v15
* feat: Added server context provider
* feat: Added RedisCacheHandler class usage in the demo app (experimental)
* chore: Started to convert the demo app in a documentation page for the library

## License
MIT
6 changes: 3 additions & 3 deletions projects/ngx-isr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "ngx-isr",
"author": "Enea Jahollari",
"description": "Incremental Static Regeneration for Angular",
"version": "0.3.1",
"version": "0.4.0",
"peerDependencies": {
"@angular/common": ">=13.3.0",
"@angular/core": ">=13.3.0",
"@angular/common": ">=15.0.0",
"@angular/core": ">=15.0.0",
"@types/node": "^14.15.0"
},
"dependencies": {
Expand Down

1 comment on commit f174e43

@vercel
Copy link

@vercel vercel bot commented on f174e43 Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ngx-isr – ./

ngx-isr-eneajaho.vercel.app
ngx-isr.vercel.app
ngx-isr-git-main-eneajaho.vercel.app

Please sign in to comment.