angular-odata-es5 icon indicating copy to clipboard operation
angular-odata-es5 copied to clipboard

Update to angular 12 / 13 / ......

Open mhollier opened this issue 4 years ago • 14 comments

Is it possible to update to Angular 12?

mhollier avatar Oct 15 '21 18:10 mhollier

@mhollier , This is possible, I'll take a look.

StefH avatar Oct 17 '21 07:10 StefH

Would also love this update! Willing to do myself if there are people around who can review...

mbrankintrintech avatar Apr 12 '22 19:04 mbrankintrintech

I will try to fix it this weekend.

StefH avatar Apr 12 '22 20:04 StefH

@mbrankintrintech Sorry.

It's not so easy as it seems.

I cannot get my project to build anymore, it's too old I think. I spent a few hours on trying to fix it. Not yet succeeded.

Probably need to start a new library as described here: https://angular.io/guide/creating-libraries

However this will take a lot of time (also I want to add unit tests....)

StefH avatar Apr 14 '22 21:04 StefH

Hi.

Is there any progress? Can you update dependencies to Angular 14?

markyp8203 avatar Oct 11 '22 07:10 markyp8203

No sorry, I cannot get the library with the new project structure working...

StefH avatar Oct 11 '22 08:10 StefH

I created a local fork of your API and stripped out the testing, demo app and documentation generation parts of the build, bringing it down to only the API itself. I was able to package this as a 'new' angular library npm package that builds with Angular 15, RxJS 7, and other updated APIs. I will look at uploading as a public fork of this project, so perhaps it would help you update your library.

awdorrin avatar Apr 10 '23 14:04 awdorrin

That would be awesome - would love to see that as well

mbrankintrintech avatar Apr 10 '23 15:04 mbrankintrintech

My fork of the code is available here: https://github.com/awdorrin/ngx-odata-client I have not attempted to deploy to the public NPM repos yet, but I will try to do so later this week.

awdorrin avatar Apr 10 '23 20:04 awdorrin

I was able to uninstall the angular-odata-es5 library, install this new ngx-odata-client library, and then just updated the imports in my application, and things worked. (Once a couple of people on Slack Overflow helped me resolve a caching issue that had me stumped!)

awdorrin avatar Apr 10 '23 20:04 awdorrin

Hi @awdorrin @matracey. Have you updated your forks to work with last angular versions (16,17) ? And have you deployed them on npm ? If not can you explain how to install it in a project to replace the original package. Thank you very much for your answers

AnaisR7 avatar Apr 10 '24 10:04 AnaisR7

I have used my branch with an app that I have brought up to Angular 15.2.9, but have not updated that application to 16 o/17 yet. I have never deployed a github project to npm, but am willing to see what is involved.

awdorrin avatar Apr 10 '24 11:04 awdorrin

@AnaisR7 I have published my fork on npm here: @awdorrin/ngx-odata-client I have Angular 15, 16 and 17 packages available. This is my first time publishing to NPM, so if you have any issues, let me know and I'll work to resolve.

awdorrin avatar Apr 10 '24 15:04 awdorrin

@awdorrin If you like, I can transfer this repository to you?

StefH avatar Apr 16 '24 07:04 StefH