All notable changes to this project will be documented in this file. See commit-and-tag-version for commit guidelines.
19.0.1 (2024-11-27)
19.0.0 (2024-11-22)
19.0.0-next.0 (2024-11-22)
18.2.0 (2024-08-30)
18.1.0 (2024-07-10)
18.0.1 (2024-05-29)
- ensure correct peer dependency version range (a967ef7)
18.0.0 (2024-05-24)
- Upgrade to Angular 18
17.0.5 (2024-05-12)
17.0.4 (2024-05-12)
17.0.3 (2024-05-11)
- support object outputPath for Angular application builder (#96) (6002f8a)
- upgrade golang version and npm dependencies to reduce CVE (#95) (0989712)
17.0.2 (2023-11-12)
- adapt to
@angular-devkit/build-angular:application
builder (#88) (8d06efe), closes #87 - correct sideEffects path (aeaf3bf)
17.0.1 (2023-11-08)
- align @schematics/angular version (4468665)
17.0.0 (2023-11-08)
17.0.0-next.1 (2023-11-04)
17.0.0-next.0 (2023-11-04)
- Upgrade to Angular 17
- rename
browserTarget
tobuildTarget
and add migration (#86) (9ff1e18) - upgrade to Angular 17 (#85) (6e45fe9)
16.0.0 (2023-05-03)
- In order to improve security (and apply
Secure by default
), the default forsearchPattern
has been changed to{sourceRoot}/**/environments/environment*.ts
(from{sourceRoot}/**/!(*server*).ts
). If your project uses environment variables in other files, update thesearchPattern
entry in yourngsscbuild
block in your angular.json. - Update to Angular 16
- change default search pattern to only include environment files (#82) (f0aef80)
- upgrade to Angular 16 (#81) (c1f4d02)
15.1.0 (2023-03-22)
- use correct path for environment files in ng-add (421b3ff)
15.0.2 (2022-11-24)
15.0.1 (2022-11-19)
15.0.0 (2022-11-18)
- Angular 15 is now required. With version 15 of the
Angular CLI, environment files are no longer generated by default. In
order to adapt, using
ng add angular-server-side-configuration
will try to add the import in eitherapp.module.ts
,app.components.ts
ormain.ts
depending on availability. The ngssc builder will also now search all files for environment variable usages instead of just the defined environment file.
14.0.1 (2022-06-04)
- update peer dependencies version range (04d6f55)
14.0.0 (2022-06-04)
-
Update to Angular 14
-
update to Angular 14 (875ce64)
13.2.1 (2022-04-14)
13.2.0 (2022-04-14)
13.1.0 (2022-02-06)
- add --nginx flags for native cli command (#67) (bbcda62)
- implement
substitute
command for the native CLI (#65) (f234c6b), closes #64
13.0.0 (2021-11-18)
- This also refactors the ngsscbuild builder extensively. This breaking change will only affect you, if you used the internals of this library.
- Switch to Ivy and the new Angular Package Format.
- enable VariableDetector to also detect index access usages (702dac3)
- implement experimental builders for
build
(browser) andserver
(dev-browser) targets (5b5c022) - update to Angular 13 (df5949f)
- deprecate NG_ENV variant (501ee6c)
12.0.0 (2021-05-18)
-
Updated to support version 12 of Angular
-
update to Angular 12 (e9c7378)
11.0.2 (2020-12-03)
- don't use deprecated default options for non aotSupport builds (e0b431e)
11.0.1 (2020-11-16)
11.0.0 (2020-11-16)
10.2.0 (2020-10-25)
- update download url of Dockerfiles if available (368e5eb)
10.1.0 (2020-10-18)
- add ngsw.json detection and updating to native cli (1dd77fa)
10.0.1 (2020-07-05)
- correct linting (3ac1181)
10.0.0 (2020-07-05)
- Updating to Angular 10.
9.0.2 (2020-03-03)
- export schematics factories named (8c44ff3)
9.0.1 (2020-03-02)
- export ngsscBuild as a function and builder as default (dc2ae70)
9.0.0 (2020-02-07)
9.0.0-next.0 (2020-02-01)
8.2.1 (2020-01-23)
- mark new filePattern option as optional (b43ca20)
8.2.0 (2020-01-23)
8.1.3 (2020-01-20)
8.1.2 (2020-01-12)
8.1.1 (2019-10-23)
- No longer changing working directory in the cli
8.1.0 (2019-10-23)
- Add uncompressed binaries
8.0.0 (2019-08-25)
- Fixed issue with native cli --recursive
8.0.0-beta.4 (2019-07-19)
- Fixed iife insertion
8.0.0-beta.3 (2019-07-19)
- Fixed dependency issue with glob-to-regexp
8.0.0-beta.2 (2019-07-19)
- Implemented insert function (
import { insert } from 'angular-server-side-configuration';
)
- Fixed issue in native cli
8.0.0-beta.1 (2019-07-14)
- Added additionalEnvironmentVariables to builder options
- Implemented ng update migration
8.0.0-beta.0 (2019-06-30)
- Rewrote the library to use Angular schematics and builders
- Added --recursive flag to the native CLI
- Removed the npm CLI and most of the existing internal implementation
- Dropped support for configuration embedded in html
2.0.0 (2019-04-14)
- Added documentation for the native cli
2.0.0-beta.1 (2019-04-13)
The detection and insertion of environment variables has been separated.
Detection is now executed at build time by wrapping the ng build command (e.g. ngssc ng build
).
This will generate an ngssc.json file, which can be used by the ngssc insert
command.
See the README for more information.
- New command
ngssc
for detecting environment variable usage
- The
ngssc wrap-aot
has been merged into thengssc
command as an optional flag--wrap-aot
. - The
ngssc insert
command requires an ngssc.json file or embedded configuration in the html files.
2.0.0-beta.0 (2019-03-10)
- Implemented NG_ENV variant as an alternative for process.env
- Removed deprecated ProcessEnvConfiguration
1.3.0 (2019-03-09)
- Created ProcessEnvConfiguration, which will replace EnvironmentVariablesConfiguration
- Created class Configuration, which is the base implementation for ProcessEnvConfiguration and EnvironmentVariablesConfiguration
- EnvironmentVariablesConfiguration has been deprecated. Use ProcessEnvConfiguration instead
- Switched testing framework from mocha/chai/nyc to jest