@baeta/util-path 2.0.0-next.0 → 2.0.0-next.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 +115 -0
- package/dist/index.d.ts +75 -0
- package/package.json +7 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# @baeta/util-path
|
|
2
|
+
|
|
3
|
+
## 2.0.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix broken types
|
|
8
|
+
|
|
9
|
+
## 2.0.0-next.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fix release version
|
|
14
|
+
|
|
15
|
+
## 2.0.0-next.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- [#214](https://github.com/andreisergiu98/baeta/pull/214) [`31d1a50`](https://github.com/andreisergiu98/baeta/commit/31d1a509f96535b43ae85d19c770eb1a5f09dc94) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Baeta v2 – major refactor
|
|
20
|
+
- **Side-effect-free type generation & resolver definitions.**
|
|
21
|
+
The types generator and resolver definitions were reworked to be side-effect free, improving type safety.
|
|
22
|
+
- **Stricter type safety.**
|
|
23
|
+
You must now **explicitly define resolvers for every field** during development—breakages that used to surface at runtime are now caught at compile time.
|
|
24
|
+
- **Removed `@baeta/compiler`.**
|
|
25
|
+
Since modern runtimes can execute TypeScript natively, the separate compiler package is no longer needed. Use your runtime’s native TS support or your existing build setup.
|
|
26
|
+
- **Subscriptions update.**
|
|
27
|
+
`@baeta/subscriptions-pubsub` now targets **`graphql-subscriptions` v3**.
|
|
28
|
+
|
|
29
|
+
## 1.0.1
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [`583014f`](https://github.com/andreisergiu98/baeta/commit/583014f0bac810b25d9a8226bda2df4c9039f5e3) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Update dependencies
|
|
34
|
+
|
|
35
|
+
## 1.0.0
|
|
36
|
+
|
|
37
|
+
### Major Changes
|
|
38
|
+
|
|
39
|
+
- [#165](https://github.com/andreisergiu98/baeta/pull/165) [`1334c2a`](https://github.com/andreisergiu98/baeta/commit/1334c2a866676c88f0f3d380b22133d81c4e98bc) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - mark as stable
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [#189](https://github.com/andreisergiu98/baeta/pull/189) [`d500378`](https://github.com/andreisergiu98/baeta/commit/d500378198e0a9c48298c4242913bca8ad348228) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add jsdocs
|
|
44
|
+
|
|
45
|
+
## 0.1.4
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [`b59db50`](https://github.com/andreisergiu98/baeta/commit/b59db501a83275ab2d964933080e688a3a5d8820) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add readme
|
|
50
|
+
|
|
51
|
+
## 0.1.3
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- [#180](https://github.com/andreisergiu98/baeta/pull/180) [`483c709`](https://github.com/andreisergiu98/baeta/commit/483c70932f815fd114732c00b74f9488d7924c72) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Raise minimum required NodeJS version to 22.12.0. Drop CommonJS builds in favor of the require_esm feature from NodeJS 22.12.0 onwards.
|
|
56
|
+
|
|
57
|
+
- [`de6e89c`](https://github.com/andreisergiu98/baeta/commit/de6e89c1b592e280967c73a4137d24ee56ef1857) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - raise es target to 2024
|
|
58
|
+
|
|
59
|
+
## 0.1.2
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- [#170](https://github.com/andreisergiu98/baeta/pull/170) [`59bbb9c`](https://github.com/andreisergiu98/baeta/commit/59bbb9c4baaf716f27dc251fe7aeb0231e6c5321) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
|
|
64
|
+
|
|
65
|
+
## 0.1.1
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- [`a3f0e5d`](https://github.com/andreisergiu98/baeta/commit/a3f0e5d03fc9ef21a87d3ec6bf264d0e9707636a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix exports order in package.json
|
|
70
|
+
|
|
71
|
+
- [#161](https://github.com/andreisergiu98/baeta/pull/161) [`cca37dd`](https://github.com/andreisergiu98/baeta/commit/cca37dd7135a2852f1f6e287c46911306bdc8da0) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
|
|
72
|
+
|
|
73
|
+
## 0.1.0
|
|
74
|
+
|
|
75
|
+
### Minor Changes
|
|
76
|
+
|
|
77
|
+
- [#156](https://github.com/andreisergiu98/baeta/pull/156) [`01f3c20`](https://github.com/andreisergiu98/baeta/commit/01f3c20365539fad6e8a8694c59a8e86c95784e8) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - raise engine requirement to node >= 22
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- [#152](https://github.com/andreisergiu98/baeta/pull/152) [`d538c79`](https://github.com/andreisergiu98/baeta/commit/d538c7905e6ba96d9f294e2d528f9252e83acbe7) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update formatter
|
|
82
|
+
|
|
83
|
+
- [#145](https://github.com/andreisergiu98/baeta/pull/145) [`08428d4`](https://github.com/andreisergiu98/baeta/commit/08428d4f03b79cab9c116ff7b3a3cf9a0b2620f2) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
|
|
84
|
+
|
|
85
|
+
## 0.0.6
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- [#139](https://github.com/andreisergiu98/baeta/pull/139) [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
|
|
90
|
+
|
|
91
|
+
- [#139](https://github.com/andreisergiu98/baeta/pull/139) [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update typescript
|
|
92
|
+
|
|
93
|
+
## 0.0.5
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- [#128](https://github.com/andreisergiu98/baeta/pull/128) [`534917a`](https://github.com/andreisergiu98/baeta/commit/534917a18e7ed5d788a90a0335a5370d6af8f4a4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
|
|
98
|
+
|
|
99
|
+
## 0.0.4
|
|
100
|
+
|
|
101
|
+
### Patch Changes
|
|
102
|
+
|
|
103
|
+
- [#121](https://github.com/andreisergiu98/baeta/pull/121) [`ceae50d`](https://github.com/andreisergiu98/baeta/commit/ceae50d88e4e59b22c603637620f4fc6b28b2454) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Update Node to v20
|
|
104
|
+
|
|
105
|
+
## 0.0.3
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- [#119](https://github.com/andreisergiu98/baeta/pull/119) [`643a2eb`](https://github.com/andreisergiu98/baeta/commit/643a2eb17c2789cd25361ddeede149a0e459e68a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
|
|
110
|
+
|
|
111
|
+
## 0.0.2
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- [#106](https://github.com/andreisergiu98/baeta/pull/106) [`01788ab`](https://github.com/andreisergiu98/baeta/commit/01788ab04ff6956b2b50186af5bec8ed7ebbe76e) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add compatibility with windows
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ParsedPath } from 'node:path';
|
|
2
|
+
import upath from 'upath';
|
|
3
|
+
|
|
4
|
+
declare function posixPath(pathname: string): string;
|
|
5
|
+
declare function winPath(pathname: string): string;
|
|
6
|
+
declare const addExt: typeof upath.addExt;
|
|
7
|
+
declare const basename: typeof upath.basename;
|
|
8
|
+
declare const changeExt: typeof upath.changeExt;
|
|
9
|
+
declare const defaultExt: typeof upath.defaultExt;
|
|
10
|
+
declare const delimiter: string;
|
|
11
|
+
declare const dirname: typeof upath.dirname;
|
|
12
|
+
declare const extname: typeof upath.extname;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a path string from an object - the opposite of parse().
|
|
15
|
+
*
|
|
16
|
+
* @param pathObject path to evaluate.
|
|
17
|
+
*/
|
|
18
|
+
declare const format: (pathObject: ParsedPath) => string;
|
|
19
|
+
declare const isAbsolute: typeof upath.isAbsolute;
|
|
20
|
+
declare const join: typeof upath.join;
|
|
21
|
+
/**
|
|
22
|
+
* Exactly like path.join(), but it keeps the first meaningful ./.
|
|
23
|
+
*
|
|
24
|
+
* Note that the unix / is returned everywhere, so windows \ is always converted to unix /.
|
|
25
|
+
*
|
|
26
|
+
* @param paths string paths to join
|
|
27
|
+
*/
|
|
28
|
+
declare const joinSafe: (...paths: string[]) => string;
|
|
29
|
+
declare const normalize: typeof upath.normalize;
|
|
30
|
+
declare const normalizeSafe: typeof upath.normalizeSafe;
|
|
31
|
+
declare const normalizeTrim: typeof upath.normalizeTrim;
|
|
32
|
+
declare const parse: typeof upath.parse;
|
|
33
|
+
declare const posix: typeof upath.posix;
|
|
34
|
+
declare const relative: typeof upath.relative;
|
|
35
|
+
/**
|
|
36
|
+
* Removes the specific ext extension from filename, if it has it. Otherwise it leaves it as is. As in all upath functions, it be .ext or ext.
|
|
37
|
+
*
|
|
38
|
+
* @param filename string filename to remove extension to
|
|
39
|
+
* @param ext string extension to remove
|
|
40
|
+
*/
|
|
41
|
+
declare const removeExt: (filename: string, ext: string) => string;
|
|
42
|
+
declare const resolve: typeof upath.resolve;
|
|
43
|
+
declare const sep: string;
|
|
44
|
+
declare const toUnix: typeof upath.toUnix;
|
|
45
|
+
declare const trimExt: typeof upath.trimExt;
|
|
46
|
+
declare const win32: typeof upath.win32;
|
|
47
|
+
declare const _default: {
|
|
48
|
+
addExt: typeof upath.addExt;
|
|
49
|
+
basename: typeof upath.basename;
|
|
50
|
+
changeExt: typeof upath.changeExt;
|
|
51
|
+
defaultExt: typeof upath.defaultExt;
|
|
52
|
+
delimiter: string;
|
|
53
|
+
dirname: typeof upath.dirname;
|
|
54
|
+
extname: typeof upath.extname;
|
|
55
|
+
format: (pathObject: ParsedPath) => string;
|
|
56
|
+
isAbsolute: typeof upath.isAbsolute;
|
|
57
|
+
join: typeof upath.join;
|
|
58
|
+
joinSafe: (...paths: string[]) => string;
|
|
59
|
+
normalize: typeof upath.normalize;
|
|
60
|
+
normalizeSafe: typeof upath.normalizeSafe;
|
|
61
|
+
normalizeTrim: typeof upath.normalizeTrim;
|
|
62
|
+
parse: typeof upath.parse;
|
|
63
|
+
posix: typeof upath.posix;
|
|
64
|
+
relative: typeof upath.relative;
|
|
65
|
+
removeExt: (filename: string, ext: string) => string;
|
|
66
|
+
resolve: typeof upath.resolve;
|
|
67
|
+
sep: string;
|
|
68
|
+
toUnix: typeof upath.toUnix;
|
|
69
|
+
trimExt: typeof upath.trimExt;
|
|
70
|
+
win32: typeof upath.win32;
|
|
71
|
+
posixPath: typeof posixPath;
|
|
72
|
+
winPath: typeof winPath;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { addExt, basename, changeExt, _default as default, defaultExt, delimiter, dirname, extname, format, isAbsolute, join, joinSafe, normalize, normalizeSafe, normalizeTrim, parse, posix, posixPath, relative, removeExt, resolve, sep, toUnix, trimExt, win32, winPath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baeta/util-path",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"baeta",
|
|
6
6
|
"graphql",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"type": "module",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
-
"types": "./index.ts",
|
|
31
|
-
"default": "./index.
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"upath": "^2.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@baeta/builder": "
|
|
51
|
-
"@baeta/testing": "
|
|
52
|
-
"@baeta/tsconfig": "
|
|
50
|
+
"@baeta/builder": "^0.0.0",
|
|
51
|
+
"@baeta/testing": "^0.0.0",
|
|
52
|
+
"@baeta/tsconfig": "^0.0.0",
|
|
53
53
|
"@types/node": "^22.18.11",
|
|
54
54
|
"typescript": "^5.9.3"
|
|
55
55
|
},
|
|
@@ -87,4 +87,4 @@
|
|
|
87
87
|
"alphabetical-ignoring-documents"
|
|
88
88
|
]
|
|
89
89
|
}
|
|
90
|
-
}
|
|
90
|
+
}
|