@stacksjs/collections 0.57.3 โ†’ 0.58.19

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
@@ -10,7 +10,7 @@ Easily work with via Laravel-like collections.
10
10
  ## ๐Ÿค– Usage
11
11
 
12
12
  ```bash
13
- pnpm i -D @stacksjs/collections
13
+ bun install -d @stacksjs/collections
14
14
  ```
15
15
 
16
16
  Now, you can easily access it in your project:
@@ -29,12 +29,12 @@ const collection = collect([{
29
29
  console.log(collection.avg('pages')) // 636
30
30
  ```
31
31
 
32
- To view the full documentation, please visit [https://stacksjs.dev/collections](https://stacksjs.dev/collections).
32
+ To view the full documentation, please visit [https://stacksjs.org/collections](https://stacksjs.org/collections).
33
33
 
34
34
  ## ๐Ÿงช Testing
35
35
 
36
36
  ```bash
37
- pnpm test
37
+ bun test
38
38
  ```
39
39
 
40
40
  ## ๐Ÿ“ˆ Changelog
@@ -53,7 +53,7 @@ For help, discussion about best practices, or any other conversation that would
53
53
 
54
54
  For casual chit-chat with others using this package:
55
55
 
56
- [Join the Stacks Discord Server](https://discord.ow3.org)
56
+ [Join the Stacks Discord Server](https://discord.gg/stacksjs)
57
57
 
58
58
  ## ๐Ÿ™๐Ÿผ Credits
59
59
 
@@ -68,4 +68,4 @@ Many thanks to the following core technologies & people who have contributed to
68
68
 
69
69
  The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
70
70
 
71
- Made with โค๏ธ
71
+ Made with ๐Ÿ’™
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ // src/index.ts
2
+ import {Collection, collect} from "collect.js";
3
+ export {
4
+ collect,
5
+ Collection
6
+ };
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@stacksjs/collections",
3
3
  "type": "module",
4
- "version": "0.57.3",
5
- "packageManager": "pnpm@8.6.6",
4
+ "version": "0.58.19",
6
5
  "description": "The Stacks collections.",
7
6
  "author": "Chris Breuer",
8
7
  "license": "MIT",
9
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
10
- "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/collections#readme",
9
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/src/collections#readme",
11
10
  "repository": {
12
11
  "type": "git",
13
12
  "url": "git+https://github.com/stacksjs/stacks.git",
14
- "directory": "./.stacks/core/collections"
13
+ "directory": "./storage/framework/core/src/collections"
15
14
  },
16
15
  "bugs": {
17
16
  "url": "https://github.com/stacksjs/stacks/issues"
@@ -27,28 +26,32 @@
27
26
  "sideEffects": false,
28
27
  "exports": {
29
28
  ".": {
30
- "types": "./dist/index.d.ts",
31
- "import": "./dist/index.mjs"
29
+ "bun": "./src/index.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./*": {
33
+ "bun": "./src/*",
34
+ "import": "./dist/*"
32
35
  }
33
36
  },
34
- "module": "dist/index.mjs",
37
+ "module": "dist/index.js",
35
38
  "types": "dist/index.d.ts",
36
39
  "contributors": [
37
- "Chris Breuer <chris@ow3.org>"
40
+ "Chris Breuer <chris@stacksjs.org>"
38
41
  ],
39
42
  "files": [
40
- "dist",
41
- "README.md"
43
+ "README.md",
44
+ "dist"
42
45
  ],
43
- "peerDependencies": {
46
+ "scripts": {
47
+ "build": "bun --bun build.ts",
48
+ "typecheck": "bun --bun tsc --noEmit",
49
+ "prepublishOnly": "bun --bun run build"
50
+ },
51
+ "dependencies": {
44
52
  "collect.js": "^4.36.1"
45
53
  },
46
54
  "devDependencies": {
47
- "@stacksjs/development": "0.57.3"
48
- },
49
- "scripts": {
50
- "build": "unbuild",
51
- "dev": "unbuild --stub",
52
- "typecheck": "tsc --noEmit"
55
+ "@stacksjs/development": "workspace:*"
53
56
  }
54
- }
57
+ }
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- # MIT License
2
-
3
- Copyright (c) 2022 Open Web Foundation
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { Collection, collect } from 'collect.js';
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- export { Collection, collect } from "collect.js";