Comparing version 0.2.86 to 0.2.87
@@ -6,5 +6,5 @@ import { fromAtom, sidechainPartition, fromRAF } from "@thi.ng/rstream"; | ||
import { getInUnsafe } from "@thi.ng/paths"; | ||
import { $$_LOAD, $$_PATH, $$_ROOT, $$_VIEW, URL_PRSE, ROUTER_PRFX, CFG_RUTR, CFG_RUN$, CFG_STOR, CFG_ROOT, CFG_VIEW, CFG_DRFT, CFG_LOG$, CFG_KICK, } from "@-0/keys"; | ||
import { $$_LOAD, $$_PATH, $$_ROOT, $$_VIEW, URL_PRSE, ROUTER_PRFX, CFG_RUTR, CFG_RUN$, CFG_STOR, CFG_ROOT, CFG_VIEW, CFG_DRFT, CFG_LOG$, CFG_KICK } from "@-0/keys"; | ||
import { run$ } from "@-0/spool"; | ||
import { parse, diff_keys } from "@-0/utils"; | ||
import { URL2obj, diff_keys } from "@-0/utils"; | ||
import { registerRouterDOM, DOMnavigated$, $store$ } from "@-0/browser"; | ||
@@ -44,3 +44,3 @@ const pre = (ctx, body) => (console.log(` | ||
span: false, | ||
ctx: Object.assign({ [CFG_RUN$]: x => run$.next(x), [CFG_STOR]: $store$, [URL_PRSE]: () => parse(window.location.href, RGX) }, others) | ||
ctx: Object.assign({ [CFG_RUN$]: x => run$.next(x), [CFG_STOR]: $store$, [URL_PRSE]: () => URL2obj(window.location.href, RGX) }, others) | ||
})); | ||
@@ -47,0 +47,0 @@ if (kick) { |
154
package.json
{ | ||
"name": "@-0/hdom", | ||
"author": "Logan Powell", | ||
"license": "MIT", | ||
"version": "0.2.86", | ||
"description": "DOM target provided by http://thi.ng/hdom", | ||
"main": "./lib/index.js", | ||
"type": "module", | ||
"types": "./lib/index.d.ts", | ||
"repository": "https://github.com/subs0/hdom", | ||
"homepage": "https://github.com/subs0/hdom", | ||
"scripts": { | ||
"madge": "madge --circular lib/", | ||
"typewatch": "tsc --project tsconfig.json", | ||
"types": "tsc --project tsconfig.build.json", | ||
"tests": "npm run madge && concurrently \"npm run typewatch\" \"jest --watchAll\"", | ||
"jsdoc": "jsdoc -c jsdoc/jsdoc.json --verbose --debug", | ||
"pages": "gh-pages -d @-0/hdom", | ||
"docs": "npm run types && npm run jsdoc", | ||
"patch": "npm version patch && npm run docs && npm run pages && npm publish", | ||
"postgit": "git push origin master && npm run patch", | ||
"ncu": "ncu -u && npm i && npm audit fix", | ||
"git": "npm run ncu && git add . && git commit -m" | ||
}, | ||
"keywords": [ | ||
"thi.ng", | ||
"multiplex", | ||
"FRP" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"peerDependencies": { | ||
"@thi.ng/arrays": "^0.10.1", | ||
"@thi.ng/associative": "5.0.17", | ||
"@thi.ng/atom": "^4.1.27", | ||
"@thi.ng/rstream": "^5.1.0", | ||
"@thi.ng/checks": "^2.8.0", | ||
"@thi.ng/paths": "^4.1.13", | ||
"@thi.ng/transducers": "^7.5.8", | ||
"@thi.ng/transducers-hdom": "^2.0.80" | ||
}, | ||
"dependencies": { | ||
"@-0/keys": "^0.2.81", | ||
"@-0/utils": "^0.2.75", | ||
"@-0/spool": "^0.2.87", | ||
"@-0/browser": "^0.2.86" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-transform-modules-commonjs": "^7.12.1", | ||
"@thi.ng/arrays": "^0.10.1", | ||
"@thi.ng/associative": "5.0.17", | ||
"@thi.ng/atom": "^4.1.27", | ||
"@thi.ng/rstream": "^5.1.0", | ||
"@thi.ng/checks": "^2.8.0", | ||
"@thi.ng/paths": "^4.1.13", | ||
"@thi.ng/transducers": "^7.5.8", | ||
"@thi.ng/transducers-hdom": "^2.0.80", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^14.14.22", | ||
"@typescript-eslint/eslint-plugin": "^4.14.1", | ||
"@typescript-eslint/parser": "^4.14.1", | ||
"babel-jest": "^26.6.3", | ||
"better-docs": "^2.3.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^7.18.0", | ||
"gh-pages": "^3.1.0", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"ts-jest": "^26.4.4" | ||
}, | ||
"prettier": { | ||
"singleQuote": false, | ||
"printWidth": 100, | ||
"endOfLine": "lf", | ||
"tabWidth": 2, | ||
"semi": false | ||
} | ||
"name": "@-0/hdom", | ||
"author": "Logan Powell", | ||
"license": "MIT", | ||
"version": "0.2.87", | ||
"description": "DOM target provided by http://thi.ng/hdom", | ||
"main": "./lib/index.js", | ||
"type": "module", | ||
"types": "./lib/index.d.ts", | ||
"repository": "https://github.com/subs0/hdom", | ||
"homepage": "https://github.com/subs0/hdom", | ||
"scripts": { | ||
"madge": "madge --circular lib/", | ||
"typewatch": "tsc --project tsconfig.json", | ||
"types": "tsc --project tsconfig.build.json", | ||
"tests": "npm run madge && concurrently \"npm run typewatch\" \"jest --watchAll\"", | ||
"jsdoc": "jsdoc -c jsdoc/jsdoc.json --verbose --debug", | ||
"pages": "gh-pages -d @-0/hdom", | ||
"docs": "npm run types && npm run jsdoc", | ||
"patch": "npm version patch && npm run docs && npm run pages && npm publish", | ||
"postgit": "git push origin master && npm run patch", | ||
"ncu": "ncu -u && npm i && npm audit fix", | ||
"git": "git add . && git commit -m" | ||
}, | ||
"keywords": [ | ||
"thi.ng", | ||
"multiplex", | ||
"FRP" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"peerDependencies": { | ||
"@thi.ng/arrays": "^0.10.1", | ||
"@thi.ng/associative": "5.0.17", | ||
"@thi.ng/atom": "^4.1.27", | ||
"@thi.ng/rstream": "^5.1.0", | ||
"@thi.ng/checks": "^2.8.0", | ||
"@thi.ng/paths": "^4.1.13", | ||
"@thi.ng/transducers": "^7.5.8", | ||
"@thi.ng/transducers-hdom": "^2.0.80" | ||
}, | ||
"dependencies": { | ||
"@-0/keys": "^0.2.84", | ||
"@-0/utils": "^0.2.81", | ||
"@-0/spool": "^0.2.91", | ||
"@-0/browser": "^0.2.89" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-transform-modules-commonjs": "^7.12.1", | ||
"@thi.ng/arrays": "^0.10.1", | ||
"@thi.ng/associative": "5.0.17", | ||
"@thi.ng/atom": "^4.1.27", | ||
"@thi.ng/rstream": "^5.1.0", | ||
"@thi.ng/checks": "^2.8.0", | ||
"@thi.ng/paths": "^4.1.13", | ||
"@thi.ng/transducers": "^7.5.8", | ||
"@thi.ng/transducers-hdom": "^2.0.80", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^14.14.22", | ||
"@typescript-eslint/eslint-plugin": "^4.14.1", | ||
"@typescript-eslint/parser": "^4.14.1", | ||
"babel-jest": "^26.6.3", | ||
"better-docs": "^2.3.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^7.18.0", | ||
"gh-pages": "^3.1.0", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"ts-jest": "^26.5.0" | ||
}, | ||
"prettier": { | ||
"singleQuote": false, | ||
"printWidth": 100, | ||
"endOfLine": "lf", | ||
"tabWidth": 2, | ||
"semi": false | ||
} | ||
} |
@@ -359,3 +359,3 @@ # `spule` | ||
import { parse } from "spule" | ||
import { URL2obj } from "@-0/utils" | ||
@@ -366,3 +366,3 @@ ... | ||
- const args = path ? path.split("/") : []; | ||
+ const args = parse(path).URL_path | ||
+ const args = URL2obj(path).URL_path | ||
@@ -485,3 +485,3 @@ let [api, id] = args | ||
2>- |t0|---------a~~b~~~~~~~~~~~a~|--------> : task$ | ||
3>- |t1|---c-----------c------------a----c-> : command$ | ||
3>- |t1|---c-----------c------------a----c-> : cmd$ | ||
4>- ---|ps|c-----a--b--c--------a---a----c-> : out$ | ||
@@ -501,3 +501,3 @@ | ||
- `2>-`: pubsub = `false`? -> `task$` stream | ||
- `3>-`: pubsub = `true`? -> `command$` stream | ||
- `3>-`: pubsub = `true`? -> `cmd$` stream | ||
- `4>-`: pubsub emits to `registerCMD` based on `sub$` value | ||
@@ -526,3 +526,3 @@ | ||
Commands `next`ed into this stream are sent to the | ||
`command$` stream. Arrays of Commands (Tasks) are sent to | ||
`cmd$` stream. Arrays of Commands (Tasks) are sent to | ||
the `task$` stream. | ||
@@ -545,3 +545,3 @@ | ||
| URL_subdomain | subdomain as array | | ||
| URL_query | node querystring parsed URL parameters | | ||
| URL_query | node querystring URL2objd URL parameters | | ||
| URL_hash | hash string to/from URL if any | | ||
@@ -548,0 +548,0 @@ | URL_data | data returned by router | |
29177
12
119
Updated@-0/browser@^0.2.89
Updated@-0/keys@^0.2.84
Updated@-0/spool@^0.2.91
Updated@-0/utils@^0.2.81