Releases: hso-nn/d365-cli
Bugfixes for deployment
The hso-d365 update command resulted in invalid webpack.config.js
Update internal CLI code
Updating internal CLI code to Webpack 5, etc.
Will not affect projects.
Webpack upgrade
This update will upgrade your project to Webpack 5, Typescript 4, eslint 7 and many other package updates.
Please update @hso/d365-cli and update your project:
npm install -g @hso/d365-cli
hso-d365 update
Entity.service.ts file imported interfaces
When generating an Entity the .service.ts file had interfaces imported, which is not needed anymore
Deploy command --force option
The Deploy command skips unmodified files. Neverthelesss if you want to force unmodified files as well use the --force option.
hso-d365 deploy --force
For this verion you need to update your project. This will remove your project tools/deploy.js file.
hso-d365 update
Remove locales.resx
Removing dependencies missed removing the locales.resx file due to bug in RegEx
Webresource translation support
Webresources support translation.
You need to update your project:
hso-d365 update
Now when deploying dependencies will be set on Webresources when their related script uses Translation.
Small improvements
- Geolocation util class
- tsconfig.json moved to project root
- Fix checking for enum string in update command
- Login will show better error during login
Interfaces without need for export/import
Typescript and interfaces
In Typescript, definition files define classes, interfaces, etc and are global available. Luckily this is also the case when having interfaces and types in a Typescript file without export statements. Not exporting and importing interfaces/types is the topic of version 2.0.0.
Entity.model.ts
The x.model.ts files contained exported interfaces and types, but also enums. Enums are not typings, so they still need to be exported and imported and thus they had to be extracted to another file: x.enum.ts.
Update your project
The update command will do the project update for you. Only updating enums was too hard. That's why this is the first major release.
Major release
As mentioned above updating enums usage was too hard. That's why this is the first major release. After update the enums will miss imports. Fixing them is easy.
We recommend following steps for upgrading to 2.0.0:
npm install -g @hso/d365-cli@1.8.3
hso-d365 update
npm install -g @hso/d365-cli@latest
hso-d365 update
Then add the missing enum imports.
Tenant support
Support for tenant added.
In the crm.json you can add the "tenant" property to the "adal" config object.