Components: bug(cdk/schematics): Regression in CDK version 9.2.2 where the public api changed

Created on 5 May 2020  路  2Comments  路  Source: angular/components

Reproduction

Install the CDK with version 9.2.2 and try to import createUpgradeRule and RuleUpgradeData from the schematics package of the CDK.

with version 9.2.1 it was working. So the API was broken in a patch version.

Expected Behavior

It should be possible to import createUpgradeRule and RuleUpgradeData with the version 9.2.2 of @angular/cdk

import {
  createUpgradeRule,
  RuleUpgradeData,
} from '@angular/cdk/schematics';

Actual Behavior

A regression was introduced with this version where those two functions are not exported anymore this causes the build to fail.

error TS2305: Module '"@angular/cdk/schematics"' has no exported member 'createUpgradeRule'.
error TS2305: Module '"@angular/cdk/schematics"' has no exported member 'RuleUpgradeData'.

Environment

  • Angular: 9.1.3
  • CDK/Material: 9.2.1 -> 9.2.2
  • Browser(s): ---
  • Operating System (e.g. Windows, macOS, Ubuntu): macOs

Most helpful comment

cdk/schematics is unfortunately not a public API and is not documented anywhere. We'd like to someday offer some of what we've built publicly, but for now we don't have the ability to support it as such.

All 2 comments

cdk/schematics is unfortunately not a public API and is not documented anywhere. We'd like to someday offer some of what we've built publicly, but for now we don't have the ability to support it as such.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theunreal picture theunreal  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments

julianobrasil picture julianobrasil  路  3Comments

savaryt picture savaryt  路  3Comments

vitaly-t picture vitaly-t  路  3Comments