Skip to content

Commit

Permalink
v0.4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-sky committed Dec 12, 2018
1 parent 2eb43ec commit 2906a15
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## [v0.4.15] 2018.12.12

* 🌟 新增`nj.buildRender``nj.buildRenderH`方法,用于预编译各`tagged template literal`功能时使用。
* 🐞 修复runtime包缺少`nj.getComponentConfig`方法。

## [v0.4.14] 2018.12.05

* 🐞 修复`for`标签bug。
Expand Down
5 changes: 5 additions & 0 deletions dist/nornj.runtime.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ function registerComponent(name, component, options) {
return ret;
}

function getComponentConfig(name) {
return nj.componentConfig[isString(name) ? name : name._njComponentName];
}

function config (configs) {
var createElement = configs.createElement,
outputH = configs.outputH;
Expand Down Expand Up @@ -1572,6 +1576,7 @@ assign(nj, {

assign(nj, {
registerComponent: registerComponent,
getComponentConfig: getComponentConfig,
config: config
});

Expand Down
5 changes: 5 additions & 0 deletions dist/nornj.runtime.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ function registerComponent(name, component, options) {
return ret;
}

function getComponentConfig(name) {
return nj.componentConfig[isString(name) ? name : name._njComponentName];
}

function config (configs) {
var createElement = configs.createElement,
outputH = configs.outputH;
Expand Down Expand Up @@ -1568,6 +1572,7 @@ assign(nj, {

assign(nj, {
registerComponent: registerComponent,
getComponentConfig: getComponentConfig,
config: config
});

Expand Down
5 changes: 5 additions & 0 deletions dist/nornj.runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ function registerComponent(name, component, options) {
return ret;
}

function getComponentConfig(name) {
return nj.componentConfig[isString(name) ? name : name._njComponentName];
}

function config (configs) {
var createElement = configs.createElement,
outputH = configs.outputH;
Expand Down Expand Up @@ -1574,6 +1578,7 @@ assign(nj, {

assign(nj, {
registerComponent: registerComponent,
getComponentConfig: getComponentConfig,
config: config
});

Expand Down
2 changes: 1 addition & 1 deletion dist/nornj.runtime.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions packages/babel-plugin-nornj-in-jsx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# CHANGELOG

## [v0.4.11] 2018.11.29
## [v0.4.11] 2018.12.12

* 🌟 `NornJ`的所有`Tagged template literals`功能均支持模板预编译。
* 🌟 `NornJ`的所有`Tagged template literal`功能均支持模板预编译。
* 🌟 增加`imports`参数,用于修复`babel-plugin-import`在某些使用场景的局限。

## [v0.4.10] 2018.10.17

Expand Down
8 changes: 4 additions & 4 deletions packages/babel-plugin-nornj-in-jsx/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/babel-plugin-nornj-in-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"babel-core": "^6.1.2",
"babel-plugin-syntax-jsx": "^6.1.18",
"nornj": "^0.4.13",
"nornj": "^0.4.15",
"nornj-react": "^0.4.5"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/base.runtime.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import nj from './core';
import { assign } from './utils/tools';
import registerComponent from './utils/registerComponent';
import registerComponent, { getComponentConfig } from './utils/registerComponent';
import config from './config.runtime';
import './utils/escape';

assign(nj, {
registerComponent,
getComponentConfig,
config
});

Expand Down

0 comments on commit 2906a15

Please sign in to comment.