fix(dependencies): Updated dependencies to latest versions and removed unused service server class

This commit is contained in:
Philipp Kunz 2024-07-23 16:49:24 +02:00
parent 0c0a35bc90
commit 07a3df944a
7 changed files with 4460 additions and 3951 deletions

18
changelog.md Normal file
View File

@ -0,0 +1,18 @@
# Changelog
## 2024-07-23 - 1.0.5 - fix(dependencies)
Updated dependencies to latest versions and removed unused service server class
- Updated devDependencies and dependencies to their latest versions in package.json
- Removed the unused ServiceServer class
- Updated index.ts to reflect changes in imports
## 2024-05-11 - 1.0.3 to 1.0.4 - General Updates
Maintenance updates
- Fix(core): update
## 2024-02-17 - 1.0.1 to 1.0.3 - General Updates
Maintenance updates
- Fix(core): update

View File

@ -14,21 +14,21 @@
"localPublish": "gitzone commit && pnpm run build && pnpm publish && pnpm publish --access public --registry=\"https://registry.npmjs.org\"" "localPublish": "gitzone commit && pnpm run build && pnpm publish && pnpm publish --access public --registry=\"https://registry.npmjs.org\""
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^2.1.25", "@git.zone/tsbuild": "^2.1.84",
"@git.zone/tsbundle": "^2.0.5", "@git.zone/tsbundle": "^2.0.5",
"@git.zone/tsrun": "^1.2.46", "@git.zone/tsrun": "^1.2.49",
"@git.zone/tstest": "^1.0.44", "@git.zone/tstest": "^1.0.90",
"@push.rocks/tapbundle": "^5.0.15", "@push.rocks/tapbundle": "^5.0.23",
"@types/node": "^20.11.19" "@types/node": "^20.14.11"
}, },
"dependencies": { "dependencies": {
"@api.global/typedrequest": "^3.0.4", "@api.global/typedrequest": "^3.0.30",
"@api.global/typedserver": "^3.0.20", "@api.global/typedserver": "^3.0.50",
"@api.global/typedsocket": "^3.0.0", "@api.global/typedsocket": "^3.0.1",
"@push.rocks/qenv": "^6.0.5", "@push.rocks/qenv": "^6.0.5",
"@push.rocks/smartlog": "^3.0.3", "@push.rocks/smartlog": "^3.0.7",
"@push.rocks/smartntml": "^2.0.4", "@push.rocks/smartntml": "^2.0.4",
"@serve.zone/interfaces": "^1.0.35" "@serve.zone/interfaces": "^1.0.74"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

File diff suppressed because it is too large Load Diff

0
readme.hints.md Normal file
View File

View File

@ -1,8 +1,8 @@
/** /**
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @push.rocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '@serve.zone/platformclient', name: '@serve.zone/platformclient',
version: '1.0.4', version: '1.0.5',
description: 'a module that makes it really easy to use the serve.zone platform inside your app' description: 'a module that makes it really easy to use the serve.zone platform inside your app'
} }

View File

@ -1,51 +0,0 @@
import * as plugins from './plugins.js';
import { InfoHtml } from './infohtml/index.js';
export interface IServiceServerConstructorOptions {
addCustomRoutes?: (serverArg: plugins.typedserver.servertools.Server) => Promise<any>;
serviceName: string;
serviceVersion: string;
serviceDomain: string;
port?: number;
}
/**
* a server for serving your app to the outside world
*/
export class ServiceServer {
public options: IServiceServerConstructorOptions;
public typedServer: plugins.typedserver.TypedServer;
constructor(optionsArg: IServiceServerConstructorOptions) {
this.options = optionsArg;
}
public async start() {
console.log('starting lole-serviceserver...')
this.typedServer = new plugins.typedserver.TypedServer({
cors: true,
domain: this.options.serviceDomain,
forceSsl: false,
port: this.options.port || 3000,
robots: true,
defaultAnswer: async () => {
return (
await InfoHtml.fromSimpleText(
`${this.options.serviceName} (version ${this.options.serviceVersion})`
)
).htmlString;
},
});
// lets add any custom routes
if (this.options.addCustomRoutes) {
await this.options.addCustomRoutes(this.typedServer.server);
}
await this.typedServer.start();
}
public async stop() {
await this.typedServer.stop();
}
}

View File

@ -1,7 +1,6 @@
export * from './classes.serviceserver.js'; export * from './classes.platformclient.js';
// Things for building a server // Things for building a server
import { servertools } from '@api.global/typedserver'; import { servertools, utilityservers } from '@api.global/typedserver';
const { Handler, HandlerTypedRouter } = servertools;
export { Handler, HandlerTypedRouter };