From f072a4d442fb28e9a4ede9c6f2c1e91ea8729be1 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Wed, 21 Dec 2022 11:14:35 +0900 Subject: [PATCH] Typescript, types & template helper name --- accounts-line/CHANGELOG.md | 4 ++++ accounts-line/{line.js => line.ts} | 0 accounts-line/main.ts | 2 ++ accounts-line/{notice.js => notice.ts} | 0 accounts-line/package-types.json | 3 +++ accounts-line/package.js | 11 ++++++----- line-config-ui/CHANGELOG.md | 4 ++++ line-config-ui/line_configure.html | 2 +- .../{line_configure.js => line_configure.ts} | 4 ++-- line-config-ui/main.ts | 1 + line-config-ui/package-types.json | 3 +++ line-config-ui/package.js | 11 ++++++----- line-oauth/CHANGELOG.md | 1 + line-oauth/{line_client.js => line_client.ts} | 0 line-oauth/{line_server.js => line_server.ts} | 0 line-oauth/main.ts | 2 ++ line-oauth/package-types.json | 3 +++ line-oauth/package.js | 7 ++++--- 18 files changed, 42 insertions(+), 16 deletions(-) rename accounts-line/{line.js => line.ts} (100%) create mode 100644 accounts-line/main.ts rename accounts-line/{notice.js => notice.ts} (100%) create mode 100644 accounts-line/package-types.json rename line-config-ui/{line_configure.js => line_configure.ts} (65%) create mode 100644 line-config-ui/main.ts create mode 100644 line-config-ui/package-types.json rename line-oauth/{line_client.js => line_client.ts} (100%) rename line-oauth/{line_server.js => line_server.ts} (100%) create mode 100644 line-oauth/main.ts create mode 100644 line-oauth/package-types.json diff --git a/accounts-line/CHANGELOG.md b/accounts-line/CHANGELOG.md index 0a8ba44..2c00cef 100755 --- a/accounts-line/CHANGELOG.md +++ b/accounts-line/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## 1.3.0 - 2022-12-21 +* Typescript re-write +* Add `zodern:types` for type support + ## 1.2.3 - 2021-06-24 * Compatibility fix for Meteor 2.3 diff --git a/accounts-line/line.js b/accounts-line/line.ts similarity index 100% rename from accounts-line/line.js rename to accounts-line/line.ts diff --git a/accounts-line/main.ts b/accounts-line/main.ts new file mode 100644 index 0000000..fbbaa56 --- /dev/null +++ b/accounts-line/main.ts @@ -0,0 +1,2 @@ +import './line' +import './notice' diff --git a/accounts-line/notice.js b/accounts-line/notice.ts similarity index 100% rename from accounts-line/notice.js rename to accounts-line/notice.ts diff --git a/accounts-line/package-types.json b/accounts-line/package-types.json new file mode 100644 index 0000000..f7aa7ea --- /dev/null +++ b/accounts-line/package-types.json @@ -0,0 +1,3 @@ +{ + "typesEntry": "main.ts" +} diff --git a/accounts-line/package.js b/accounts-line/package.js index b30c2d8..047284f 100755 --- a/accounts-line/package.js +++ b/accounts-line/package.js @@ -1,13 +1,14 @@ Package.describe({ name: 'storyteller:accounts-line', summary: 'Login service for LINE accounts', - version: '1.2.3', + version: '1.3.0', git: 'https://github.com/StorytellerCZ/meteor-accounts-line' }); Package.onUse(api => { - api.versionsFrom(['1.12', '2.3']); - api.use('ecmascript'); + api.versionsFrom('2.3'); + api.use(['ecmascript', 'typescript']); + api.use('zodern:types') api.use('accounts-base', ['client', 'server']); // Export Accounts (etc) to packages using this one. api.imply('accounts-base', ['client', 'server']); @@ -17,7 +18,7 @@ Package.onUse(api => { // If users use accounts-ui but not facebook-config-ui, give them a tip. api.use(['accounts-ui', 'storyteller:line-config-ui@1.1.2'], ['client', 'server'], { weak: true }); - api.addFiles('notice.js'); + api.addFiles('notice.ts'); - api.addFiles('line.js'); + api.addFiles('line.ts'); }); diff --git a/line-config-ui/CHANGELOG.md b/line-config-ui/CHANGELOG.md index 34c1d1c..02ed3db 100755 --- a/line-config-ui/CHANGELOG.md +++ b/line-config-ui/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## 1.2.0 - 2022-12-21 +* Typescript +* `zodern:types` added +* Fix helper names ## 1.1.2 - 2021-06-24 * Update dependencies diff --git a/line-config-ui/line_configure.html b/line-config-ui/line_configure.html index 52d8b59..5b981d1 100644 --- a/line-config-ui/line_configure.html +++ b/line-config-ui/line_configure.html @@ -1,4 +1,4 @@ -