Skip to content

Commit

Permalink
version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anhallbe committed Jan 14, 2021
1 parent 062bcf2 commit 92fd161
Show file tree
Hide file tree
Showing 92 changed files with 1,055 additions and 1,045 deletions.
28 changes: 19 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
# 4.0.0

### Changes
## Changes
- **all:** Updated dependencies
- **cli:** The `experimental-login` command is now `login`. [See here](https://github.com/infor-cloud/m3-h5-sdk/issues/55#issuecomment-651713612) for more.
- **samples:** Now using Highlight.js 10 in samples, fixed an issue where highlighting was not properly initialized.

### Updated Dependencies
## Updated Dependencies
- IDS Enterprise Components 9.1
- Angular 11
- Typescript 4
- Highlight.js 10

## Upgrading from version 3
1. Install the latest CLI:
```
npm i -g @infor-up/m3-odin-cli@latest
```
2. Upgrade existing project dependencies (assuming IDS & Angular is used):
```
ng update @infor-up/m3-odin @infor-up/m3-odin-angular @angular/cli @angular/core ids-enterprise-ng codelyzer
```

# 3.0.2
## Bug fixes
* **core:** `MIResponse` properly handles partial errors [#77](https://github.com/infor-cloud/m3-h5-sdk/issues/75)
Expand All @@ -20,7 +30,7 @@
# 3.0.1
This release contains major updates to dependencies (TypeScript, Angular, IDS Enterprise Components and more). It also contains a new (experimental) way of signing in to multi-tenant environments during development.

### Upgrading
## Upgrading
Existing projects can be updated with `ng update`. The process may differ depending on how the project is set up, and what other dependencies are installed. For a typical project using the IDS Angular Components, the following should do most of the work:

```bash
Expand All @@ -35,33 +45,33 @@ Further update instructions are given by the `ng update` command and https://upd

You may also need to install NodeJS 12.x (LTS).

### Features
## Features
* **cli:** New `experimental-login` command for multi-tenant login
* **angular:** Possibility to configure `IonApiService` using the injectable `IonApiConfig`

### Bug fixes
## Bug fixes
* **angular:** `IonApiService` no longer uses `XMLHttpRequest.withCredentials` by default. This was causing CORS issues in some environments [#41](https://github.com/infor-cloud/m3-h5-sdk/issues/41)
* **cli:** The development proxy will not forward CSRF requests and headers when proxying M3 requests to ION API.
* **cli:** The development proxy will modify the Origin header so that POST requests are accepted by ION API.

### Dependency updates
## Dependency updates
* **cli:** Upgrade to Angular 9
* **cli:** Requires NodeJS 12.x (LTS)
* **cli:** No longer uses `node-sass`, which was not working on newer NodeJS versions.

### BREAKING CHANGES
## BREAKING CHANGES
There have been major version updates to many dependencies. These require NodeJS 12.x (LTS) to be installed.

The IDS Angular Components require changes to `angular.json` to properly fetch assets, styles and scripts. New projects will not need to be changed, but older ones do. See **Upgrading** section above.

# 2.2.1

### Bug fixes
## Bug fixes
* **core:** Properly set CurrentCompany, CurrentDivision & CurrentLanguage on UserContext. Fixes [#27](https://github.com/infor-cloud/m3-h5-sdk/issues/27) and [#7](https://github.com/infor-cloud/m3-h5-sdk/issues/7)

# 2.2.0

### Features
## Features
* **core:** Include CSRF token in requests to /m3api-rest. *This will be required in future versions of M3*.

If you for any reason want to opt out from this feature, you can do so by setting the `IMIRequest.enableCsrf` property to `false`:
Expand Down
4 changes: 2 additions & 2 deletions cli/boilerplate/angular-material/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"@infor-up/m3-odin": "4.0.0-next.2",
"@infor-up/m3-odin-angular": "4.0.0-next.2",
"@infor-up/m3-odin": "4.0.0",
"@infor-up/m3-odin-angular": "4.0.0",
"@angular/cdk": "^11.0.3",
"@angular/material": "^11.0.3"
},
Expand Down
4 changes: 2 additions & 2 deletions cli/boilerplate/angular-soho/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"@infor-up/m3-odin": "4.0.0-next.2",
"@infor-up/m3-odin-angular": "4.0.0-next.2",
"@infor-up/m3-odin": "4.0.0",
"@infor-up/m3-odin-angular": "4.0.0",
"ids-enterprise-ng": "~9.1.0"
},
"devDependencies": {}
Expand Down
4 changes: 2 additions & 2 deletions cli/boilerplate/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"@infor-up/m3-odin": "4.0.0-next.2",
"@infor-up/m3-odin-angular": "4.0.0-next.2"
"@infor-up/m3-odin": "4.0.0",
"@infor-up/m3-odin-angular": "4.0.0"
},
"devDependencies": {}
}
4 changes: 2 additions & 2 deletions cli/boilerplate/basic-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"author": "",
"license": "UNLICENSED",
"devDependencies": {
"@infor-up/m3-odin-cli": "4.0.0-next.2",
"@infor-up/m3-odin": "4.0.0-next.2",
"@infor-up/m3-odin-cli": "4.0.0",
"@infor-up/m3-odin": "4.0.0",
"@types/material-components-web": "^0.26.0",
"rxjs": "^6.5.0",
"typescript": "^3.8.0"
Expand Down
4 changes: 2 additions & 2 deletions cli/boilerplate/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"author": "",
"license": "UNLICENSED",
"devDependencies": {
"@infor-up/m3-odin-cli": "4.0.0-next.2",
"@infor-up/m3-odin": "4.0.0-next.2",
"@infor-up/m3-odin-cli": "4.0.0",
"@infor-up/m3-odin": "4.0.0",
"rxjs": "^6.5.0",
"typescript": "^3.8.0"
}
Expand Down
2 changes: 1 addition & 1 deletion cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infor-up/m3-odin-cli",
"version": "4.0.0-next.2",
"version": "4.0.0",
"description": "Odin CLI",
"scripts": {
"build": "tsc",
Expand Down
22 changes: 11 additions & 11 deletions m3-odin/docs/classes/ajaxhttpservice.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AjaxHttpService | M3 Odin - 3.0.2</title>
<meta name="description" content="Documentation for M3 Odin - 3.0.2">
<title>AjaxHttpService | M3 Odin - 4.0.0</title>
<meta name="description" content="Documentation for M3 Odin - 4.0.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
Expand All @@ -22,7 +22,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">M3 Odin - 3.0.2</a>
<a href="../index.html" class="title">M3 Odin - 4.0.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -134,7 +134,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides <a href="corebase.html">CoreBase</a>.<a href="corebase.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/http.ts#L17">projects/infor-up/m3-odin/http.ts:17</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/http.ts#L17">projects/infor-up/m3-odin/http.ts:17</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="ajaxhttpservice.html" class="tsd-signature-type">AjaxHttpService</a></h4>
Expand All @@ -155,7 +155,7 @@ <h3>execute</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/ihttpservice.html">IHttpService</a>.<a href="../interfaces/ihttpservice.html#execute">execute</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/http.ts#L22">projects/infor-up/m3-odin/http.ts:22</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/http.ts#L22">projects/infor-up/m3-odin/http.ts:22</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -180,7 +180,7 @@ <h3>has<wbr>Error</h3>
<p>Implementation of <a href="../interfaces/ierrorstate.html">IErrorState</a>.<a href="../interfaces/ierrorstate.html#haserror">hasError</a></p>
<p>Inherited from <a href="errorstate.html">ErrorState</a>.<a href="errorstate.html#haserror">hasError</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/base.ts#L19">projects/infor-up/m3-odin/base.ts:19</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/base.ts#L19">projects/infor-up/m3-odin/base.ts:19</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -203,7 +203,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> is<wbr>Debug</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="corebase.html">CoreBase</a>.<a href="corebase.html#isdebug">isDebug</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/base.ts#L70">projects/infor-up/m3-odin/base.ts:70</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/base.ts#L70">projects/infor-up/m3-odin/base.ts:70</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -227,7 +227,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> log<wbr>Debug</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="corebase.html">CoreBase</a>.<a href="corebase.html#logdebug">logDebug</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/base.ts#L108">projects/infor-up/m3-odin/base.ts:108</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/base.ts#L108">projects/infor-up/m3-odin/base.ts:108</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -265,7 +265,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> log<wbr>Error</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="corebase.html">CoreBase</a>.<a href="corebase.html#logerror">logError</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/base.ts#L80">projects/infor-up/m3-odin/base.ts:80</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/base.ts#L80">projects/infor-up/m3-odin/base.ts:80</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -303,7 +303,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> log<wbr>Info</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="corebase.html">CoreBase</a>.<a href="corebase.html#loginfo">logInfo</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/base.ts#L98">projects/infor-up/m3-odin/base.ts:98</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/base.ts#L98">projects/infor-up/m3-odin/base.ts:98</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -335,7 +335,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> log<wbr>Warning</h3
<aside class="tsd-sources">
<p>Inherited from <a href="corebase.html">CoreBase</a>.<a href="corebase.html#logwarning">logWarning</a></p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin/base.ts#L89">projects/infor-up/m3-odin/base.ts:89</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin/base.ts#L89">projects/infor-up/m3-odin/base.ts:89</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
12 changes: 6 additions & 6 deletions m3-odin/docs/classes/applicationservice.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ApplicationService | M3 Odin - 3.0.2</title>
<meta name="description" content="Documentation for M3 Odin - 3.0.2">
<title>ApplicationService | M3 Odin - 4.0.0</title>
<meta name="description" content="Documentation for M3 Odin - 4.0.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
Expand All @@ -22,7 +22,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">M3 Odin - 3.0.2</a>
<a href="../index.html" class="title">M3 Odin - 4.0.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -143,7 +143,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides CoreBase.__constructor</p>
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin-angular/src/lib/service.ts#L74">projects/infor-up/m3-odin-angular/src/lib/service.ts:74</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin-angular/src/lib/service.ts#L74">projects/infor-up/m3-odin-angular/src/lib/service.ts:74</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="applicationservice.html" class="tsd-signature-type">ApplicationService</a></h4>
Expand Down Expand Up @@ -210,7 +210,7 @@ <h3>is<wbr>H5</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin-angular/src/lib/service.ts#L84">projects/infor-up/m3-odin-angular/src/lib/service.ts:84</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin-angular/src/lib/service.ts#L84">projects/infor-up/m3-odin-angular/src/lib/service.ts:84</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -232,7 +232,7 @@ <h3>launch</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/203d973/m3-odin/projects/infor-up/m3-odin-angular/src/lib/service.ts#L91">projects/infor-up/m3-odin-angular/src/lib/service.ts:91</a></li>
<li>Defined in <a href="https://github.com/infor-cloud/m3-h5-sdk/blob/062bcf2/m3-odin/projects/infor-up/m3-odin-angular/src/lib/service.ts#L91">projects/infor-up/m3-odin-angular/src/lib/service.ts:91</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit 92fd161

Please sign in to comment.