angular-cn/packages
Daniel Seibel Silva ea971f7098 fix(core): inheritance delegate ctor regex updated to work on minified code (#36962)
If one component Parent inherit another component Base like the following:

@Component(...)
class Base {
  constructor(@Inject(InjectionToken) injector: Injector) { }
}

@Component(...)
class Parent extends Base {
    // no constructor
}

When creating Component Parent, the dependency injection should work on delegating ctors like above.

The code Parent code above will be compiled into something like:

class Parent extends Base {
  constructor() {
    super(...arguments);
  }
}

The angular core isDelegateCtor function will identify the delegation ctor to the base class.

But when the code above is minified (using terser), the minified code will compress the spaces, resulting in something like:
class Parent extends Base{constructor(){super(...arguments)}}

The regex will stop working, since it wasn't aware of this case. So this fix will allow this to work in minified code cases.

PR Close #36962
2020-05-14 15:49:46 -07:00
..
animations build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
bazel build: prepare for TypeScript 3.9 (#36989) 2020-05-14 10:50:28 -07:00
benchpress release(benchpress): bump version of benchpress to 0.2.0 (#36457) 2020-04-22 17:10:28 -04:00
common docs(common): English grammar (#36908) 2020-05-13 16:03:25 -07:00
compiler refactor(core): remove style sanitization code for `[style]`/`[style.prop]` bindings (#36965) 2020-05-13 15:56:12 -07:00
compiler-cli test(core): verify that Ivy i18n works correctly with HTML namespaces (#36943) 2020-05-14 15:20:42 -07:00
core fix(core): inheritance delegate ctor regex updated to work on minified code (#36962) 2020-05-14 15:49:46 -07:00
docs docs(di): fix typo in advanced di doc (#36634) 2020-05-01 09:50:28 -07:00
elements build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
examples test: enable importHelpers for UMD builds (#36989) 2020-05-14 10:50:30 -07:00
forms build: prepare for TypeScript 3.9 (#36989) 2020-05-14 10:50:28 -07:00
language-service test: update language service module resolution cache (#36989) 2020-05-14 10:50:30 -07:00
localize refactor(localize): use the `FileSystem` from ngtsc (#36843) 2020-05-13 15:52:48 -07:00
platform-browser refactor: disable sanitization for [style] and [style.prop] bindings (#35621) 2020-05-06 15:00:22 -07:00
platform-browser-dynamic build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-server feat(platform-server): use absolute URLs from Location for HTTP (#37071) 2020-05-13 16:00:02 -07:00
platform-webworker docs(platform-webworker): remove mention of version 10 (#37052) 2020-05-12 14:40:56 -07:00
platform-webworker-dynamic docs(platform-webworker): remove mention of version 10 (#37052) 2020-05-12 14:40:56 -07:00
private/testing build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
router docs(router): filter the event to subscribe (#37027) 2020-05-14 12:01:46 -07:00
service-worker build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
upgrade refactor: fix undecorated classes with angular features in repo (#36921) 2020-05-06 15:06:10 -07:00
zone.js build: prepare for TypeScript 3.9 (#36989) 2020-05-14 10:50:28 -07:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
circular-deps-test.conf.js build: move circular deps golden to a subfolder (#36630) 2020-04-22 17:11:20 -04:00
empty.ts
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json revert: "feat(dev-infra): exposed new rule 'component_benchmark' via dev_infra (#36434)" (#36798) 2020-04-24 11:03:38 -07:00
types.d.ts build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT