singleton-manager
Advanced tools
Comparing version 1.3.0 to 1.4.0
# Change Log | ||
## 1.4.0 | ||
### Minor Changes | ||
- f3e54c56: Publish documentation with a format for Rocket | ||
## 1.3.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "singleton-manager", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Manage singletons across multiple major versions so they converge to a single instance", | ||
@@ -26,7 +26,7 @@ "license": "MIT", | ||
"scripts": { | ||
"custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", | ||
"debug": "cd ../../ && npm run debug -- --group singleton-manager", | ||
"debug:firefox": "cd ../../ && npm run debug:firefox -- --group singleton-manager", | ||
"debug:webkit": "cd ../../ && npm run debug:webkit -- --group singleton-manager", | ||
"prepublishOnly": "../../scripts/npm-prepublish.js", | ||
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../", | ||
"prepublishOnly": "npm run publish-docs", | ||
"start:fail": "es-dev-server -c demo/fail/server.js", | ||
@@ -45,4 +45,6 @@ "start:singleton": "es-dev-server -c demo/singleton/server.js", | ||
}, | ||
"exports": "./index.js", | ||
"customElementsManifest": "custom-elements.json" | ||
} | ||
"exports": { | ||
".": "./index.js", | ||
"./docs/": "./docs/" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# Singleton Manager | ||
# Tools >> Singleton Manager >> Overview ||10 | ||
@@ -6,6 +6,4 @@ A singleton manager provides a way to make sure a singleton instance loaded from multiple file locations stays a singleton. | ||
## How to use | ||
## Installation | ||
### Installation | ||
```bash | ||
@@ -15,3 +13,3 @@ npm i --save singleton-manager | ||
⚠️ You need to make SURE that only ONE version of `singleton-manager` is installed. For how see [Non Goals](#non-goals). | ||
⚠️ You need to make SURE that only ONE version of `singleton-manager` is installed. For how see [Non Goals](https://github.com/ing-bank/lion/blob/6f2b6f940a0875091f1d940f45f0cd32dffce9ac/docs/docs/tools/singleton-manager/#non-goals). | ||
@@ -118,11 +116,11 @@ ### Example Singleton Users | ||
```txt | ||
```markdown | ||
my-app (node_modules) | ||
├── overlays (1.x) | ||
├── page-a | ||
│ └── page-a.js | ||
│ └── page-a.js | ||
└── page-b | ||
├── node_modules | ||
│ └── overlays (2.x) | ||
└── page-b.js | ||
├── node_modules | ||
│ └── overlays (2.x) | ||
└── page-b.js | ||
``` | ||
@@ -167,3 +165,4 @@ | ||
See [the code](https://github.com/ing-bank/lion/blob/master/packages/singleton-manager/demo/fail/demo-app.js). | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/6f2b6f940a0875091f1d940f45f0cd32dffce9ac/docs/docs/tools/singleton-manager/example-fail/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/docs/tools/singleton-manager/example-fail/demo-app.js). | ||
@@ -210,3 +209,4 @@ --- | ||
and [the code](https://github.com/ing-bank/lion/blob/master/packages/singleton-manager/demo/singleton/demo-app.js). | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/6f2b6f940a0875091f1d940f45f0cd32dffce9ac/docs/docs/tools/singleton-manager/example-success/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/docs/tools/singleton-manager/example-success/demo-app.js). | ||
@@ -251,3 +251,4 @@ --- | ||
and [the code](https://github.com/ing-bank/lion/blob/master/packages/singleton-manager/demo/singleton-complex/demo-app.js). | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/6f2b6f940a0875091f1d940f45f0cd32dffce9ac/docs/docs/tools/singleton-manager/example-complex/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/docs/tools/singleton-manager/example-complex/demo-app.js). | ||
@@ -279,3 +280,3 @@ --- | ||
```txt | ||
```markdown | ||
my-app | ||
@@ -289,5 +290,5 @@ ├─┬ feat-a@x | ||
dedupe works by moving dependencies up the tree | ||
Dedupe works by moving dependencies up the tree | ||
```txt | ||
```markdown | ||
// this app | ||
@@ -312,7 +313,1 @@ my-app | ||
you can "hard" code it to the same versions. | ||
```js script | ||
export default { | ||
title: 'Others/SingletonManager', | ||
}; | ||
``` |
import { expect } from '@open-wc/testing'; | ||
import { SingletonManagerClass } from '../src/SingletonManagerClass.js'; | ||
import { SingletonManagerClass } from 'singleton-manager'; | ||
@@ -5,0 +5,0 @@ describe('SingletonManagerClass', () => { |
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
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
25308
85
305