Skip to content

feat: modernize library — rename to angular-csv, update all deps - #2

Draft
ehsanshrz with Copilot wants to merge 1 commit into
masterfrom
copilot/update-to-latest-version
Draft

feat: modernize library — rename to angular-csv, update all deps#2
ehsanshrz with Copilot wants to merge 1 commit into
masterfrom
copilot/update-to-latest-version

Conversation

Copilot AI commented Jul 23, 2026

Copy link
Copy Markdown

The library was targeting Angular 5 (EOL 2018) with a severely outdated toolchain (TypeScript 2.x, Karma 1.x, PhantomJS). This updates everything to current standards.

Renames

  • Package: angular5-csvangular-csv (v1.0.0)
  • Files: Angular5-csv.tsAngularCsv.ts, Angular5-csv.spec.tsAngularCsv.spec.ts
  • Class: Angular5CsvAngularCsv (Angular5Csv retained as deprecated alias for backward compat)
  • Build output: dist/Angular2-csv.jsdist/AngularCsv.js

Code cleanup

  • Removed IE-only navigator.msSaveBlob branch
  • Replaced custom objectAssign polyfill with native Object.assign
  • Added URL.revokeObjectURL() after download to prevent memory leaks

Dependencies

Removed unused/dead packages: @angular/* (never imported), rxjs, webpack, awesome-typescript-loader, es6-shim, phantomjs-prebuilt, karma-phantomjs-launcher, karma-webpack, zone.js, reflect-metadata, @types/js-base64, core-js

Updated dev toolchain:

Package Before After
TypeScript ^2.4.2 ^5.9.3
karma ^1.7.1 ^6.4.4
karma-jasmine ^1.1.1 ^5.1.0
karma-chrome-launcher ^2.2.0 ^3.2.0
karma-typescript ^3.0.12 ^5.5.4
jasmine-core ^2.99.1 ^6.3.0

tsconfig target upgraded from ES5ES2020.

Migration

// Before
import { Angular5Csv } from 'angular5-csv/dist/Angular5-csv';

// After
import { AngularCsv } from 'angular-csv/dist/AngularCsv';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants