@stacksjs/datetime 0.57.4 โ†’ 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
@@ -12,7 +12,7 @@ Easily work with dates.
12
12
  ## ๐Ÿค– Usage
13
13
 
14
14
  ```bash
15
- pnpm i -D @stacksjs/datetime
15
+ bun install -d @stacksjs/datetime
16
16
  ```
17
17
 
18
18
  Now, you can easily access it in your project:
@@ -24,12 +24,12 @@ const formatted = useDateFormat(now(), 'YYYY-MM-DD HH:mm:ss')
24
24
  console.log(formatted) // 2022-11-01 17:06:01
25
25
  ```
26
26
 
27
- To view the full documentation, please visit [https://stacksjs.dev/datetime](https://stacksjs.dev/datetime).
27
+ To view the full documentation, please visit [https://stacksjs.org/datetime](https://stacksjs.org/datetime).
28
28
 
29
29
  ## ๐Ÿงช Testing
30
30
 
31
31
  ```bash
32
- pnpm test
32
+ bun test
33
33
  ```
34
34
 
35
35
  ## ๐Ÿ“ˆ Changelog
@@ -48,7 +48,7 @@ For help, discussion about best practices, or any other conversation that would
48
48
 
49
49
  For casual chit-chat with others using this package:
50
50
 
51
- [Join the Stacks Discord Server](https://discord.ow3.org)
51
+ [Join the Stacks Discord Server](https://discord.gg/stacksjs)
52
52
 
53
53
  ## ๐Ÿ™๐Ÿผ Credits
54
54
 
@@ -63,4 +63,4 @@ Many thanks to the following core technologies & people who have contributed to
63
63
 
64
64
  The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
65
65
 
66
- Made with โค๏ธ
66
+ Made with ๐Ÿ’™
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // @bun
2
+ // src/index.ts
3
+ import {useDateFormat, useNow} from "@stacksjs/utils";
4
+ var now = useNow;
5
+ var dateFormat = useDateFormat;
6
+ export {
7
+ now,
8
+ dateFormat
9
+ };
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@stacksjs/datetime",
3
3
  "type": "module",
4
- "version": "0.57.4",
5
- "packageManager": "pnpm@8.6.6",
4
+ "version": "0.58.19",
6
5
  "description": "The Stacks datetime helpers.",
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/datetime#readme",
9
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/src/datetime#readme",
11
10
  "repository": {
12
11
  "type": "git",
13
12
  "url": "git+https://github.com/stacksjs/stacks.git",
14
- "directory": "./.stacks/core/datetime"
13
+ "directory": "./storage/framework/core/src/datetime"
15
14
  },
16
15
  "bugs": {
17
16
  "url": "https://github.com/stacksjs/stacks/issues"
@@ -26,28 +25,32 @@
26
25
  ],
27
26
  "exports": {
28
27
  ".": {
29
- "types": "./dist/index.d.ts",
30
- "import": "./dist/index.mjs"
28
+ "bun": "./src/index.ts",
29
+ "import": "./dist/index.js"
30
+ },
31
+ "./*": {
32
+ "bun": "./src/*",
33
+ "import": "./dist/*"
31
34
  }
32
35
  },
33
- "module": "dist/index.mjs",
36
+ "module": "dist/index.js",
34
37
  "types": "dist/index.d.ts",
35
38
  "contributors": [
36
- "Chris Breuer <chris@ow3.org>"
39
+ "Chris Breuer <chris@stacksjs.org>"
37
40
  ],
38
41
  "files": [
39
- "dist",
40
- "README.md"
42
+ "README.md",
43
+ "dist"
41
44
  ],
42
- "peerDependencies": {
43
- "@stacksjs/utils": "0.57.4"
45
+ "scripts": {
46
+ "build": "bun --bun build.ts",
47
+ "typecheck": "bun --bun tsc --noEmit",
48
+ "prepublishOnly": "bun --bun run build"
44
49
  },
45
- "devDependencies": {
46
- "@stacksjs/development": "0.57.4"
50
+ "dependencies": {
51
+ "@stacksjs/utils": "workspace:*"
47
52
  },
48
- "scripts": {
49
- "build": "unbuild",
50
- "dev": "unbuild --stub",
51
- "typecheck": "tsc --noEmit"
53
+ "devDependencies": {
54
+ "@stacksjs/development": "workspace:*"
52
55
  }
53
- }
56
+ }
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,4 +0,0 @@
1
- import { useDateFormat, useNow } from '@stacksjs/utils';
2
- declare const now: typeof useNow;
3
- declare const dateFormat: typeof useDateFormat;
4
- export { now, dateFormat };
package/dist/index.mjs DELETED
@@ -1,4 +0,0 @@
1
- import { useDateFormat, useNow } from "@stacksjs/utils";
2
- const now = useNow;
3
- const dateFormat = useDateFormat;
4
- export { now, dateFormat };