Skip to content
uupaa edited this page May 15, 2016 · 22 revisions
  • add: $type(node, "Node") をサポートしました。 node が HTMLElement の場合に true を返します
  • add: .github ディレクトリを追加し GitHub template files をサポートしました。
  • change: WebModule 以下のプロパティ名の変更を行いました
    • これらの変更は git clone WebModule を行い npm run setup; npm run sync を実施すると取り込まれます
    • WebModule.publishWebModule.PUBLISH に変更しました
    • WebModule.verifyWebModule.VERIFY に変更しました
    • WebModule.verboseWebModule.VERBOSE に変更しました
  • add: function moduleClosure の引数を追加し、WebModule VERIFY そして 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 で起動するテストの成功で 🍺 を、失敗で 👻 を表示するようにしました