@logux/client
Advanced tools
Comparing version 0.6.0 to 0.7.0
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.7 | ||
* Add ES modules support. | ||
* Add TypeScript definitions. | ||
* Move API docs from JSDoc to TypeDoc. | ||
* Mark package as side effect free. | ||
## 0.6 | ||
@@ -5,0 +11,0 @@ * Do not synchronize event cleaning between tabs. |
38
index.js
@@ -1,19 +0,23 @@ | ||
var CrossTabClient = require('./cross-tab-client') | ||
var attention = require('./attention') | ||
var confirm = require('./confirm') | ||
var favicon = require('./favicon') | ||
var Client = require('./client') | ||
var status = require('./status') | ||
var badge = require('./badge') | ||
var log = require('./log') | ||
import { badge, badgeRu, badgeEn } from './badge/index.js' | ||
import { CrossTabClient } from './cross-tab-client/index.js' | ||
import { IndexedStore } from './indexed-store/index.js' | ||
import { attention } from './attention/index.js' | ||
import { confirm } from './confirm/index.js' | ||
import { favicon } from './favicon/index.js' | ||
import { Client } from './client/index.js' | ||
import { status } from './status/index.js' | ||
import { log } from './log/index.js' | ||
module.exports = { | ||
CrossTabClient: CrossTabClient, | ||
attention: attention, | ||
confirm: confirm, | ||
favicon: favicon, | ||
Client: Client, | ||
status: status, | ||
badge: badge, | ||
log: log | ||
export { | ||
CrossTabClient, | ||
IndexedStore, | ||
attention, | ||
confirm, | ||
badgeRu, | ||
badgeEn, | ||
favicon, | ||
Client, | ||
status, | ||
badge, | ||
log | ||
} |
{ | ||
"name": "@logux/client", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Logux base components to build web client", | ||
@@ -16,15 +16,80 @@ "keywords": [ | ||
"repository": "logux/client", | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
}, | ||
"dependencies": { | ||
"@logux/core": "^0.3.5", | ||
"@logux/core": "^0.4.0", | ||
"browser-supports-log-styles": "^1.1.7", | ||
"nanoevents": "^2.0.0", | ||
"nanoid": "^2.1.11" | ||
"nanoevents": "^5.1.5", | ||
"nanoid": "^3.0.2" | ||
}, | ||
"eslintIgnore": [ | ||
"test/demo/build" | ||
"size-limit2": [ | ||
{ | ||
"path": "./client/index.js", | ||
"import": "{ Client }", | ||
"limit": "9 KB" | ||
} | ||
], | ||
"sharec": { | ||
"config": "@logux/sharec-config", | ||
"version": "0.5.7" | ||
"type": "module", | ||
"main": "index.cjs", | ||
"module": "index.js", | ||
"react-native": "index.js", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"require": "./index.cjs", | ||
"import": "./index.js" | ||
}, | ||
"./attention/package.json": "./attention/package.json", | ||
"./attention": { | ||
"require": "./attention/index.cjs", | ||
"import": "./attention/index.js" | ||
}, | ||
"./badge/package.json": "./badge/package.json", | ||
"./badge": { | ||
"require": "./badge/index.cjs", | ||
"import": "./badge/index.js" | ||
}, | ||
"./client/package.json": "./client/package.json", | ||
"./client": { | ||
"require": "./client/index.cjs", | ||
"import": "./client/index.js" | ||
}, | ||
"./confirm/package.json": "./confirm/package.json", | ||
"./confirm": { | ||
"require": "./confirm/index.cjs", | ||
"import": "./confirm/index.js" | ||
}, | ||
"./cross-tab-client/package.json": "./cross-tab-client/package.json", | ||
"./cross-tab-client": { | ||
"require": "./cross-tab-client/index.cjs", | ||
"import": "./cross-tab-client/index.js" | ||
}, | ||
"./favicon/package.json": "./favicon/package.json", | ||
"./favicon": { | ||
"require": "./favicon/index.cjs", | ||
"import": "./favicon/index.js" | ||
}, | ||
"./indexed-store/package.json": "./indexed-store/package.json", | ||
"./indexed-store": { | ||
"require": "./indexed-store/index.cjs", | ||
"import": "./indexed-store/index.js" | ||
}, | ||
"./log/package.json": "./log/package.json", | ||
"./log": { | ||
"require": "./log/index.cjs", | ||
"import": "./log/index.js" | ||
}, | ||
"./status/package.json": "./status/package.json", | ||
"./status": { | ||
"require": "./status/index.cjs", | ||
"import": "./status/index.js" | ||
}, | ||
"./badge/styles/package.json": "./badge/styles/package.json", | ||
"./badge/styles": { | ||
"require": "./badge/styles/index.cjs", | ||
"import": "./badge/styles/index.js" | ||
} | ||
} | ||
} | ||
} |
@@ -46,7 +46,4 @@ # Logux Client [![Cult Of Martians][cult-img]][cult] | ||
```js | ||
import CrossTabClient from '@logux/client/cross-tab-client' | ||
import messages from '@logux/client/badge/en' | ||
import styles from '@logux/client/badge/default' | ||
import badge from '@logux/client/badge' | ||
import log from '@logux/client/log' | ||
import { CrossTabClient, badge, badgeEn, log } from '@logux/client' | ||
import { badgeStyles } from '@logux/client/badge/style' | ||
@@ -63,3 +60,3 @@ let userId = document.querySelector('meta[name=user]').content | ||
badge(client, { messages, styles }) | ||
badge(client, { messages: badgeEn, styles: badgeStyles }) | ||
log(client) | ||
@@ -66,0 +63,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103090
51
3120
Yes
66
5
1
+ Added@logux/core@0.4.2(transitive)
+ Addednanoevents@5.1.13(transitive)
+ Addednanoid@3.3.8(transitive)
- Removed@logux/core@0.3.5(transitive)
- Removednanoevents@2.0.0(transitive)
- Removednanoid@2.1.11(transitive)
Updated@logux/core@^0.4.0
Updatednanoevents@^5.1.5
Updatednanoid@^3.0.2