-
Notifications
You must be signed in to change notification settings - Fork 8
ChangeLog
uupaa edited this page May 15, 2016
·
22 revisions
- fix #17
- add:
$type(node, "Node")をサポートしました。nodeが HTMLElement の場合に true を返します
- add:
.githubディレクトリを追加し GitHub template files をサポートしました。-
.github/CONTRIBUTING.md,.github/CONTRIBUTORS.md,.github/ISSUE_TEMPLATE.md,.github/PULL_REQUEST_TEMPLATE.mdを追加しています - これらのファイルの使い方は、以下のエントリを参照してください
-
- change: WebModule 以下のプロパティ名の変更を行いました
- これらの変更は
git clone WebModuleを行いnpm run setup; npm run syncを実施すると取り込まれます -
WebModule.publishをWebModule.PUBLISHに変更しました -
WebModule.verifyをWebModule.VERIFYに変更しました -
WebModule.verboseをWebModule.VERBOSEに変更しました
- これらの変更は
- add: function moduleClosure の引数を追加し、
WebModuleVERIFYそしてVERBOSEを渡すようにしました- これまで
function moduleClosure(global) { ... } - これから
function moduleClosure(global, WebModule, VERIFY, VERBOSE) { ... }
- これまで
moduleClosure の引数追加により、 ver VERIFY ... と ver VERBOSE ... の行は不要になりました。必要に応じて修正を行ってください。
// --- define / local variables ----------------------------
// var VERIFY = global["WebModule"]["verify"] || false;
// var VERBOSE = global["WebModule"]["verbose"] || false;- add: Electron のサポートを開始しました。Electron で true になるグローバル変数 GLOBAL.IN_EL を追加しました
- add: GLOBAL.IN_xxx 系のコードを読み解くためのヒント を追加しました
- change: Electron サポートに伴い、test/ ディレクトリ以下の構成を変更しました
## before (version 0.5.30)
▾ test/
▾ template/ -> remove
browser.html -> rename to test/browser/template/index.html
node.js -> rename to test/node/template/index.js
nw.html -> rename to test/nw/template/index.html
nw.package.json -> rename to test/nw/template/package.json
worker.js -> rename to test/browser/template/worker.js
index.html -> rename to test/browser/index.html
node.js -> rename to test/node/index.js
nw.html -> rename to test/nw/index.html
package.json -> rename to test/nw/package.json
testcase.js -> stay
wmtools.js -> stay
worker.js -> rename to test/browser/worker.js
## after (version 0.6.0)
▾ test/
▾ browser/
▸ template/ -> add
index.html
worker.js
▾ el/
▾ template/ -> add
index.html -> add
index.html -> add
main.js -> add
package.json -> add
▾ node/
▾ template/ -> add
index.js
index.js
▾ nw/
▾ template/ -> add
index.html
index.html
package.json
testcase.js
wmtools.js
- add: 名前空間のサポート、グローバル空間へのエクスポート機能を追加しました
- GLOBAL.WebModule.publish = true; を実行してからモジュール Foo を読み込むと、GLOBAL.WebModule.Foo の他に GLOBAL.Foo が生成されます
- GLOBAL.WebModule.publish の初期値は false です。
- v0.7.0 以降では GLOBAL.WebModule.publish は GLOBAL.WebModule.PUBLISH に変更されました
- fix:
npm run simで iOS シミュレータが起動しない事がある不具合を修正しました
- joy:
npm tで起動するテストの成功で 🍺 を、失敗で 👻 を表示するようにしました