voliva / angular2-interceptors

79 stars 20 forks source link

Support Angular 4 #27

Open nghiado opened 7 years ago

nghiado commented 7 years ago

We need to upgrade to Angular 4.x and this is the only package that doesn't support Angular 4 in our project. Can you help to unblock our upgrade by supporting Angular 4?

tiagoaquino commented 7 years ago

+1

scic commented 7 years ago

The library seams to work fine with Angular 4, but the peerDepencenies are not compatible. It should be enough to do the following change in the package.json:

 "peerDependencies": {
    "@angular/core": "'^2.4.0 || ^4.0.0",
    "@angular/http": "^2.4.0 || ^4.0.0",
    "rxjs": "^5.0.0"
  },