# Upgrade guide for Gantt v5.1.0

## New module bundle for Angular

Bryntum Gantt is now delivered with new ES Module bundle without WebComponents. This was done to avoid conflicts with
Angular which also uses WebComponents for applications.

Angular wrappers use `gantt.module.js` bundle in favor of removed `gantt.lite.umd.js` one.

Your Angular applications should be upgraded to use the new `gantt.module.js` bundle which is set as `main` for
`@bryntum/gantt` NPM package.

Replace all application imports from Bryntum packages as shown below:

**Old code:**

```javascript
import { Gantt } from '@bryntum/gantt/gantt.lite.umd.js';
```

**New code:**

```javascript
import { Gantt } from '@bryntum/gantt';
```

## New module bundle with WebComponents

Bryntum Gantt is now delivered with new `gantt.wc.module.js` ES Module bundle with WebComponents.

Your applications which use WebComponents and modules bundle should be upgraded to import from new `gantt.wc.module.js` 
instead of `gantt.module.js`.

## Dependencies feature was refactored, `drawForTask()` not needed

As a result of a large refactoring of the `Dependencies` feature the `drawForTask()` fn was deprecated. Calling it
should no longer be necessary.

**Old code:**
```javascript
//... some action
gantt.features.dependencies.drawForTask(gantt.taskStore.first);
```
**New code:**
```javascript
//... some action
```


<p class="last-modified">Last modified on 2023-10-26 8:19:02</p>