Skip to content

Support tslib 2.3.0+ #6689

@wSedlacek

Description

@wSedlacek

Bug Report

Current Behavior

"tslib": "~2.1.0"

tslib is set to ~2.1.0 which conflicts with ^2.3.0 used in other projects causing duplicate tslib modules

├─┬ @ngrx/[email protected]
│ └── [email protected] deduped
├─┬ @ngrx/[email protected]
│ └── [email protected] deduped
├─┬ @ngrx/[email protected]
│ └── [email protected] deduped
├─┬ @ngrx/[email protected]
│ └── [email protected] deduped
├─┬ @ngrx/[email protected]
│ └── [email protected] deduped
├─┬ @ngrx/[email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected]
├── [email protected]

This duplication is adds ~0.6 Kb to a compiled project.

Expected behavior
tslib to be versioned such that there are not conflicts with other commonly used packages.

See:
ng-packagr/ng-packagr#2174 (comment)

Environment

  • RxJS version: ~7.4.0

Possible Solution
Perhaps a version of ^2.1.0 would be suitable to continue supporting older versions of packages (like Angular 12) but also supporting Angular 13

Metadata

Metadata

Assignees

Labels

AGENDA ITEMFlagged for discussion at core team meetings

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions