Skip to content

Commit fec2ad0

Browse files
authored
Merge pull request #148 from moneytree/bump-version-to-4.0.0
bump version to 4.0.0
2 parents a67424c + e34e5bf commit fec2ad0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+337
-285
lines changed

CHANGELOG.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
## [4.0.0](https://github.com/moneytree/mt-link-javascript-sdk/compare/3.2.1...4.0.0) (2023-10-06)
2+
3+
### New Features
4+
5+
* feat(sdk) remove `pkce` option becuase all OAuth flows must use PKCE ([2234e0e](https://github.com/moneytree/mt-link-javascript-sdk/commit/2234e0e))
6+
* feat(sdk) return the full token from `exchangeToken` ([5131f12](https://github.com/moneytree/mt-link-javascript-sdk/commit/5131f12))
7+
8+
### Sample App improvements
9+
10+
* fix(sample) fix formatting errors in html ([fc70d52](https://github.com/moneytree/mt-link-javascript-sdk/commit/fc70d52))
11+
* fix(sample) use new service options after re-write in 3.2.1 ([bf9b14a](https://github.com/moneytree/mt-link-javascript-sdk/commit/bf9b14a))
12+
* refactor(sample): inline variable, use staging, remove useless await ([04c119b](https://github.com/moneytree/mt-link-javascript-sdk/commit/04c119b))
13+
14+
### Documentation improvements
15+
16+
* doc(sample) update sample to use new exchangeToken type ([0e68876](https://github.com/moneytree/mt-link-javascript-sdk/commit/0e68876))
17+
* doc(sdk) add TSDoc comments to public API ([f530830](https://github.com/moneytree/mt-link-javascript-sdk/commit/f530830))
18+
* doc(sdk) fix typos and inconsistencies ([a926047](https://github.com/moneytree/mt-link-javascript-sdk/commit/a926047))
19+
* doc(sdk) replace markdown API doc with links typedoc ([b18603d](https://github.com/moneytree/mt-link-javascript-sdk/commit/b18603d))
20+
* doc(sdk) update documentation for exchangeCode function ([40e7cb4](https://github.com/moneytree/mt-link-javascript-sdk/commit/40e7cb4))
21+
* doc(sdk) update readme with badge maintainer instructions ([7fd3f27](https://github.com/moneytree/mt-link-javascript-sdk/commit/7fd3f27))
22+
* docs(sdk) fix typos ([89f69cd](https://github.com/moneytree/mt-link-javascript-sdk/commit/89f69cd))
23+
24+
### Build improvements
25+
26+
* build(all) add cspell ([a3660a8](https://github.com/moneytree/mt-link-javascript-sdk/commit/a3660a8))
27+
* build(all) upgrade node from 12 -> 16 ([8c62758](https://github.com/moneytree/mt-link-javascript-sdk/commit/8c62758))
28+
* build(all) upgrade node from 16 -> 18 ([c3b62a7](https://github.com/moneytree/mt-link-javascript-sdk/commit/c3b62a7)), closes [/nodejs.org/en/blog/release/v17.0.0#openssl-3-0](https://github.com//nodejs.org/en/blog/release/v17.0.0/issues/openssl-3-0) [/github.com/webpack/webpack/issues/14532#issuecomment-947513562](https://github.com//github.com/webpack/webpack/issues/14532/issues/issuecomment-947513562)
29+
* build(all) upgrade typescript to 4.9.5 ([ab74095](https://github.com/moneytree/mt-link-javascript-sdk/commit/ab74095))
30+
* build(all) add codeowners ([fd73d63](https://github.com/moneytree/mt-link-javascript-sdk/commit/fd73d63))
31+
* build(all) add codeowners (like, really) ([7fea9d9](https://github.com/moneytree/mt-link-javascript-sdk/commit/7fea9d9))
32+
* build(all) setup prettier formatting in pre-commit hook ([3f9ea23](https://github.com/moneytree/mt-link-javascript-sdk/commit/3f9ea23))
33+
* build(doc) add typedoc ([a804fef](https://github.com/moneytree/mt-link-javascript-sdk/commit/a804fef))
34+
135
## [3.2.1](https://github.com/moneytree/mt-link-javascript-sdk/compare/3.2.0...3.2.1) (2023-08-24)
236

337

@@ -144,6 +178,3 @@ one via the APIs' options parameter if you need one.
144178
### Features
145179

146180
* creating a JS SDK ([333cf8c](https://github.com/moneytree/mt-link-javascript-sdk/commit/333cf8c36f7a8299c2bccf441454b04d31e7d907))
147-
148-
149-

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typings.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,17 @@ export type Scopes = string | string[];
6060
interface AuthorizeConfigsOptions {
6161
forceLogout?: boolean;
6262
}
63-
interface OAuthSharedParams {
63+
export interface OAuthSharedParams {
6464
state?: string;
6565
redirectUri?: string;
6666
}
6767
export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, AuthorizeConfigsOptions {
6868
scopes?: Scopes;
6969
codeChallenge?: string;
70-
pkce?: boolean;
7170
}
7271
export type AuthorizeUrlOptions = Omit<AuthorizeOptions, 'isNewTab'>;
7372
export type Mode = 'production' | 'staging' | 'develop' | 'local';
74-
export type InitOptions = Omit<Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'>, 'pkce'> & PrivateParams & {
73+
export type InitOptions = Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'> & PrivateParams & {
7574
mode?: Mode;
7675
locale?: string;
7776
};

docs/types/assets/highlight.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
:root {
2-
--light-hl-0: #001080;
3-
--dark-hl-0: #9CDCFE;
2+
--light-hl-0: #795E26;
3+
--dark-hl-0: #DCDCAA;
44
--light-hl-1: #000000;
55
--dark-hl-1: #D4D4D4;
6-
--light-hl-2: #795E26;
7-
--dark-hl-2: #DCDCAA;
8-
--light-hl-3: #A31515;
9-
--dark-hl-3: #CE9178;
10-
--light-hl-4: #0000FF;
11-
--dark-hl-4: #569CD6;
12-
--light-hl-5: #008000;
13-
--dark-hl-5: #6A9955;
6+
--light-hl-2: #A31515;
7+
--dark-hl-2: #CE9178;
8+
--light-hl-3: #008000;
9+
--dark-hl-3: #6A9955;
10+
--light-hl-4: #001080;
11+
--dark-hl-4: #9CDCFE;
12+
--light-hl-5: #0000FF;
13+
--dark-hl-5: #569CD6;
1414
--light-code-background: #FFFFFF;
1515
--dark-code-background: #1E1E1E;
1616
}

docs/types/classes/MtLinkSdk.html

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

docs/types/index.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,17 @@
1212
<div class="col-content">
1313
<div class="tsd-page-title">
1414
<h2>@moneytree/mt-link-javascript-sdk</h2></div>
15-
<div class="tsd-panel tsd-typography"><a id="md:moneytree-link-javascript-sdk" class="tsd-anchor"></a><h1><a href="#md:moneytree-link-javascript-sdk">Moneytree Link JavaScript SDK</a></h1><p>This is a library for browser client to help you integrate Moneytree tools such as My Account and the Vault without having to do worry about the complex configurations.</p>
16-
<p>Read the <a href="docs/README.md">documentation</a> for more information.</p>
15+
<div class="tsd-panel tsd-typography"><a id="md:moneytree-link-javascript-sdk" class="tsd-anchor"></a><h1><a href="#md:moneytree-link-javascript-sdk">Moneytree Link JavaScript SDK</a></h1><p><a href="https://www.npmjs.com/package/@moneytree/mt-link-javascript-sdk"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fregistry.npmjs.org%2F%40moneytree%2Fmt-link-javascript-sdk&query=%24%5B'dist-tags'%5D%5B'latest'%5D&logo=npm&label=%40moneytree%2Fmt-link-javascript-sdk&color=14BF31" alt="NPM Badge"></a></p>
16+
<p>This is a library for browser client to help you integrate Moneytree tools such as My Account and the Vault without having to do worry about the complex configurations.</p>
17+
<a id="md:for-sdk-users" class="tsd-anchor"></a><h2><a href="#md:for-sdk-users">For SDK Users</a></h2><p>Read the <a href="https://moneytree.github.io/mt-link-javascript-sdk/">documentation</a> for more information.</p>
18+
<a id="md:for-sdk-maintainers" class="tsd-anchor"></a><h2><a href="#md:for-sdk-maintainers">For SDK Maintainers</a></h2><pre><code class="language-bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">install</span><br/><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">lint</span><span class="hl-1"> </span><span class="hl-3"># runs eslint</span><br/><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">test</span><span class="hl-1"> </span><span class="hl-3"># runs all the tests</span><br/><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">build</span><span class="hl-1"> </span><span class="hl-3"># bundles the library</span>
19+
</code><button>Copy</button></pre>
20+
<p>There is a minimal sample application in the <code>sample</code> directory.</p>
21+
<a id="md:documentation" class="tsd-anchor"></a><h3><a href="#md:documentation">Documentation</a></h3><pre><code class="language-bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">build:docs</span><span class="hl-1"> </span><span class="hl-3"># bundles the documentation</span><br/><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">start:docs</span><span class="hl-1"> </span><span class="hl-3"># Serves the documentation</span>
22+
</code><button>Copy</button></pre>
23+
<p>We use <a href="https://docsify.js.org/">docsify</a> to serve the documentation landing page (<code>docs/README.md</code>) and <a href="https://typedoc.org/">typedoc</a> to generate the API documentation (<code>docs/types</code>).</p>
24+
<a id="md:publishing" class="tsd-anchor"></a><h3><a href="#md:publishing">Publishing</a></h3><pre><code class="language-bash"><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">version</span><br/><span class="hl-3"># after merging the new version to master</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">login</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">publish</span>
25+
</code><button>Copy</button></pre>
1726
</div></div>
1827
<div class="col-sidebar">
1928
<div class="page-menu">
@@ -36,7 +45,15 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon
3645
<ul>
3746
<li>
3847
<ul>
39-
<li><a href="#md:moneytree-link-javascript-sdk"><span>Moneytree <wbr/>Link <wbr/>Java<wbr/>Script SDK</span></a></li></ul></li></ul></div></details></div>
48+
<li><a href="#md:moneytree-link-javascript-sdk"><span>Moneytree <wbr/>Link <wbr/>Java<wbr/>Script SDK</span></a></li>
49+
<li>
50+
<ul>
51+
<li><a href="#md:for-sdk-users"><span>For SDK <wbr/>Users</span></a></li>
52+
<li><a href="#md:for-sdk-maintainers"><span>For SDK <wbr/>Maintainers</span></a></li>
53+
<li>
54+
<ul>
55+
<li><a href="#md:documentation"><span>Documentation</span></a></li>
56+
<li><a href="#md:publishing"><span>Publishing</span></a></li></ul></li></ul></li></ul></li></ul></div></details></div>
4057
<div class="site-menu">
4158
<nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>@moneytree/mt-link-javascript-sdk</span></a>
4259
<ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".">

0 commit comments

Comments
 (0)