Skip to content

Commit b23ca13

Browse files
committed
update
1 parent bb4cf3d commit b23ca13

File tree

11 files changed

+54
-25
lines changed

11 files changed

+54
-25
lines changed

.github/workflows/node.js.yml

+29-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
strategy:
1817
matrix:
19-
node-version: [18.x, 20.x, 22.x]
18+
node-version: [20.x, 21.x, 22.x]
2019
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2120

2221
steps:
@@ -29,3 +28,31 @@ jobs:
2928
- run: npm ci
3029
- run: npm run build --if-present
3130
- run: npm test
31+
32+
publish:
33+
runs-on: ubuntu-latest
34+
needs: build # Wait for build to complete
35+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
- name: Use Node.js 20.x
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: "20.x"
43+
cache: "npm"
44+
- run: npm install
45+
- run: npm run build
46+
47+
- name: Authenticate with npm
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
51+
52+
- name: Run npm publish dry run
53+
run: npm run npm:publish:dry-run
54+
55+
- name: Publish to npm
56+
env:
57+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58+
run: npm run npm:publish

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ npm i @puremvc/puremvc-typescript-multicore-framework
2424
* [React Native](https://en.wikipedia.org/wiki/React_Native)
2525

2626
## Status
27-
Production - [Version 2.0.0](https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/VERSION)
27+
Production - [Version 2.0.1](https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/VERSION)
2828

2929
## License
3030
* PureMVC MultiCore Framework for TypeScript - Copyright © 2024 [Saad Shams](https://www.linkedin.com/in/muizz)

VERSION

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
PureMVC MultiCore Framework for TypeScript
22
--------------------------------------------------------------------------
3-
Release Date: 8/28/24
3+
Release Date: 11/03/24
44
Platform: TypeScript
55
Version: 2
66
Revision: 0
7-
Minor: 0
7+
Minor: 1
88
Authors: Saad Shams <[email protected]>
99
--------------------------------------------------------------------------
10-
2.0 - Brand new implementation of ported code, equivalent to AS3 MultiCore Version 1.0.5.
10+
2.0.0 - Brand new implementation of ported code, equivalent to AS3 MultiCore Version 1.0.5.
11+
2.0.1 - CI/CD Pipeline

bin/cjs/patterns/mediator/Mediator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class Mediator extends Notifier_1.Notifier {
3030
this._viewComponent = viewComponent;
3131
}
3232
/**
33-
* Called by the View when the Mediator is registered *
33+
* Called by the View when the Mediator is registered
3434
*
3535
* @returns {void}
3636
*/
3737
onRegister() {
3838
}
3939
/**
40-
* Called by the View when the Mediator is removed *
40+
* Called by the View when the Mediator is removed
4141
*
4242
* @returns {void}
4343
*/

bin/esm/patterns/mediator/Mediator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export class Mediator extends Notifier {
2727
this._viewComponent = viewComponent;
2828
}
2929
/**
30-
* Called by the View when the Mediator is registered *
30+
* Called by the View when the Mediator is registered
3131
*
3232
* @returns {void}
3333
*/
3434
onRegister() {
3535
}
3636
/**
37-
* Called by the View when the Mediator is removed *
37+
* Called by the View when the Mediator is removed
3838
*
3939
* @returns {void}
4040
*/

bin/types/patterns/mediator/Mediator.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ export declare class Mediator extends Notifier implements IMediator {
2727
*/
2828
constructor(name?: string, viewComponent?: any);
2929
/**
30-
* Called by the View when the Mediator is registered *
30+
* Called by the View when the Mediator is registered
3131
*
3232
* @returns {void}
3333
*/
3434
onRegister(): void;
3535
/**
36-
* Called by the View when the Mediator is removed *
36+
* Called by the View when the Mediator is removed
3737
*
3838
* @returns {void}
3939
*/

package-lock.json

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@puremvc/puremvc-typescript-multicore-framework",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "PureMVC MultiCore Framework for TypeScript",
55
"main": "bin/cjs/index.js",
66
"module": "bin/esm/index.js",
@@ -59,6 +59,6 @@
5959
"jest": "^29.7.0",
6060
"ts-jest": "^29.1.1",
6161
"typedoc": "^0.26.6",
62-
"typescript": "^5.3.2"
62+
"typescript": "^5.6.3"
6363
}
6464
}

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export type {IFacade} from "./interfaces/IFacade";
1414
export type {IMediator} from "./interfaces/IMediator";
1515
export type {INotification} from "./interfaces/INotification";
1616
export type {INotifier} from "./interfaces/INotifier";
17-
export type {IObserver} from "./interfaces/IObserver"
18-
export type {IProxy} from "./interfaces/IProxy"
17+
export type {IObserver} from "./interfaces/IObserver";
18+
export type {IProxy} from "./interfaces/IProxy";
1919

2020
export {Controller} from "./core/Controller";
2121
export {Model} from "./core/Model";

src/patterns/command/MacroCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export class MacroCommand extends SimpleCommand {
109109
const factory: (() => ICommand) | undefined = this.subCommands.shift();
110110
const command: ICommand | undefined = factory?.();
111111
if (command) {
112-
command.initializeNotifier(this.multitonKey);
113-
command.execute(notification);
112+
command.initializeNotifier(this.multitonKey);
113+
command.execute(notification);
114114
}
115115
}
116116
}

src/patterns/mediator/Mediator.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Mediator extends Notifier implements IMediator {
4545
}
4646

4747
/**
48-
* Called by the View when the Mediator is registered *
48+
* Called by the View when the Mediator is registered
4949
*
5050
* @returns {void}
5151
*/
@@ -54,7 +54,7 @@ export class Mediator extends Notifier implements IMediator {
5454
}
5555

5656
/**
57-
* Called by the View when the Mediator is removed *
57+
* Called by the View when the Mediator is removed
5858
*
5959
* @returns {void}
6060
*/

0 commit comments

Comments
 (0)