@stacksjs/arrays 0.51.0 → 0.52.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/README.md CHANGED
@@ -38,7 +38,7 @@ pnpm test
38
38
 
39
39
  Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
40
40
 
41
- ## 💪🏼 Contributing
41
+ ## 🚜 Contributing
42
42
 
43
43
  Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
44
44
 
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare function containsAll(needles: string[], haystack: string[]): bool
4
4
  export declare function containsAny(needles: string[], haystack: string[]): boolean;
5
5
  export declare function containsNone(needles: string[], haystack: string[]): boolean;
6
6
  export declare function containsOnly(needles: string[], haystack: string[]): boolean;
7
+ export declare function doesNotContain(needle: string, haystack: string[]): boolean;
7
8
  /**
8
9
  * Convert `Arrayable<T>` to `Array<T>`
9
10
  *
package/dist/index.mjs CHANGED
@@ -14,6 +14,9 @@ export function containsNone(needles, haystack) {
14
14
  export function containsOnly(needles, haystack) {
15
15
  return containsAll(haystack, needles);
16
16
  }
17
+ export function doesNotContain(needle, haystack) {
18
+ return !contains(needle, haystack);
19
+ }
17
20
  export function toArray(array) {
18
21
  array = array ?? [];
19
22
  return Array.isArray(array) ? array : [array];
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/arrays",
3
3
  "type": "module",
4
- "version": "0.51.0",
5
- "packageManager": "pnpm@7.26.3",
4
+ "version": "0.52.1",
5
+ "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks array utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -24,7 +24,12 @@
24
24
  "functions",
25
25
  "stacks"
26
26
  ],
27
- "main": "dist/index.mjs",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.mjs"
31
+ }
32
+ },
28
33
  "module": "dist/index.mjs",
29
34
  "types": "dist/index.d.ts",
30
35
  "contributors": [
@@ -34,21 +39,17 @@
34
39
  "dist",
35
40
  "README.md"
36
41
  ],
37
- "engines": {
38
- "node": ">=v18.14.0",
39
- "pnpm": ">=7.26.3"
40
- },
41
42
  "peerDependencies": {
42
- "@stacksjs/utils": "0.51.0"
43
+ "@stacksjs/types": "0.52.1",
44
+ "@stacksjs/utils": "0.52.1"
43
45
  },
44
46
  "devDependencies": {
45
- "mkdist": "^1.1.0",
46
- "typescript": "^4.9.5",
47
- "@stacksjs/testing": "0.51.0"
47
+ "@stacksjs/development": "0.52.1",
48
+ "@stacksjs/types": "0.52.1"
48
49
  },
49
50
  "scripts": {
50
- "build": "mkdist -d",
51
- "dev": "mkdist -d",
51
+ "build": "unbuild",
52
+ "dev": "unbuild --stub",
52
53
  "typecheck": "tsc --noEmit"
53
54
  }
54
55
  }