fix(build): modernize package tooling and test setup for current git.zone build ecosystem

This commit is contained in:
2026-05-01 18:37:41 +00:00
parent deda14e669
commit 669ca2c234
10 changed files with 7038 additions and 3935 deletions
+41
View File
@@ -0,0 +1,41 @@
{
"@ship.zone/szci": {
"npmGlobalTools": [],
"npmRegistryUrl": "registry.npmjs.org"
},
"@git.zone/cli": {
"projectType": "npm",
"module": {
"githost": "code.foss.global",
"gitscope": "push.rocks",
"gitrepo": "smartvalidator",
"shortDescription": "validator package wrapper",
"description": "A wrapper for performing validations using the validator package.",
"npmPackagename": "@push.rocks/smartvalidator",
"license": "MIT",
"keywords": [
"validation",
"validator wrapper",
"data sanitation",
"input validation",
"type checking",
"security",
"form validation",
"string validation",
"URL validation",
"IBAN validation",
"email escape"
]
},
"release": {
"registries": [
"https://verdaccio.lossless.digital",
"https://registry.npmjs.org"
],
"accessLevel": "public"
}
},
"@git.zone/tsdoc": {
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
}
}
+35
View File
@@ -0,0 +1,35 @@
# Changelog
## 2026-05-01 - 1.0.6 - fix(build)
modernize package tooling and test setup for current git.zone build ecosystem
- add package exports and include .smartconfig.json and license in published files
- migrate build and test tooling from legacy @gitzone/@pushrocks packages to current @git.zone packages
- rename the cross-runtime test file to test.node+chromium.ts and update its tapbundle import
- simplify validator module import typing and tighten TypeScript configuration with noImplicitAny and node types
## 2026-03-01 - 1.0.5 - maintenance
Project maintenance updates across the 1.0.5 line.
- Removed `.gitlab-ci.yml`
- Summarized trivial 1.0.5 maintenance updates from 2023-03-27 to 2024-05-29, including description, TypeScript configuration, and `npmextra.json` githost adjustments
## 2023-03-27 - 1.0.4 - core
Core bug fix release.
- Updated core behavior
## 2022-08-03 - 1.0.3 - core
Core bug fix release.
- Updated core behavior
## 2022-07-08 - 1.0.2 - core
Core bug fix release.
- Updated core behavior
## 2022-07-08 - 1.0.1 - core
Initial core bug fix release.
- Updated core behavior
+1 -1
View File
@@ -1,4 +1,4 @@
Copyright (c) 2022 Lossless GmbH (hello@lossless.com) Copyright (c) 2026 Task Venture Capital GmbH <hello@task.vc>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+14 -7
View File
@@ -1,14 +1,18 @@
{ {
"gitzone": { "@ship.zone/szci": {
"npmGlobalTools": [],
"npmRegistryUrl": "registry.npmjs.org"
},
"@git.zone/cli": {
"projectType": "npm", "projectType": "npm",
"module": { "module": {
"githost": "code.foss.global", "githost": "code.foss.global",
"gitscope": "push.rocks", "gitscope": "push.rocks",
"gitrepo": "smartvalidator", "gitrepo": "smartvalidator",
"shortDescription": "validator package wrapper",
"description": "A wrapper for performing validations using the validator package.", "description": "A wrapper for performing validations using the validator package.",
"npmPackagename": "@push.rocks/smartvalidator", "npmPackagename": "@push.rocks/smartvalidator",
"license": "MIT", "license": "MIT",
"projectDomain": "push.rocks",
"keywords": [ "keywords": [
"validation", "validation",
"validator wrapper", "validator wrapper",
@@ -22,13 +26,16 @@
"IBAN validation", "IBAN validation",
"email escape" "email escape"
] ]
},
"release": {
"registries": [
"https://verdaccio.lossless.digital",
"https://registry.npmjs.org"
],
"accessLevel": "public"
} }
}, },
"npmci": { "@git.zone/tsdoc": {
"npmGlobalTools": [],
"npmAccessLevel": "public"
},
"tsdoc": {
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n" "legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
} }
} }
+14 -12
View File
@@ -3,27 +3,27 @@
"version": "1.0.5", "version": "1.0.5",
"private": false, "private": false,
"description": "A wrapper for performing validations using the validator package.", "description": "A wrapper for performing validations using the validator package.",
"exports": {
".": "./dist_ts/index.js"
},
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",
"type": "module", "type": "module",
"author": "Lossless GmbH", "author": "Task Venture Capital GmbH <hello@task.vc>",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "tstest test/",
"build": "(tsbuild --web --allowimplicitany)", "build": "tsbuild --web",
"buildDocs": "(tsdoc)" "buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.25", "@git.zone/tsbuild": "^4.4.0",
"@gitzone/tsbundle": "^2.0.5", "@git.zone/tstest": "^3.6.3",
"@gitzone/tsdoc": "^1.1.10", "@types/node": "^25.6.0"
"@gitzone/tstest": "^1.0.44",
"@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^18.15.11"
}, },
"dependencies": { "dependencies": {
"@types/validator": "^13.7.4", "@types/validator": "^13.15.10",
"validator": "^13.7.0" "validator": "^13.15.35"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"
@@ -37,6 +37,8 @@
"dist_ts_web/**/*", "dist_ts_web/**/*",
"assets/**/*", "assets/**/*",
"cli.js", "cli.js",
".smartconfig.json",
"license",
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
], ],
+6934 -3918
View File
File diff suppressed because it is too large Load Diff
@@ -1,4 +1,4 @@
import { expect, expectAsync, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as smartvalidator from '../ts/index.js'; import * as smartvalidator from '../ts/index.js';
let testValidator: smartvalidator.SmartValidator; let testValidator: smartvalidator.SmartValidator;
@@ -10,7 +10,7 @@ tap.test('first test', async () => {
tap.test('should check for being a URL', async () => { tap.test('should check for being a URL', async () => {
expect(testValidator.isUrl('lossless.com')).toBeTrue(); expect(testValidator.isUrl('lossless.com')).toBeTrue();
}) });
tap.test('should check an IBAN', async () => { tap.test('should check an IBAN', async () => {
expect(testValidator.isIban('AT95 0100 0000 0555 4915')).toBeTrue(); expect(testValidator.isIban('AT95 0100 0000 0555 4915')).toBeTrue();
@@ -21,4 +21,4 @@ tap.test('escape email', async () => {
console.log(escapedEmail); console.log(escapedEmail);
}); });
tap.start(); export default tap.start();
+4 -4
View File
@@ -1,8 +1,8 @@
/** /**
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @push.rocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartvalidator', name: '@push.rocks/smartvalidator',
version: '1.0.5', version: '1.0.6',
description: 'a wrapper for the validator package to perform validations' description: 'A wrapper for performing validations using the validator package.'
} }
+1 -1
View File
@@ -1,5 +1,5 @@
import validatorMod from 'validator'; import validatorMod from 'validator';
const validator: typeof validatorMod.default = validatorMod as any; const validator = validatorMod;
export { validator }; export { validator };
+3 -1
View File
@@ -5,8 +5,10 @@
"target": "ES2022", "target": "ES2022",
"module": "NodeNext", "module": "NodeNext",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"noImplicitAny": true,
"esModuleInterop": true, "esModuleInterop": true,
"verbatimModuleSyntax": true "verbatimModuleSyntax": true,
"types": ["node"]
}, },
"exclude": [ "exclude": [
"dist_*/**/*.d.ts" "dist_*/**/*.d.ts"