@riktajs/core 0.10.0 → 0.10.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.
@@ -1,7 +1,12 @@
1
- export { HttpException, HttpExceptionBody, HttpExceptionResponse } from './http-exception.js';
2
- export { ValidationException, ValidationErrorDetails } from './validation.exception.js';
1
+ export { HttpException } from './http-exception.js';
2
+ export type { HttpExceptionBody, HttpExceptionResponse } from './http-exception.js';
3
+ export { ValidationException } from './validation.exception.js';
4
+ export type { ValidationErrorDetails } from './validation.exception.js';
3
5
  export { BadRequestException, UnauthorizedException, ForbiddenException, NotFoundException, MethodNotAllowedException, NotAcceptableException, RequestTimeoutException, ConflictException, GoneException, PayloadTooLargeException, UnsupportedMediaTypeException, UnprocessableEntityException, TooManyRequestsException, InternalServerErrorException, NotImplementedException, BadGatewayException, ServiceUnavailableException, GatewayTimeoutException, } from './exceptions.js';
4
- export { ExceptionFilter, ExceptionContext, ErrorResponse, GlobalExceptionFilter, GlobalExceptionFilterOptions, createExceptionHandler, } from './exception-filter.js';
5
- export { Catch, CatchMetadata, CATCH_METADATA, getCatchMetadata } from './catch.decorator.js';
6
+ export { GlobalExceptionFilter, createExceptionHandler } from './exception-filter.js';
7
+ export type { ExceptionFilter, ExceptionContext, ErrorResponse, GlobalExceptionFilterOptions } from './exception-filter.js';
8
+ export { Catch, CATCH_METADATA, getCatchMetadata } from './catch.decorator.js';
9
+ export type { CatchMetadata } from './catch.decorator.js';
6
10
  export { ConfigProviderAlreadyRegisteredException, ConfigProviderNotFoundException, ConfigProviderInstantiationException, } from './config.exceptions.js';
7
- export { DiscoveryException, DiscoveryFailure, DiscoveryOptions, } from './discovery.exception.js';
11
+ export { DiscoveryException } from './discovery.exception.js';
12
+ export type { DiscoveryFailure, DiscoveryOptions } from './discovery.exception.js';
@@ -1,7 +1,7 @@
1
1
  export { HttpException } from './http-exception.js';
2
2
  export { ValidationException } from './validation.exception.js';
3
3
  export { BadRequestException, UnauthorizedException, ForbiddenException, NotFoundException, MethodNotAllowedException, NotAcceptableException, RequestTimeoutException, ConflictException, GoneException, PayloadTooLargeException, UnsupportedMediaTypeException, UnprocessableEntityException, TooManyRequestsException, InternalServerErrorException, NotImplementedException, BadGatewayException, ServiceUnavailableException, GatewayTimeoutException, } from './exceptions.js';
4
- export { GlobalExceptionFilter, createExceptionHandler, } from './exception-filter.js';
4
+ export { GlobalExceptionFilter, createExceptionHandler } from './exception-filter.js';
5
5
  export { Catch, CATCH_METADATA, getCatchMetadata } from './catch.decorator.js';
6
6
  export { ConfigProviderAlreadyRegisteredException, ConfigProviderNotFoundException, ConfigProviderInstantiationException, } from './config.exceptions.js';
7
- export { DiscoveryException, } from './discovery.exception.js';
7
+ export { DiscoveryException } from './discovery.exception.js';
@@ -1,3 +1,4 @@
1
- export { CanActivate } from './can-activate.interface.js';
2
- export { ExecutionContext, ExecutionContextImpl } from './execution-context.js';
1
+ export type { CanActivate } from './can-activate.interface.js';
2
+ export { ExecutionContextImpl } from './execution-context.js';
3
+ export type { ExecutionContext } from './execution-context.js';
3
4
  export { UseGuards, getGuardsMetadata } from './use-guards.decorator.js';
@@ -15,5 +15,5 @@ export * from './config/index.js';
15
15
  export * from './metadata.js';
16
16
  export * from './profiler/index.js';
17
17
  export { z } from 'zod';
18
- export type { ZodType, ZodSchema, ZodError, ZodIssue, infer as ZodInfer } from 'zod';
18
+ export type { ZodError, ZodIssue, infer as ZodInfer, input as ZodInput, output as ZodOutput } from 'zod';
19
19
  export type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
