@alwatr/dedupe 5.5.31 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +5 -0
- package/dist/main.js.map +10 -0
- package/package.json +41 -44
- package/src/main.ts +69 -0
- package/CHANGELOG.md +0 -432
- package/dist/main.cjs +0 -3
- package/dist/main.cjs.map +0 -7
- package/dist/main.mjs +0 -3
- package/dist/main.mjs.map +0 -7
package/dist/main.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/* 📦 @alwatr/dedupe v6.0.1 */
|
|
2
|
+
import{getGlobalThis as B}from"@alwatr/global-this";import{hasOwn as C}from"@alwatr/has-own";var j=B();if(typeof j.__alwatr_dedupe__>"u")j.__alwatr_dedupe__="6.0.1";else{if(j.__alwatr_dedupe__===!0)j.__alwatr_dedupe__="1.0.x";console.error(Error("duplication_detected",{cause:{name:"@alwatr/dedupe",oldVersion:j.__alwatr_dedupe__,newVersion:"6.0.1"}}))}var z={};function A(f){if(C(z,f.name)){let q=Error("duplication_detected",{cause:{name:f.name}});if(f.strict)throw q;else console.error(q)}z[f.name]=!0}A({name:"@alwatr/dedupe"});function F(f,q){console.warn("`definePackage` in `@alwatr/dedupe` is deprecated. Use `deduplicate` instead."),A({name:f})}export{F as definePackage,A as deduplicate};
|
|
3
|
+
|
|
4
|
+
//# debugId=8C55800879DE6B0464756E2164756E21
|
|
5
|
+
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/main.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import {getGlobalThis} from '@alwatr/global-this';\nimport {hasOwn} from '@alwatr/has-own';\n\nimport type {} from '@alwatr/nano-build';\nimport type {} from '@alwatr/type-helper';\n\nconst globalThis_ = getGlobalThis<{__alwatr_dedupe__: string | true}>();\n\nif (typeof globalThis_.__alwatr_dedupe__ === 'undefined') {\n globalThis_.__alwatr_dedupe__ = __package_version__;\n}\nelse {\n if (globalThis_.__alwatr_dedupe__ === true) {\n globalThis_.__alwatr_dedupe__ = '1.0.x';\n }\n\n console.error(\n new Error('duplication_detected', {\n cause: {\n name: __package_name__,\n oldVersion: globalThis_.__alwatr_dedupe__,\n newVersion: __package_version__,\n },\n }),\n );\n}\n\nconst list: DictionaryOpt<true> = {};\n\n/**\n * Prevent duplication in any entities like loading node packages.\n * @param name package name including scope. e.g. `@scope/package-name`\n * @param version package version (optional)\n *\n * @example\n * ```typescript\n * deduplicate({name: __package_name__, strict: true});\n * ```\n */\nexport function deduplicate(args: {name: string; strict?: true}): void {\n if (hasOwn(list, args.name)) {\n const error = new Error('duplication_detected', {\n cause: {\n name: args.name,\n },\n });\n\n if (args.strict) {\n throw error;\n }\n else {\n console.error(error);\n }\n }\n\n list[args.name] = true;\n}\n\ndeduplicate({name: __package_name__});\n\n/**\n * Old `definePackage` for backward compatibility.\n * @deprecated Use `deduplicate` instead.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function definePackage(packageName: string, _?: string): void {\n console.warn('`definePackage` in `@alwatr/dedupe` is deprecated. Use `deduplicate` instead.');\n deduplicate({name: packageName});\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";AAAA,wBAAQ,4BACR,iBAAQ,wBAKR,IAAM,EAAc,EAAkD,EAEtE,GAAI,OAAO,EAAY,kBAAsB,IAC3C,EAAY,kBAAoB,QAE7B,KACH,GAAI,EAAY,oBAAsB,GACpC,EAAY,kBAAoB,QAGlC,QAAQ,MACF,MAAM,uBAAwB,CAChC,MAAO,CACL,KAAM,iBACN,WAAY,EAAY,kBACxB,WAAY,OACd,CACF,CAAC,CACH,EAGF,IAAM,EAA4B,CAAC,EAY5B,SAAS,CAAW,CAAC,EAA2C,CACrE,GAAI,EAAO,EAAM,EAAK,IAAI,EAAG,CAC3B,IAAM,EAAY,MAAM,uBAAwB,CAC9C,MAAO,CACL,KAAM,EAAK,IACb,CACF,CAAC,EAED,GAAI,EAAK,OACP,MAAM,EAGN,aAAQ,MAAM,CAAK,EAIvB,EAAK,EAAK,MAAQ,GAGpB,EAAY,CAAC,KAAM,gBAAgB,CAAC,EAO7B,SAAS,CAAa,CAAC,EAAqB,EAAkB,CACnE,QAAQ,KAAK,+EAA+E,EAC5F,EAAY,CAAC,KAAM,CAAW,CAAC",
|
|
8
|
+
"debugId": "8C55800879DE6B0464756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,34 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/dedupe",
|
|
3
|
+
"version": "6.0.1",
|
|
3
4
|
"description": "A package manager helper tool for debug list of defined (imported) packages in your ecosystem and prevent to duplicate import (install) multiple versions of the same package in your project (deduplicate packages).",
|
|
4
|
-
"
|
|
5
|
+
"license": "MPL-2.0",
|
|
5
6
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"repository": {
|
|
9
|
+
"directory": "packages/dedupe",
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/Alwatr/nanolib"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/dedupe#readme",
|
|
6
14
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/main.d.ts",
|
|
18
|
+
"default": "./dist/main.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"sideEffects": true,
|
|
7
22
|
"dependencies": {
|
|
8
|
-
"@alwatr/global-this": "
|
|
9
|
-
"@alwatr/has-own": "
|
|
23
|
+
"@alwatr/global-this": "6.0.1",
|
|
24
|
+
"@alwatr/has-own": "6.0.1"
|
|
10
25
|
},
|
|
11
26
|
"devDependencies": {
|
|
12
|
-
"@alwatr/nano-build": "
|
|
13
|
-
"@alwatr/prettier-config": "
|
|
14
|
-
"@alwatr/tsconfig-base": "
|
|
15
|
-
"@alwatr/type-helper": "
|
|
27
|
+
"@alwatr/nano-build": "7.0.1",
|
|
28
|
+
"@alwatr/prettier-config": "7.0.1",
|
|
29
|
+
"@alwatr/tsconfig-base": "8.0.0",
|
|
30
|
+
"@alwatr/type-helper": "8.0.1",
|
|
16
31
|
"typescript": "^5.9.3"
|
|
17
32
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
"scripts": {
|
|
34
|
+
"b": "bun run build",
|
|
35
|
+
"build": "bun run build:ts && bun run build:es",
|
|
36
|
+
"build:es": "nano-build --preset=module src/main.ts",
|
|
37
|
+
"build:ts": "tsc --build",
|
|
38
|
+
"c": "bun run clean",
|
|
39
|
+
"cb": "bun run clean && bun run build",
|
|
40
|
+
"clean": "rm -rfv dist *.tsbuildinfo",
|
|
41
|
+
"d": "bun run build:es && DEBUG=1 bun",
|
|
42
|
+
"w": "bun run watch",
|
|
43
|
+
"watch": "bun run watch:ts & bun run watch:es",
|
|
44
|
+
"watch:es": "bun run build:es --watch",
|
|
45
|
+
"watch:ts": "bun run build:ts --watch --preserveWatchOutput"
|
|
24
46
|
},
|
|
25
47
|
"files": [
|
|
26
|
-
"**/*.{js,mjs,cjs,map,d.ts,html,
|
|
48
|
+
"**/*.{js,mjs,cjs,ts,map,d.ts,html,LEGAL.txt}",
|
|
49
|
+
"README.md",
|
|
27
50
|
"LICENSE",
|
|
28
51
|
"!demo/**/*",
|
|
29
52
|
"!**/*.test.js"
|
|
30
53
|
],
|
|
31
|
-
"
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
32
57
|
"keywords": [
|
|
33
58
|
"alwatr",
|
|
34
59
|
"cross-platform",
|
|
@@ -49,34 +74,6 @@
|
|
|
49
74
|
"utility",
|
|
50
75
|
"utils"
|
|
51
76
|
],
|
|
52
|
-
"license": "MPL-2.0",
|
|
53
|
-
"main": "./dist/main.cjs",
|
|
54
|
-
"module": "./dist/main.mjs",
|
|
55
77
|
"prettier": "@alwatr/prettier-config",
|
|
56
|
-
"
|
|
57
|
-
"access": "public"
|
|
58
|
-
},
|
|
59
|
-
"repository": {
|
|
60
|
-
"type": "git",
|
|
61
|
-
"url": "https://github.com/Alwatr/nanolib",
|
|
62
|
-
"directory": "packages/dedupe"
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"b": "bun run build",
|
|
66
|
-
"build": "bun run build:ts && bun run build:es",
|
|
67
|
-
"build:es": "nano-build --preset=module",
|
|
68
|
-
"build:ts": "tsc --build",
|
|
69
|
-
"c": "bun run clean",
|
|
70
|
-
"cb": "bun run clean && bun run build",
|
|
71
|
-
"clean": "rm -rfv dist *.tsbuildinfo",
|
|
72
|
-
"d": "bun run build:es && DEBUG=1 bun",
|
|
73
|
-
"w": "bun run watch",
|
|
74
|
-
"watch": "bun run watch:ts & bun run watch:es",
|
|
75
|
-
"watch:es": "bun run build:es --watch",
|
|
76
|
-
"watch:ts": "bun run build:ts --watch --preserveWatchOutput"
|
|
77
|
-
},
|
|
78
|
-
"sideEffects": true,
|
|
79
|
-
"type": "module",
|
|
80
|
-
"types": "./dist/main.d.ts",
|
|
81
|
-
"gitHead": "c3889e3756b0a0f9b935a1b702a1373ac52cb379"
|
|
78
|
+
"gitHead": "f843742e94d6ebed3921d57b624d9deb35c2c102"
|
|
82
79
|
}
|
package/src/main.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {getGlobalThis} from '@alwatr/global-this';
|
|
2
|
+
import {hasOwn} from '@alwatr/has-own';
|
|
3
|
+
|
|
4
|
+
import type {} from '@alwatr/nano-build';
|
|
5
|
+
import type {} from '@alwatr/type-helper';
|
|
6
|
+
|
|
7
|
+
const globalThis_ = getGlobalThis<{__alwatr_dedupe__: string | true}>();
|
|
8
|
+
|
|
9
|
+
if (typeof globalThis_.__alwatr_dedupe__ === 'undefined') {
|
|
10
|
+
globalThis_.__alwatr_dedupe__ = __package_version__;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (globalThis_.__alwatr_dedupe__ === true) {
|
|
14
|
+
globalThis_.__alwatr_dedupe__ = '1.0.x';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
console.error(
|
|
18
|
+
new Error('duplication_detected', {
|
|
19
|
+
cause: {
|
|
20
|
+
name: __package_name__,
|
|
21
|
+
oldVersion: globalThis_.__alwatr_dedupe__,
|
|
22
|
+
newVersion: __package_version__,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const list: DictionaryOpt<true> = {};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Prevent duplication in any entities like loading node packages.
|
|
32
|
+
* @param name package name including scope. e.g. `@scope/package-name`
|
|
33
|
+
* @param version package version (optional)
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* deduplicate({name: __package_name__, strict: true});
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export function deduplicate(args: {name: string; strict?: true}): void {
|
|
41
|
+
if (hasOwn(list, args.name)) {
|
|
42
|
+
const error = new Error('duplication_detected', {
|
|
43
|
+
cause: {
|
|
44
|
+
name: args.name,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
if (args.strict) {
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.error(error);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
list[args.name] = true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
deduplicate({name: __package_name__});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Old `definePackage` for backward compatibility.
|
|
63
|
+
* @deprecated Use `deduplicate` instead.
|
|
64
|
+
*/
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
66
|
+
export function definePackage(packageName: string, _?: string): void {
|
|
67
|
+
console.warn('`definePackage` in `@alwatr/dedupe` is deprecated. Use `deduplicate` instead.');
|
|
68
|
+
deduplicate({name: packageName});
|
|
69
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [5.5.31](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.30...@alwatr/dedupe@5.5.31) (2026-03-16)
|
|
7
|
-
|
|
8
|
-
### 🔨 Code Refactoring
|
|
9
|
-
|
|
10
|
-
* migrate build scripts from yarn to bun across multiple packages ([d90e962](https://github.com/Alwatr/nanolib/commit/d90e962f15e5c951e191d5f02341279b6472abc3))
|
|
11
|
-
|
|
12
|
-
## [5.5.30](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.29...@alwatr/dedupe@5.5.30) (2026-02-18)
|
|
13
|
-
|
|
14
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
15
|
-
|
|
16
|
-
## [5.5.29](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.28...@alwatr/dedupe@5.5.29) (2025-12-23)
|
|
17
|
-
|
|
18
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
19
|
-
|
|
20
|
-
## [5.5.28](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.27...@alwatr/dedupe@5.5.28) (2025-12-13)
|
|
21
|
-
|
|
22
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
23
|
-
|
|
24
|
-
## [5.5.27](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.26...@alwatr/dedupe@5.5.27) (2025-12-10)
|
|
25
|
-
|
|
26
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
27
|
-
|
|
28
|
-
## [5.5.26](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.25...@alwatr/dedupe@5.5.26) (2025-11-18)
|
|
29
|
-
|
|
30
|
-
### 🐛 Bug Fixes
|
|
31
|
-
|
|
32
|
-
* add type imports from @alwatr/nano-build and @alwatr/type-helper across multiple packages ([5ab7f15](https://github.com/Alwatr/nanolib/commit/5ab7f159ba57788bf8df40fa96a3027f589d5a77))
|
|
33
|
-
|
|
34
|
-
### 🔨 Code Refactoring
|
|
35
|
-
|
|
36
|
-
* remove unnecessary type declarations from tsconfig.json files ([89bcc7d](https://github.com/Alwatr/nanolib/commit/89bcc7db839807110b80f8ba34414ea9734d9c75))
|
|
37
|
-
|
|
38
|
-
## [5.5.25](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.24...@alwatr/dedupe@5.5.25) (2025-11-15)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
41
|
-
|
|
42
|
-
## [5.5.24](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.23...@alwatr/dedupe@5.5.24) (2025-11-15)
|
|
43
|
-
|
|
44
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
45
|
-
|
|
46
|
-
## [5.5.23](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.22...@alwatr/dedupe@5.5.23) (2025-11-06)
|
|
47
|
-
|
|
48
|
-
### 🐛 Bug Fixes
|
|
49
|
-
|
|
50
|
-
* update package references and imports to use @alwatr/has-own instead of @alwatr/polyfill-has-own ([5441696](https://github.com/Alwatr/nanolib/commit/5441696dc7abbbd9e48c178c60dfde86c76b9517))
|
|
51
|
-
|
|
52
|
-
## [5.5.22](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.21...@alwatr/dedupe@5.5.22) (2025-11-04)
|
|
53
|
-
|
|
54
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
55
|
-
|
|
56
|
-
## [5.5.21](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.20...@alwatr/dedupe@5.5.21) (2025-10-06)
|
|
57
|
-
|
|
58
|
-
### 🔗 Dependencies update
|
|
59
|
-
|
|
60
|
-
* bump the npm-dependencies group with 4 updates ([9825815](https://github.com/Alwatr/nanolib/commit/982581552bbb4b97dca52af5e93a80937f0c3109))
|
|
61
|
-
|
|
62
|
-
## [5.5.20](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.19...@alwatr/dedupe@5.5.20) (2025-09-27)
|
|
63
|
-
|
|
64
|
-
### 🧹 Miscellaneous Chores
|
|
65
|
-
|
|
66
|
-
* exclude test files from package distribution ([86f4f2f](https://github.com/Alwatr/nanolib/commit/86f4f2f5985845c5cf3a3a9398de7b2f98ce53e7))
|
|
67
|
-
|
|
68
|
-
## [5.5.19](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.18...@alwatr/dedupe@5.5.19) (2025-09-22)
|
|
69
|
-
|
|
70
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
71
|
-
|
|
72
|
-
## [5.5.18](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.17...@alwatr/dedupe@5.5.18) (2025-09-22)
|
|
73
|
-
|
|
74
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
75
|
-
|
|
76
|
-
## [5.5.17](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.16...@alwatr/dedupe@5.5.17) (2025-09-21)
|
|
77
|
-
|
|
78
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
79
|
-
|
|
80
|
-
## [5.5.16](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.15...@alwatr/dedupe@5.5.16) (2025-09-20)
|
|
81
|
-
|
|
82
|
-
### 🐛 Bug Fixes
|
|
83
|
-
|
|
84
|
-
* add sideEffects property to package.json files for better tree-shaking ([c7b9e74](https://github.com/Alwatr/nanolib/commit/c7b9e74e1920c8e35b438742de61883ca62da58c))
|
|
85
|
-
* add sideEffects property to package.json files for better tree-shaking ([e8402c4](https://github.com/Alwatr/nanolib/commit/e8402c481a14a1f807a37aaa862a936713d26176))
|
|
86
|
-
|
|
87
|
-
### 🧹 Miscellaneous Chores
|
|
88
|
-
|
|
89
|
-
* remove duplicate sideEffects property from multiple package.json files ([b123f86](https://github.com/Alwatr/nanolib/commit/b123f86be81481de2314aae9bb2eeb629743d24c))
|
|
90
|
-
|
|
91
|
-
## [5.5.15](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.14...@alwatr/dedupe@5.5.15) (2025-09-19)
|
|
92
|
-
|
|
93
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
94
|
-
|
|
95
|
-
## [5.5.14](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.13...@alwatr/dedupe@5.5.14) (2025-09-15)
|
|
96
|
-
|
|
97
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
98
|
-
|
|
99
|
-
## [5.5.13](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.12...@alwatr/dedupe@5.5.13) (2025-09-14)
|
|
100
|
-
|
|
101
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
102
|
-
|
|
103
|
-
## [5.5.12](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.11...@alwatr/dedupe@5.5.12) (2025-09-13)
|
|
104
|
-
|
|
105
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
106
|
-
|
|
107
|
-
## [5.5.11](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.10...@alwatr/dedupe@5.5.11) (2025-09-13)
|
|
108
|
-
|
|
109
|
-
### 🧹 Miscellaneous Chores
|
|
110
|
-
|
|
111
|
-
* remove package-tracer dependency and related code from fetch package ([96fe4e9](https://github.com/Alwatr/nanolib/commit/96fe4e9552a205f218ceed187c55e4e904a07089))
|
|
112
|
-
|
|
113
|
-
## [5.5.10](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.9...@alwatr/dedupe@5.5.10) (2025-09-09)
|
|
114
|
-
|
|
115
|
-
### 🧹 Miscellaneous Chores
|
|
116
|
-
|
|
117
|
-
* remove trailing newlines from contributing sections in README files ([e8ab1bc](https://github.com/Alwatr/nanolib/commit/e8ab1bc43e0addea5ccd4c897c2cec597cb9e15f))
|
|
118
|
-
|
|
119
|
-
## [5.5.9](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.8...@alwatr/dedupe@5.5.9) (2025-09-06)
|
|
120
|
-
|
|
121
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
122
|
-
|
|
123
|
-
## [5.5.8](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.7...@alwatr/dedupe@5.5.8) (2025-09-05)
|
|
124
|
-
|
|
125
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
126
|
-
|
|
127
|
-
## [5.5.7](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.6...@alwatr/dedupe@5.5.7) (2025-09-01)
|
|
128
|
-
|
|
129
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
130
|
-
|
|
131
|
-
## [5.5.6](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.5...@alwatr/dedupe@5.5.6) (2025-08-23)
|
|
132
|
-
|
|
133
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
134
|
-
|
|
135
|
-
## [5.5.5](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.3...@alwatr/dedupe@5.5.5) (2025-08-23)
|
|
136
|
-
|
|
137
|
-
### 🐛 Bug Fixes
|
|
138
|
-
|
|
139
|
-
* update license from AGPL-3.0-only to MPL-2.0 ([d20968e](https://github.com/Alwatr/nanolib/commit/d20968e60cc89b1dcdf9b96507178da6ed562f55))
|
|
140
|
-
* update package versions in multiple package.json files ([7638b1c](https://github.com/Alwatr/nanolib/commit/7638b1cafee2b4e0f97db7a89ac9fba6384b9b10))
|
|
141
|
-
|
|
142
|
-
### 🔨 Code Refactoring
|
|
143
|
-
|
|
144
|
-
* Updated all package.json files in the project to change dependency version specifiers from "workspace:^" to "workspace:*" for consistency and to allow for more flexible version resolution. ([db6a4f7](https://github.com/Alwatr/nanolib/commit/db6a4f76deec2d1d8039978144e4bc51b6f1a0e3))
|
|
145
|
-
|
|
146
|
-
### 🧹 Miscellaneous Chores
|
|
147
|
-
|
|
148
|
-
* reformat all package.json files ([ceda45d](https://github.com/Alwatr/nanolib/commit/ceda45de186667790474f729cb4b161a5148ce19))
|
|
149
|
-
|
|
150
|
-
### 🔗 Dependencies update
|
|
151
|
-
|
|
152
|
-
* update TypeScript and Jest versions across all packages to improve compatibility and performance ([31baf36](https://github.com/Alwatr/nanolib/commit/31baf366101e92e27db66a21c849fb101f19be47))
|
|
153
|
-
|
|
154
|
-
## [5.5.4](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.3...@alwatr/dedupe@5.5.4) (2025-08-23)
|
|
155
|
-
|
|
156
|
-
### Code Refactoring
|
|
157
|
-
|
|
158
|
-
* Updated all package.json files in the project to change dependency version specifiers from "workspace:^" to "workspace:*" for consistency and to allow for more flexible version resolution. ([db6a4f7](https://github.com/Alwatr/nanolib/commit/db6a4f76deec2d1d8039978144e4bc51b6f1a0e3)) by @alimd
|
|
159
|
-
|
|
160
|
-
## <small>5.5.3 (2025-04-15)</small>
|
|
161
|
-
|
|
162
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
163
|
-
|
|
164
|
-
## [5.5.2](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.1...@alwatr/dedupe@5.5.2) (2025-04-01)
|
|
165
|
-
|
|
166
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
167
|
-
|
|
168
|
-
## [5.5.1](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.5.0...@alwatr/dedupe@5.5.1) (2025-03-18)
|
|
169
|
-
|
|
170
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
171
|
-
|
|
172
|
-
## [5.5.0](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.4.0...@alwatr/dedupe@5.5.0) (2025-03-06)
|
|
173
|
-
|
|
174
|
-
### Miscellaneous Chores
|
|
175
|
-
|
|
176
|
-
* update username casing in changelog entries ([9722ac9](https://github.com/Alwatr/nanolib/commit/9722ac9a078438a4e8ebfa5826ea70e0e3a52ca6)) by @
|
|
177
|
-
|
|
178
|
-
### Dependencies update
|
|
179
|
-
|
|
180
|
-
* bump the development-dependencies group across 1 directory with 11 updates ([720c395](https://github.com/Alwatr/nanolib/commit/720c3954da55c929fe8fb16957121f4c51fb7f0c)) by @dependabot[bot]
|
|
181
|
-
|
|
182
|
-
## [5.4.0](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@5.3.1...@alwatr/dedupe@5.4.0) (2025-02-18)
|
|
183
|
-
|
|
184
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
185
|
-
|
|
186
|
-
## [5.3.1](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.8...@alwatr/dedupe@5.3.1) (2025-02-03)
|
|
187
|
-
|
|
188
|
-
## 5.3.0 (2025-02-03)
|
|
189
|
-
|
|
190
|
-
### Miscellaneous Chores
|
|
191
|
-
|
|
192
|
-
* edit README ([3860b3d](https://github.com/Alwatr/nanolib/commit/3860b3df48ab82dc479d5236c2e8579df614aabf)) by @
|
|
193
|
-
|
|
194
|
-
### Dependencies update
|
|
195
|
-
|
|
196
|
-
* bump the development-dependencies group across 1 directory with 11 updates ([cb79d07](https://github.com/Alwatr/nanolib/commit/cb79d072a57c79e1c01abff1a293d6757bb65350)) by @
|
|
197
|
-
* update typescript and @types/node to version 5.7.3 and 22.13.0 respectively across multiple packages ([ddab05b](https://github.com/Alwatr/nanolib/commit/ddab05b5d767c30191f36a065e4bc88744e8e3fe)) by @
|
|
198
|
-
|
|
199
|
-
## 5.0.0 (2024-11-02)
|
|
200
|
-
|
|
201
|
-
### ⚠ BREAKING CHANGES
|
|
202
|
-
|
|
203
|
-
* To simplify version management and ensure consistency, all nanolib packages now use the same version as @alwatr/nanolib. This may require updates to your project's dependencies.
|
|
204
|
-
|
|
205
|
-
### Code Refactoring
|
|
206
|
-
|
|
207
|
-
* use the same version as @alwatr/nanolib ([60eb860](https://github.com/Alwatr/nanolib/commit/60eb860a0e33dfffe2d1d95e63ce54c60876be06)) by @
|
|
208
|
-
|
|
209
|
-
## [5.3.0](https://github.com/Alwatr/nanolib/compare/v5.2.1...v5.3.0) (2025-02-03)
|
|
210
|
-
|
|
211
|
-
### Miscellaneous Chores
|
|
212
|
-
|
|
213
|
-
* edit README ([3860b3d](https://github.com/Alwatr/nanolib/commit/3860b3df48ab82dc479d5236c2e8579df614aabf)) by @ArmanAsadian
|
|
214
|
-
|
|
215
|
-
### Dependencies update
|
|
216
|
-
|
|
217
|
-
* bump the development-dependencies group across 1 directory with 11 updates ([cb79d07](https://github.com/Alwatr/nanolib/commit/cb79d072a57c79e1c01abff1a293d6757bb65350)) by @dependabot[bot]
|
|
218
|
-
* update typescript and @types/node to version 5.7.3 and 22.13.0 respectively across multiple packages ([ddab05b](https://github.com/Alwatr/nanolib/commit/ddab05b5d767c30191f36a065e4bc88744e8e3fe)) by @alimd
|
|
219
|
-
|
|
220
|
-
## 5.0.0 (2024-11-02)
|
|
221
|
-
|
|
222
|
-
### ⚠ BREAKING CHANGES
|
|
223
|
-
|
|
224
|
-
* To simplify version management and ensure consistency, all nanolib packages now use the same version as @alwatr/nanolib. This may require updates to your project's dependencies.
|
|
225
|
-
|
|
226
|
-
### Features
|
|
227
|
-
|
|
228
|
-
* **dedupe:** add `definePackage` to use `deduplicate` for backward compatibility ([990b994](https://github.com/Alwatr/nanolib/commit/990b994ff7a633f6f337a5b96cdd82dc9638c0d6)) by @
|
|
229
|
-
* **dedupe:** new package ([77fcdf6](https://github.com/Alwatr/nanolib/commit/77fcdf6fc8701910a7d503b7fba89fd284f36833)) by @
|
|
230
|
-
* **dedupe:** refactor & new api ([393d873](https://github.com/Alwatr/nanolib/commit/393d8730456749e88fc01b7680c025889de53f36)) by @
|
|
231
|
-
|
|
232
|
-
### Bug Fixes
|
|
233
|
-
|
|
234
|
-
* __package_version__ global type ([de8a3f9](https://github.com/Alwatr/nanolib/commit/de8a3f93bdb5a786c42f56324072b4b9520ce3a1)) by @
|
|
235
|
-
* all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @
|
|
236
|
-
* **dedupe:** add a missing `import` & use `__package_name__` ([1ebbe92](https://github.com/Alwatr/nanolib/commit/1ebbe926549ce11111a791f8d72c9d296597c803)) by @
|
|
237
|
-
* **dedupe:** duplicate_dedupe not work issue ([bdf6f52](https://github.com/Alwatr/nanolib/commit/bdf6f52bbb3730e6d791f5f1cba9a4ebe2510e34)) by @
|
|
238
|
-
* **dedupe:** update `demo` based on new API ([650f159](https://github.com/Alwatr/nanolib/commit/650f1591c754231ca7d0c36a9cf98384af30aa44)) by @
|
|
239
|
-
* use new `global-this` package & remove global type ([63f5a3b](https://github.com/Alwatr/nanolib/commit/63f5a3b07f6d73d0c213cd893a382d5bfe1c4c34)) by @
|
|
240
|
-
|
|
241
|
-
### Code Refactoring
|
|
242
|
-
|
|
243
|
-
* **dedupe:** prevent throw error on duplicate package and just log it ([9d2b657](https://github.com/Alwatr/nanolib/commit/9d2b6570616c63604b138f2df2e2166afe16c482)) by @
|
|
244
|
-
* prevent side-effects ([01e00e1](https://github.com/Alwatr/nanolib/commit/01e00e191385cc92b28677df0c01a085916ae677)) by @
|
|
245
|
-
* update Dictionary type definitions ([c94cbc4](https://github.com/Alwatr/nanolib/commit/c94cbc4523864e2cc47828ccf5508b68945ac2b8)) by @
|
|
246
|
-
* use new `global-this` package ([42510b9](https://github.com/Alwatr/nanolib/commit/42510b9ae0e385206a902db093d188949f1cb84e)) by @
|
|
247
|
-
* use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @
|
|
248
|
-
* use the same version as @alwatr/nanolib ([60eb860](https://github.com/Alwatr/nanolib/commit/60eb860a0e33dfffe2d1d95e63ce54c60876be06)) by @
|
|
249
|
-
|
|
250
|
-
### Miscellaneous Chores
|
|
251
|
-
|
|
252
|
-
* **dedupe:** change the license to AGPL-3.0 ([f48165c](https://github.com/Alwatr/nanolib/commit/f48165c4cc9aa0bfc5cf433500fd3de3d45fc8ab)) by @
|
|
253
|
-
* **dedupe:** fix version ([9754409](https://github.com/Alwatr/nanolib/commit/9754409d978265ba2ce08a9f86af1d1e143940e4)) by @
|
|
254
|
-
* **dedupe:** fix version ([9c5494a](https://github.com/Alwatr/nanolib/commit/9c5494a7297351ec36e7f1f293cc4c1a6f71cf8a)) by @
|
|
255
|
-
* **deps-dev:** bump the development-dependencies group with 3 updates ([0e0ec0f](https://github.com/Alwatr/nanolib/commit/0e0ec0f7c66c849727563cabe0e88606aee49035)) by @
|
|
256
|
-
* **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @
|
|
257
|
-
* **deps:** update ([8e70dff](https://github.com/Alwatr/nanolib/commit/8e70dffb1e751496ef2e72d6cffd685f1fea44e3)) by @
|
|
258
|
-
* **deps:** update ([f0b60d2](https://github.com/Alwatr/nanolib/commit/f0b60d24c9fae6190940baf95167a1175360d4b3)) by @
|
|
259
|
-
* fix all typescript reference ([dea4c44](https://github.com/Alwatr/nanolib/commit/dea4c4414167602ea2f13888c6ecee24eb65ed93)) by @
|
|
260
|
-
* include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @
|
|
261
|
-
* Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @
|
|
262
|
-
* Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
|
|
263
|
-
|
|
264
|
-
### Dependencies update
|
|
265
|
-
|
|
266
|
-
* bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @
|
|
267
|
-
* bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @
|
|
268
|
-
* bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @
|
|
269
|
-
* bump the development-dependencies group with 2 updates ([be5d6c2](https://github.com/Alwatr/nanolib/commit/be5d6c2d86b937f32cebc6848aaff85af07055dd)) by @
|
|
270
|
-
* **dedupe:** update ([ce988ec](https://github.com/Alwatr/nanolib/commit/ce988ec4cf0f4be8fa0fb026eae65c31acc7055e)) by @
|
|
271
|
-
* upd ([451d025](https://github.com/Alwatr/nanolib/commit/451d0255ba96ed55f897a6f44f62cf4e6d2b12be)) by @
|
|
272
|
-
* update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @
|
|
273
|
-
* update all ([53342f6](https://github.com/Alwatr/nanolib/commit/53342f67a8a013127f073540bc11929f1813c05c)) by @
|
|
274
|
-
* update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @
|
|
275
|
-
* update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
|
|
276
|
-
* upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @
|
|
277
|
-
|
|
278
|
-
## [1.1.8](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.7...@alwatr/dedupe@1.1.8) (2024-11-02)
|
|
279
|
-
|
|
280
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
281
|
-
|
|
282
|
-
## [1.1.7](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.6...@alwatr/dedupe@1.1.7) (2024-10-25)
|
|
283
|
-
|
|
284
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
285
|
-
|
|
286
|
-
## [1.1.6](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.5...@alwatr/dedupe@1.1.6) (2024-10-12)
|
|
287
|
-
|
|
288
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
289
|
-
|
|
290
|
-
## [1.1.5](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.4...@alwatr/dedupe@1.1.5) (2024-10-11)
|
|
291
|
-
|
|
292
|
-
### Bug Fixes
|
|
293
|
-
|
|
294
|
-
- use new `global-this` package & remove global type ([63f5a3b](https://github.com/Alwatr/nanolib/commit/63f5a3b07f6d73d0c213cd893a382d5bfe1c4c34)) by @mohammadhonarvar
|
|
295
|
-
|
|
296
|
-
### Code Refactoring
|
|
297
|
-
|
|
298
|
-
- prevent side-effects ([01e00e1](https://github.com/Alwatr/nanolib/commit/01e00e191385cc92b28677df0c01a085916ae677)) by @mohammadhonarvar
|
|
299
|
-
- use new `global-this` package ([42510b9](https://github.com/Alwatr/nanolib/commit/42510b9ae0e385206a902db093d188949f1cb84e)) by @mohammadhonarvar
|
|
300
|
-
|
|
301
|
-
## [1.1.4](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.3...@alwatr/dedupe@1.1.4) (2024-10-11)
|
|
302
|
-
|
|
303
|
-
### Miscellaneous Chores
|
|
304
|
-
|
|
305
|
-
- include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @alimd
|
|
306
|
-
|
|
307
|
-
## [1.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.2...@alwatr/dedupe@1.1.3) (2024-10-11)
|
|
308
|
-
|
|
309
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
310
|
-
|
|
311
|
-
## [1.1.2](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.1...@alwatr/dedupe@1.1.2) (2024-10-10)
|
|
312
|
-
|
|
313
|
-
### Dependencies update
|
|
314
|
-
|
|
315
|
-
- bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
|
|
316
|
-
|
|
317
|
-
## [1.1.1](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.1.0...@alwatr/dedupe@1.1.1) (2024-10-08)
|
|
318
|
-
|
|
319
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
320
|
-
|
|
321
|
-
## [1.1.0](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.14...@alwatr/dedupe@1.1.0) (2024-09-29)
|
|
322
|
-
|
|
323
|
-
### Features
|
|
324
|
-
|
|
325
|
-
- **dedupe:** add `definePackage` to use `deduplicate` for backward compatibility ([990b994](https://github.com/Alwatr/nanolib/commit/990b994ff7a633f6f337a5b96cdd82dc9638c0d6)) by @alimd
|
|
326
|
-
- **dedupe:** refactor & new api ([393d873](https://github.com/Alwatr/nanolib/commit/393d8730456749e88fc01b7680c025889de53f36)) by @mohammadhonarvar
|
|
327
|
-
|
|
328
|
-
### Bug Fixes
|
|
329
|
-
|
|
330
|
-
- all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
|
|
331
|
-
- **dedupe:** add a missing `import` & use `__package_name__` ([1ebbe92](https://github.com/Alwatr/nanolib/commit/1ebbe926549ce11111a791f8d72c9d296597c803)) by @mohammadhonarvar
|
|
332
|
-
- **dedupe:** update `demo` based on new API ([650f159](https://github.com/Alwatr/nanolib/commit/650f1591c754231ca7d0c36a9cf98384af30aa44)) by @mohammadhonarvar
|
|
333
|
-
|
|
334
|
-
### Code Refactoring
|
|
335
|
-
|
|
336
|
-
- update Dictionary type definitions ([c94cbc4](https://github.com/Alwatr/nanolib/commit/c94cbc4523864e2cc47828ccf5508b68945ac2b8)) by @alimd
|
|
337
|
-
- use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @alimd
|
|
338
|
-
|
|
339
|
-
### Miscellaneous Chores
|
|
340
|
-
|
|
341
|
-
- **dedupe:** change the license to AGPL-3.0 ([f48165c](https://github.com/Alwatr/nanolib/commit/f48165c4cc9aa0bfc5cf433500fd3de3d45fc8ab)) by @ArmanAsadian
|
|
342
|
-
- Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @alimd
|
|
343
|
-
|
|
344
|
-
### Dependencies update
|
|
345
|
-
|
|
346
|
-
- bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @dependabot[bot]
|
|
347
|
-
- **dedupe:** update ([ce988ec](https://github.com/Alwatr/nanolib/commit/ce988ec4cf0f4be8fa0fb026eae65c31acc7055e)) by @mohammadhonarvar
|
|
348
|
-
|
|
349
|
-
## [1.0.14](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.13...@alwatr/dedupe@1.0.14) (2024-09-21)
|
|
350
|
-
|
|
351
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
352
|
-
|
|
353
|
-
## [1.0.13](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.12...@alwatr/dedupe@1.0.13) (2024-09-15)
|
|
354
|
-
|
|
355
|
-
### Dependencies update
|
|
356
|
-
|
|
357
|
-
- bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
|
|
358
|
-
- update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @alimd
|
|
359
|
-
|
|
360
|
-
## [1.0.12](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.11...@alwatr/dedupe@1.0.12) (2024-08-31)
|
|
361
|
-
|
|
362
|
-
### Miscellaneous Chores
|
|
363
|
-
|
|
364
|
-
- Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
|
|
365
|
-
|
|
366
|
-
## [1.0.11](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.10...@alwatr/dedupe@1.0.11) (2024-08-31)
|
|
367
|
-
|
|
368
|
-
### Bug Fixes
|
|
369
|
-
|
|
370
|
-
- **dedupe:** duplicate_dedupe not work issue ([bdf6f52](https://github.com/Alwatr/nanolib/commit/bdf6f52bbb3730e6d791f5f1cba9a4ebe2510e34)) by @alimd
|
|
371
|
-
|
|
372
|
-
### Code Refactoring
|
|
373
|
-
|
|
374
|
-
- **dedupe:** prevent throw error on duplicate package and just log it ([9d2b657](https://github.com/Alwatr/nanolib/commit/9d2b6570616c63604b138f2df2e2166afe16c482)) by @alimd
|
|
375
|
-
|
|
376
|
-
## [1.0.10](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.9...@alwatr/dedupe@1.0.10) (2024-08-31)
|
|
377
|
-
|
|
378
|
-
### Dependencies update
|
|
379
|
-
|
|
380
|
-
- update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @alimd
|
|
381
|
-
|
|
382
|
-
## [1.0.9](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.8...@alwatr/dedupe@1.0.9) (2024-07-04)
|
|
383
|
-
|
|
384
|
-
### Dependencies update
|
|
385
|
-
|
|
386
|
-
- update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
|
|
387
|
-
|
|
388
|
-
## [1.0.8](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.7...@alwatr/dedupe@1.0.8) (2024-05-12)
|
|
389
|
-
|
|
390
|
-
### Dependencies update
|
|
391
|
-
|
|
392
|
-
- upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @alimd
|
|
393
|
-
|
|
394
|
-
## [1.0.7](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.6...@alwatr/dedupe@1.0.7) (2024-04-25)
|
|
395
|
-
|
|
396
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
397
|
-
|
|
398
|
-
## [1.0.6](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.5...@alwatr/dedupe@1.0.6) (2024-03-28)
|
|
399
|
-
|
|
400
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
401
|
-
|
|
402
|
-
## [1.0.5](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.4...@alwatr/dedupe@1.0.5) (2024-01-31)
|
|
403
|
-
|
|
404
|
-
### Miscellaneous Chores
|
|
405
|
-
|
|
406
|
-
- **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @alimd
|
|
407
|
-
|
|
408
|
-
## [1.0.4](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.3...@alwatr/dedupe@1.0.4) (2024-01-24)
|
|
409
|
-
|
|
410
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
411
|
-
|
|
412
|
-
## [1.0.3](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.2...@alwatr/dedupe@1.0.3) (2024-01-20)
|
|
413
|
-
|
|
414
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
415
|
-
|
|
416
|
-
## [1.0.2](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.1...@alwatr/dedupe@1.0.2) (2024-01-16)
|
|
417
|
-
|
|
418
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
419
|
-
|
|
420
|
-
## [1.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.0...@alwatr/dedupe@1.0.1) (2024-01-08)
|
|
421
|
-
|
|
422
|
-
**Note:** Version bump only for package @alwatr/dedupe
|
|
423
|
-
|
|
424
|
-
# 1.0.0 (2024-01-03)
|
|
425
|
-
|
|
426
|
-
### Bug Fixes
|
|
427
|
-
|
|
428
|
-
- `__package_version__` global type ([de8a3f9](https://github.com/Alwatr/nanolib/commit/de8a3f93bdb5a786c42f56324072b4b9520ce3a1)) by @
|
|
429
|
-
|
|
430
|
-
### Features
|
|
431
|
-
|
|
432
|
-
- **dedupe:** new package ([77fcdf6](https://github.com/Alwatr/nanolib/commit/77fcdf6fc8701910a7d503b7fba89fd284f36833)) by @
|
package/dist/main.cjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/** 📦 @alwatr/dedupe v5.5.31 */
|
|
2
|
-
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{deduplicate:()=>deduplicate,definePackage:()=>definePackage});module.exports=__toCommonJS(main_exports);var import_global_this=require("@alwatr/global-this");var import_has_own=require("@alwatr/has-own");var globalThis_=(0,import_global_this.getGlobalThis)();if(typeof globalThis_.__alwatr_dedupe__==="undefined"){globalThis_.__alwatr_dedupe__="5.5.31"}else{if(globalThis_.__alwatr_dedupe__===true){globalThis_.__alwatr_dedupe__="1.0.x"}console.error(new Error("duplication_detected",{cause:{name:"@alwatr/dedupe",oldVersion:globalThis_.__alwatr_dedupe__,newVersion:"5.5.31"}}))}var list={};function deduplicate(args){if((0,import_has_own.hasOwn)(list,args.name)){const error=new Error("duplication_detected",{cause:{name:args.name}});if(args.strict){throw error}else{console.error(error)}}list[args.name]=true}deduplicate({name:"@alwatr/dedupe"});function definePackage(packageName,_){console.warn("`definePackage` in `@alwatr/dedupe` is deprecated. Use `deduplicate` instead.");deduplicate({name:packageName})}0&&(module.exports={deduplicate,definePackage});
|
|
3
|
-
//# sourceMappingURL=main.cjs.map
|
package/dist/main.cjs.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/main.ts"],
|
|
4
|
-
"sourcesContent": ["import {getGlobalThis} from '@alwatr/global-this';\nimport {hasOwn} from '@alwatr/has-own';\n\nimport type {} from '@alwatr/nano-build';\nimport type {} from '@alwatr/type-helper';\n\nconst globalThis_ = getGlobalThis<{__alwatr_dedupe__: string | true}>();\n\nif (typeof globalThis_.__alwatr_dedupe__ === 'undefined') {\n globalThis_.__alwatr_dedupe__ = __package_version__;\n}\nelse {\n if (globalThis_.__alwatr_dedupe__ === true) {\n globalThis_.__alwatr_dedupe__ = '1.0.x';\n }\n\n console.error(\n new Error('duplication_detected', {\n cause: {\n name: __package_name__,\n oldVersion: globalThis_.__alwatr_dedupe__,\n newVersion: __package_version__,\n },\n }),\n );\n}\n\nconst list: DictionaryOpt<true> = {};\n\n/**\n * Prevent duplication in any entities like loading node packages.\n * @param name package name including scope. e.g. `@scope/package-name`\n * @param version package version (optional)\n *\n * @example\n * ```typescript\n * deduplicate({name: __package_name__, strict: true});\n * ```\n */\nexport function deduplicate(args: {name: string; strict?: true}): void {\n if (hasOwn(list, args.name)) {\n const error = new Error('duplication_detected', {\n cause: {\n name: args.name,\n },\n });\n\n if (args.strict) {\n throw error;\n }\n else {\n console.error(error);\n }\n }\n\n list[args.name] = true;\n}\n\ndeduplicate({name: __package_name__});\n\n/**\n * Old `definePackage` for backward compatibility.\n * @deprecated Use `deduplicate` instead.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function definePackage(packageName: string, _?: string): void {\n console.warn('`definePackage` in `@alwatr/dedupe` is deprecated. Use `deduplicate` instead.');\n deduplicate({name: packageName});\n}\n"],
|
|
5
|
-
"mappings": ";qqBAAA,0KAA4B,+BAC5B,mBAAqB,2BAKrB,IAAM,eAAc,kCAAkD,EAEtE,GAAI,OAAO,YAAY,oBAAsB,YAAa,CACxD,YAAY,kBAAoB,QAClC,KACK,CACH,GAAI,YAAY,oBAAsB,KAAM,CAC1C,YAAY,kBAAoB,OAClC,CAEA,QAAQ,MACN,IAAI,MAAM,uBAAwB,CAChC,MAAO,CACL,KAAM,iBACN,WAAY,YAAY,kBACxB,WAAY,QACd,CACF,CAAC,CACH,CACF,CAEA,IAAM,KAA4B,CAAC,EAY5B,SAAS,YAAY,KAA2C,CACrE,MAAI,uBAAO,KAAM,KAAK,IAAI,EAAG,CAC3B,MAAM,MAAQ,IAAI,MAAM,uBAAwB,CAC9C,MAAO,CACL,KAAM,KAAK,IACb,CACF,CAAC,EAED,GAAI,KAAK,OAAQ,CACf,MAAM,KACR,KACK,CACH,QAAQ,MAAM,KAAK,CACrB,CACF,CAEA,KAAK,KAAK,IAAI,EAAI,IACpB,CAEA,YAAY,CAAC,KAAM,gBAAgB,CAAC,EAO7B,SAAS,cAAc,YAAqB,EAAkB,CACnE,QAAQ,KAAK,+EAA+E,EAC5F,YAAY,CAAC,KAAM,WAAW,CAAC,CACjC",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/main.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/** 📦 @alwatr/dedupe v5.5.31 */
|
|
2
|
-
import{getGlobalThis}from"@alwatr/global-this";import{hasOwn}from"@alwatr/has-own";var globalThis_=getGlobalThis();if(typeof globalThis_.__alwatr_dedupe__==="undefined"){globalThis_.__alwatr_dedupe__="5.5.31"}else{if(globalThis_.__alwatr_dedupe__===true){globalThis_.__alwatr_dedupe__="1.0.x"}console.error(new Error("duplication_detected",{cause:{name:"@alwatr/dedupe",oldVersion:globalThis_.__alwatr_dedupe__,newVersion:"5.5.31"}}))}var list={};function deduplicate(args){if(hasOwn(list,args.name)){const error=new Error("duplication_detected",{cause:{name:args.name}});if(args.strict){throw error}else{console.error(error)}}list[args.name]=true}deduplicate({name:"@alwatr/dedupe"});function definePackage(packageName,_){console.warn("`definePackage` in `@alwatr/dedupe` is deprecated. Use `deduplicate` instead.");deduplicate({name:packageName})}export{deduplicate,definePackage};
|
|
3
|
-
//# sourceMappingURL=main.mjs.map
|
package/dist/main.mjs.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/main.ts"],
|
|
4
|
-
"sourcesContent": ["import {getGlobalThis} from '@alwatr/global-this';\nimport {hasOwn} from '@alwatr/has-own';\n\nimport type {} from '@alwatr/nano-build';\nimport type {} from '@alwatr/type-helper';\n\nconst globalThis_ = getGlobalThis<{__alwatr_dedupe__: string | true}>();\n\nif (typeof globalThis_.__alwatr_dedupe__ === 'undefined') {\n globalThis_.__alwatr_dedupe__ = __package_version__;\n}\nelse {\n if (globalThis_.__alwatr_dedupe__ === true) {\n globalThis_.__alwatr_dedupe__ = '1.0.x';\n }\n\n console.error(\n new Error('duplication_detected', {\n cause: {\n name: __package_name__,\n oldVersion: globalThis_.__alwatr_dedupe__,\n newVersion: __package_version__,\n },\n }),\n );\n}\n\nconst list: DictionaryOpt<true> = {};\n\n/**\n * Prevent duplication in any entities like loading node packages.\n * @param name package name including scope. e.g. `@scope/package-name`\n * @param version package version (optional)\n *\n * @example\n * ```typescript\n * deduplicate({name: __package_name__, strict: true});\n * ```\n */\nexport function deduplicate(args: {name: string; strict?: true}): void {\n if (hasOwn(list, args.name)) {\n const error = new Error('duplication_detected', {\n cause: {\n name: args.name,\n },\n });\n\n if (args.strict) {\n throw error;\n }\n else {\n console.error(error);\n }\n }\n\n list[args.name] = true;\n}\n\ndeduplicate({name: __package_name__});\n\n/**\n * Old `definePackage` for backward compatibility.\n * @deprecated Use `deduplicate` instead.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function definePackage(packageName: string, _?: string): void {\n console.warn('`definePackage` in `@alwatr/dedupe` is deprecated. Use `deduplicate` instead.');\n deduplicate({name: packageName});\n}\n"],
|
|
5
|
-
"mappings": ";AAAA,OAAQ,kBAAoB,sBAC5B,OAAQ,WAAa,kBAKrB,IAAM,YAAc,cAAkD,EAEtE,GAAI,OAAO,YAAY,oBAAsB,YAAa,CACxD,YAAY,kBAAoB,QAClC,KACK,CACH,GAAI,YAAY,oBAAsB,KAAM,CAC1C,YAAY,kBAAoB,OAClC,CAEA,QAAQ,MACN,IAAI,MAAM,uBAAwB,CAChC,MAAO,CACL,KAAM,iBACN,WAAY,YAAY,kBACxB,WAAY,QACd,CACF,CAAC,CACH,CACF,CAEA,IAAM,KAA4B,CAAC,EAY5B,SAAS,YAAY,KAA2C,CACrE,GAAI,OAAO,KAAM,KAAK,IAAI,EAAG,CAC3B,MAAM,MAAQ,IAAI,MAAM,uBAAwB,CAC9C,MAAO,CACL,KAAM,KAAK,IACb,CACF,CAAC,EAED,GAAI,KAAK,OAAQ,CACf,MAAM,KACR,KACK,CACH,QAAQ,MAAM,KAAK,CACrB,CACF,CAEA,KAAK,KAAK,IAAI,EAAI,IACpB,CAEA,YAAY,CAAC,KAAM,gBAAgB,CAAC,EAO7B,SAAS,cAAc,YAAqB,EAAkB,CACnE,QAAQ,KAAK,+EAA+E,EAC5F,YAAY,CAAC,KAAM,WAAW,CAAC,CACjC",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|