Skip to content

Commit 3689598

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 398b57d + baa633c commit 3689598

13 files changed

Lines changed: 50 additions & 68 deletions

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ api-extractor/**/*
22
dist/**/*
33
docs/**/*
44
temp/**/*
5-
types/**/*

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cSpell.words": [
33
"destructure",
44
"heaslip",
5+
"nodenext",
56
"Perso",
67
"rushstack",
78
"tsdoc",
@@ -42,8 +43,8 @@
4243
"api-extractor/**/*": true,
4344
"CHANGELOG": true,
4445
"docs/**/*": true,
45-
"LICENSE": true,
46-
"types/**/*": true
46+
"package-lock.json": true,
47+
"LICENSE": true
4748
},
4849
"typescript.tsdk": "node_modules/typescript/lib"
4950
}

CHANGELOG.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# @asl-19/js-utils changelog
22

3+
## [1.0.0](https://github.com/ASL-19/js-utils/pulls?q=is%3Apr+milestone%3A1.0.0+is%3Aclosed) [2025-08-15]
4+
5+
- Remove @asl-19/shared-package-configs, update configs, misc. cleanup [[#31](https://github.com/ASL-19/js-utils/pull/31)]
6+
37
## [0.4.1](https://github.com/ASL-19/js-utils/pulls?q=is%3Apr+milestone%3A0.4.1+is%3Aclosed) [2025-07-30]
48

59
- Update package.json repository format [[#29](https://github.com/ASL-19/js-utils/pull/29)]

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ npm run dev
2424
If you add a new function or making a change to the arguments of an existing function (without this TypeScript won’t be aware of the changes, and the `build-lint-test` script will fail):
2525

2626
```sh
27-
# Update api-extractor/* (metadata about code generated by api-extractor), docs/* (Markdown documentation generated by api-documenter using api-extractor metadata) and types/js-utils.d.ts (types generated by api-extractor)
27+
# Update api-extractor/* (metadata about code generated by api-extractor) and docs/* (Markdown documentation generated by api-documenter using api-extractor metadata)
2828
npm run api-extractor-update
2929
```
3030

api-extractor.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"reportFolder": "<projectFolder>/api-extractor"
1010
},
1111
"compiler": {
12-
"tsconfigFilePath": "tsconfig.json"
12+
"tsconfigFilePath": "tsconfig-dist.json"
1313
},
1414
"docModel": {
1515
"enabled": true,
@@ -18,23 +18,6 @@
1818
"dtsRollup": {
1919
"enabled": false
2020
},
21-
"messages": {
22-
"compilerMessageReporting": {
23-
"default": {
24-
"logLevel": "warning"
25-
}
26-
},
27-
"extractorMessageReporting": {
28-
"default": {
29-
"logLevel": "warning"
30-
}
31-
},
32-
"tsdocMessageReporting": {
33-
"default": {
34-
"logLevel": "warning"
35-
}
36-
}
37-
},
3821
"tsdocMetadata": {
3922
"enabled": false
4023
}

api-extractor/js-utils.api.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
"text": "T"
195195
}
196196
],
197-
"fileUrlPath": "src/asType.ts",
197+
"fileUrlPath": "dist/asType.d.ts",
198198
"returnTypeTokenRange": {
199199
"startIndex": 3,
200200
"endIndex": 4
@@ -248,7 +248,7 @@
248248
"text": "string"
249249
}
250250
],
251-
"fileUrlPath": "src/cleanUrlQueryString.ts",
251+
"fileUrlPath": "dist/cleanUrlQueryString.d.ts",
252252
"returnTypeTokenRange": {
253253
"startIndex": 3,
254254
"endIndex": 4
@@ -316,7 +316,7 @@
316316
"text": "`/${string}`"
317317
}
318318
],
319-
"fileUrlPath": "src/constructUrl.ts",
319+
"fileUrlPath": "dist/constructUrl.d.ts",
320320
"returnTypeTokenRange": {
321321
"startIndex": 9,
322322
"endIndex": 10
@@ -357,7 +357,7 @@
357357
"text": "string"
358358
}
359359
],
360-
"fileUrlPath": "src/getAbsoluteUrl.ts",
360+
"fileUrlPath": "dist/getAbsoluteUrl.d.ts",
361361
"returnTypeTokenRange": {
362362
"startIndex": 3,
363363
"endIndex": 4
@@ -403,7 +403,7 @@
403403
"text": "string | undefined"
404404
}
405405
],
406-
"fileUrlPath": "src/getFirstStringOrString.ts",
406+
"fileUrlPath": "dist/getFirstStringOrString.d.ts",
407407
"returnTypeTokenRange": {
408408
"startIndex": 4,
409409
"endIndex": 5
@@ -498,7 +498,7 @@
498498
"text": "NormalizedQueryType"
499499
}
500500
],
501-
"fileUrlPath": "src/getNormalizedQuery.ts",
501+
"fileUrlPath": "dist/getNormalizedQuery.d.ts",
502502
"returnTypeTokenRange": {
503503
"startIndex": 15,
504504
"endIndex": 16
@@ -566,7 +566,7 @@
566566
"text": "<Leaf>"
567567
}
568568
],
569-
"fileUrlPath": "src/getObjectValueByDotSeparatedKey.ts",
569+
"fileUrlPath": "dist/getObjectValueByDotSeparatedKey.d.ts",
570570
"returnTypeTokenRange": {
571571
"startIndex": 5,
572572
"endIndex": 7
@@ -620,7 +620,7 @@
620620
"text": "string"
621621
}
622622
],
623-
"fileUrlPath": "src/getRootRelativeUrl.ts",
623+
"fileUrlPath": "dist/getRootRelativeUrl.d.ts",
624624
"returnTypeTokenRange": {
625625
"startIndex": 3,
626626
"endIndex": 4
@@ -661,7 +661,7 @@
661661
"text": "boolean"
662662
}
663663
],
664-
"fileUrlPath": "src/isNullOrWhitespace.ts",
664+
"fileUrlPath": "dist/isNullOrWhitespace.d.ts",
665665
"returnTypeTokenRange": {
666666
"startIndex": 3,
667667
"endIndex": 4
@@ -702,7 +702,7 @@
702702
"text": "string"
703703
}
704704
],
705-
"fileUrlPath": "src/replaceArabicNumeralsWithPersianNumerals.ts",
705+
"fileUrlPath": "dist/replaceArabicNumeralsWithPersianNumerals.d.ts",
706706
"returnTypeTokenRange": {
707707
"startIndex": 3,
708708
"endIndex": 4
@@ -743,7 +743,7 @@
743743
"text": "void"
744744
}
745745
],
746-
"fileUrlPath": "src/serverLog.ts",
746+
"fileUrlPath": "dist/serverLog.d.ts",
747747
"returnTypeTokenRange": {
748748
"startIndex": 3,
749749
"endIndex": 4
@@ -784,7 +784,7 @@
784784
"text": "string"
785785
}
786786
],
787-
"fileUrlPath": "src/underscoreCaseToCamelCase.ts",
787+
"fileUrlPath": "dist/underscoreCaseToCamelCase.d.ts",
788788
"returnTypeTokenRange": {
789789
"startIndex": 3,
790790
"endIndex": 4

eslint.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
// We should be able to remove the @ts-expect-error and eslint-disable-next-line
22
// once we fix the typing of @asl-19/eslint-config
33

4-
// @ts-expect-error (TODO: why is this happening?)
54
import asl19 from "@asl-19/eslint-config";
65
import { defineConfig } from "eslint/config";
76

8-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
9-
const typedAsl19 =
10-
/** @type {import("@asl-19/eslint-config/types/index")["default"]} */ (asl19);
7+
const typedAsl19 = /** @type {import("@asl-19/eslint-config")["default"]} */ (
8+
asl19
9+
);
1110

1211
const eslintConfig = defineConfig([
1312
{
14-
ignores: ["dist/", "types/", ".yalc/"],
13+
ignores: ["dist/", ".yalc/"],
1514
},
1615
{
1716
extends: [

package-lock.json

Lines changed: 2 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@asl-19/js-utils",
3-
"version": "0.4.1",
3+
"version": "1.0.0",
44
"type": "module",
55
"description": "Shared JavaScript utility functions for ASL19 projects",
66
"contributors": [
@@ -41,27 +41,27 @@
4141
"api-extractor-check": "api-extractor run --verbose",
4242
"api-extractor-update": "api-extractor run --local --verbose && api-documenter markdown --input-folder ./api-extractor --output-folder ./docs",
4343
"build-lint-test": "npm-run-all -l -p tsc -s lint-test",
44-
"rm-dist": "rm -rf dist",
44+
"rm-dist": "rm -rf dist/*",
4545
"dev": "npm-run-all -l -s package-changed -p tsc-watch",
46+
"dev-build-update": "npm-run-all -l -p package-changed rm-dist -s tsc api-extractor-update",
4647
"dev-lint-test": "run-s package-changed lint-test",
4748
"eslint-check": "eslint . --ext='js,ts,tsx'",
4849
"eslint-fix": "eslint . --ext='js,ts,tsx' --fix",
4950
"lint-test": "run-p -l api-extractor-check eslint-check prettier-check tsc-check",
5051
"package-changed": "package-changed",
5152
"prepublishOnly": "run-s rm-dist build-lint-test",
52-
"prettier-check": "prettier --config prettier.config.js --check .",
53-
"prettier-fix": "prettier --config prettier.config.js --write .",
53+
"prettier-check": "prettier --check .",
54+
"prettier-fix": "prettier --write .",
5455
"npm-check-updates": "npm-check-updates",
55-
"tsc": "tsc --project tsconfig-esm.json",
56-
"tsc-watch": "tsc --project tsconfig-esm.json --watch",
57-
"tsc-check": "tsc --noEmit"
56+
"tsc": "tsc --project tsconfig-dist.json",
57+
"tsc-watch": "tsc --project tsconfig-dist.json --watch",
58+
"tsc-check": "tsc --project tsconfig-dist.json --noEmit"
5859
},
5960
"dependencies": {
6061
"ts-pattern": "^5.7.1"
6162
},
6263
"devDependencies": {
6364
"@asl-19/eslint-config": "^0.9.0",
64-
"@asl-19/shared-package-configs": "^0.3.0",
6565
"@microsoft/api-documenter": "^7.26.29",
6666
"@microsoft/api-extractor": "^7.52.8",
6767
"@types/node": "^22.16.4",

prettier.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @type {import("prettier").Config} */
12
const prettierConfig = {
23
overrides: [
34
{

0 commit comments

Comments
 (0)