@@ -1,2 +1,3 @@
1
- export { Interceptor, CallHandler } from './interceptor.interface.js';
2
- export { UseInterceptors, getInterceptorsMetadata, InterceptorClass } from './use-interceptors.decorator.js';
1
+ export type { Interceptor, CallHandler } from './interceptor.interface.js';
2
+ export { UseInterceptors, getInterceptorsMetadata } from './use-interceptors.decorator.js';
3
+ export type { InterceptorClass } from './use-interceptors.decorator.js';
@@ -1,3 +1,4 @@
1
1
  export { Middleware } from './middleware.decorator.js';
2
- export { RiktaMiddleware, NextFunction } from './rikta-middleware.interface.js';
3
- export { UseMiddleware, getMiddlewareMetadata, getMiddlewareMetadata as getMiddlewaresMetadata, MiddlewareClass } from './use-middleware.decorator.js';
2
+ export type { RiktaMiddleware, NextFunction } from './rikta-middleware.interface.js';
3
+ export { UseMiddleware, getMiddlewareMetadata, getMiddlewareMetadata as getMiddlewaresMetadata } from './use-middleware.decorator.js';
4
+ export type { MiddlewareClass } from './use-middleware.decorator.js';
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "@riktajs/core",
3
- "version": "0.10.0",
4
- "description": "A fast and modern TypeScript backend framework with zero-config autowiring, powered by Fastify",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
12
- }
13
- },
14
- "files": [
15
- "dist"
16
- ],
17
- "scripts": {
18
- "clean": "rm -rf dist",
19
- "prebuild": "npm run clean",
20
- "build": "tsc",
21
- "dev": "ts-node-dev --respawn src/index.ts",
22
- "test": "vitest run",
23
- "test:watch": "vitest",
24
- "test:coverage": "vitest run --coverage",
25
- "prepublishOnly": "npm run build"
26
- },
27
- "keywords": [
28
- "framework",
29
- "backend",
30
- "typescript",
31
- "fastify",
32
- "decorators",
33
- "dependency-injection",
34
- "nestjs-like"
35
- ],
36
- "author": "riktar",
37
- "license": "MIT",
38
- "dependencies": {
39
- "dotenv": "^17.2.3",
40
- "fast-glob": "3.3.3",
41
- "fastify": "5.3.2",
42
- "reflect-metadata": "0.2.2",
43
- "zod": "4.3.5"
44
- },
45
- "devDependencies": {
46
- "@types/node": "^22.10.2",
47
- "@vitest/coverage-v8": "^2.1.9",
48
- "ts-node": "^10.9.2",
49
- "ts-node-dev": "^2.0.0",
50
- "typescript": "^5.7.2",
51
- "vitest": "^2.1.8"
52
- },
53
- "engines": {
54
- "node": ">=20.0.0"
55
- }
56
- }
1
+ {
2
+ "name": "@riktajs/core",
3
+ "version": "0.10.2",
4
+ "description": "A fast and modern TypeScript backend framework with zero-config autowiring, powered by Fastify",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "clean": "rm -rf dist",
19
+ "prebuild": "npm run clean",
20
+ "build": "tsc",
21
+ "dev": "ts-node-dev --respawn src/index.ts",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest",
24
+ "test:coverage": "vitest run --coverage",
25
+ "prepublishOnly": "npm run build"
26
+ },
27
+ "keywords": [
28
+ "framework",
29
+ "backend",
30
+ "typescript",
31
+ "fastify",
32
+ "decorators",
33
+ "dependency-injection",
34
+ "nestjs-like"
35
+ ],
36
+ "author": "riktar",
37
+ "license": "MIT",
38
+ "dependencies": {
39
+ "dotenv": "^17.2.3",
40
+ "fast-glob": "3.3.3",
41
+ "fastify": "5.3.2",
42
+ "reflect-metadata": "0.2.2",
43
+ "zod": "4.3.5"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^22.10.2",
47
+ "@vitest/coverage-v8": "^2.1.9",
48
+ "ts-node": "^10.9.2",
49
+ "ts-node-dev": "^2.0.0",
50
+ "typescript": "^5.7.2",
51
+ "vitest": "^2.1.8"
52
+ },
53
+ "engines": {
54
+ "node": ">=20.0.0"
55
+ }
56
+ }