@alwatr/global-this 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.2](https://github.com/Alwatr/nanolib/compare/@alwatr/global-this@1.0.1...@alwatr/global-this@1.0.2) (2024-10-25)
7
+
8
+ ### Dependencies update
9
+
10
+ * bump the development-dependencies group across 1 directory with 2 updates ([2dfda9e](https://github.com/Alwatr/nanolib/commit/2dfda9ec38a595f1fd961490d1a2fbf060f20a66)) by @dependabot[bot]
11
+ * bump the development-dependencies group with 8 updates ([16847ac](https://github.com/Alwatr/nanolib/commit/16847acba91da027c422e3910d0f2dcc1f084e93)) by @dependabot[bot]
12
+
6
13
  ## [1.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/global-this@1.0.0...@alwatr/global-this@1.0.1) (2024-10-12)
7
14
 
8
15
  **Note:** Version bump only for package @alwatr/global-this
@@ -11,22 +18,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
18
 
12
19
  ### ⚠ BREAKING CHANGES
13
20
 
14
- * **global-scope:** The global-scope module has been deprecated and should no longer be used. Please update your code to use the global-this module instead.
21
+ - **global-scope:** The global-scope module has been deprecated and should no longer be used. Please update your code to use the global-this module instead.
15
22
 
16
23
  ### Code Refactoring
17
24
 
18
- * **global-scope:** Remove global-scope module and replace with global-this ([b194b27](https://github.com/Alwatr/nanolib/commit/b194b2772628fec30cd41d677232e7393fcded61)) by @AliMD
19
- * use new `global-this` package ([42510b9](https://github.com/Alwatr/nanolib/commit/42510b9ae0e385206a902db093d188949f1cb84e)) by @mohammadhonarvar
25
+ - **global-scope:** Remove global-scope module and replace with global-this ([b194b27](https://github.com/Alwatr/nanolib/commit/b194b2772628fec30cd41d677232e7393fcded61)) by @AliMD
26
+ - use new `global-this` package ([42510b9](https://github.com/Alwatr/nanolib/commit/42510b9ae0e385206a902db093d188949f1cb84e)) by @mohammadhonarvar
20
27
 
21
28
  ## [1.1.26](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.25...@alwatr/global-scope@1.1.26) (2024-10-11)
22
29
 
23
30
  ### Bug Fixes
24
31
 
25
- * **global-scope:** prevent duplicate global scope module throw, just log error ([e67ffec](https://github.com/Alwatr/nanolib/commit/e67ffec77cbf5ae9de75d532be0062444486790b)) by @AliMD
32
+ - **global-scope:** prevent duplicate global scope module throw, just log error ([e67ffec](https://github.com/Alwatr/nanolib/commit/e67ffec77cbf5ae9de75d532be0062444486790b)) by @AliMD
26
33
 
27
34
  ### Miscellaneous Chores
28
35
 
29
- * include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @AliMD
36
+ - include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @AliMD
30
37
 
31
38
  ## [1.1.25](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.24...@alwatr/global-scope@1.1.25) (2024-10-11)
32
39
 
@@ -36,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
36
43
 
37
44
  ### Dependencies update
38
45
 
39
- * bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
46
+ - bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
40
47
 
41
48
  ## [1.1.23](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.22...@alwatr/global-scope@1.1.23) (2024-10-08)
42
49
 
@@ -46,20 +53,20 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
46
53
 
47
54
  ### Bug Fixes
48
55
 
49
- * all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
56
+ - all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
50
57
 
51
58
  ### Code Refactoring
52
59
 
53
- * **global-scope:** Improve shared scope definition ([4704a02](https://github.com/Alwatr/nanolib/commit/4704a02497848a18ace8ae27830834d6322d6624)), closes [#123](https://github.com/Alwatr/nanolib/issues/123) by @AliMD
60
+ - **global-scope:** Improve shared scope definition ([4704a02](https://github.com/Alwatr/nanolib/commit/4704a02497848a18ace8ae27830834d6322d6624)), closes [#123](https://github.com/Alwatr/nanolib/issues/123) by @AliMD
54
61
 
55
62
  ### Miscellaneous Chores
56
63
 
57
- * **global-scop:** change the license to AGPL-3.0 ([ad7c262](https://github.com/Alwatr/nanolib/commit/ad7c2629743115af18b9298c6a9ccb5172c27333)) by @ArmanAsadian
58
- * Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @AliMD
64
+ - **global-scop:** change the license to AGPL-3.0 ([ad7c262](https://github.com/Alwatr/nanolib/commit/ad7c2629743115af18b9298c6a9ccb5172c27333)) by @ArmanAsadian
65
+ - Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @AliMD
59
66
 
60
67
  ### Dependencies update
61
68
 
62
- * bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @dependabot[bot]
69
+ - bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @dependabot[bot]
63
70
 
64
71
  ## [1.1.21](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.20...@alwatr/global-scope@1.1.21) (2024-09-21)
65
72
 
@@ -69,32 +76,32 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
69
76
 
70
77
  ### Dependencies update
71
78
 
72
- * bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
73
- * update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
79
+ - bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
80
+ - update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
74
81
 
75
82
  ## [1.1.19](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.18...@alwatr/global-scope@1.1.19) (2024-08-31)
76
83
 
77
84
  ### Miscellaneous Chores
78
85
 
79
- * Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
86
+ - Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
80
87
 
81
88
  ## [1.1.18](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.17...@alwatr/global-scope@1.1.18) (2024-08-31)
82
89
 
83
90
  ### Dependencies update
84
91
 
85
- * update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @AliMD
92
+ - update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @AliMD
86
93
 
87
94
  ## [1.1.17](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.16...@alwatr/global-scope@1.1.17) (2024-07-04)
88
95
 
89
96
  ### Dependencies update
90
97
 
91
- * update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
98
+ - update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
92
99
 
93
100
  ## [1.1.16](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.15...@alwatr/global-scope@1.1.16) (2024-05-12)
94
101
 
95
102
  ### Dependencies update
96
103
 
97
- * upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @AliMD
104
+ - upgrade ([6dbd300](https://github.com/Alwatr/nanolib/commit/6dbd300642c9bcc9e7d0b281e244bf1b06eb1c38)) by @AliMD
98
105
 
99
106
  ## [1.1.15](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.14...@alwatr/global-scope@1.1.15) (2024-04-25)
100
107
 
@@ -108,7 +115,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
108
115
 
109
116
  ### Miscellaneous Chores
110
117
 
111
- * **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @AliMD
118
+ - **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @AliMD
112
119
 
113
120
  ## [1.1.12](https://github.com/Alwatr/nanolib/compare/@alwatr/global-scope@1.1.11...@alwatr/global-scope@1.1.12) (2024-01-24)
114
121
 
package/README.md CHANGED
@@ -13,16 +13,16 @@ yarn add @alwatr/global-this
13
13
  ```typescript
14
14
  import {getGlobalThis} from '@alwatr/global-this';
15
15
 
16
- getGlobalThis<{alwatr:{foo: string}}>().alwatr = {
17
- foo: 'bar',
18
- }
16
+ getGlobalThis<{alwatr: {foo: string}}>().alwatr = {
17
+ foo: 'bar',
18
+ };
19
19
  ```
20
20
 
21
21
  ```typescript
22
22
  import {getGlobalThis} from '@alwatr/global-this';
23
23
 
24
24
  getGlobalThis().setTimeout(() => {
25
- console.log(getGlobalThis<{alwatr:{foo: string}}>().alwatr.foo); // 'bar'
25
+ console.log(getGlobalThis<{alwatr: {foo: string}}>().alwatr.foo); // 'bar'
26
26
  }, 1_000);
27
27
  ```
28
28
 
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/global-this v1.0.1 */
1
+ /* @alwatr/global-this v1.0.2 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/dist/main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/global-this v1.0.1 */
1
+ /* @alwatr/global-this v1.0.2 */
2
2
 
3
3
  // src/main.ts
4
4
  var globalThis__ = typeof globalThis === "object" && globalThis || typeof window === "object" && window || typeof global === "object" && global || self;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/global-this",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Provides access to `globalThis`, ensuring cross-platform compatibility, including browsers (`window`), Node.js (`global`), and Web Workers (`self`).",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "keywords": [
@@ -70,15 +70,15 @@
70
70
  "clean": "rm -rfv dist *.tsbuildinfo"
71
71
  },
72
72
  "dependencies": {
73
- "@alwatr/package-tracer": "^1.0.6"
73
+ "@alwatr/package-tracer": "^1.0.7"
74
74
  },
75
75
  "devDependencies": {
76
- "@alwatr/nano-build": "^2.0.2",
76
+ "@alwatr/nano-build": "^2.0.3",
77
77
  "@alwatr/prettier-config": "^1.0.6",
78
- "@alwatr/tsconfig-base": "^1.3.2",
79
- "@alwatr/type-helper": "^2.0.2",
80
- "@types/node": "^22.7.5",
78
+ "@alwatr/tsconfig-base": "^1.3.3",
79
+ "@alwatr/type-helper": "^2.0.3",
80
+ "@types/node": "^22.8.0",
81
81
  "typescript": "^5.6.3"
82
82
  },
83
- "gitHead": "15d12342d2e69fbb6129675cce620132c5bd0bfc"
83
+ "gitHead": "a1e430a02f9a5711fc43f19012091bcd8806c4f9"
84
84
  }