@raclettejs/types 0.1.0 → 0.1.12

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 ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.12] - 19.09.2025 <a href="https://gitlab.com/raclettejs/types/-/compare/v0.1.11...v0.1.12" target="_blank" rel="noopener"><b>Overview of all changes</b></a>
11
+
12
+ ## Changed
13
+
14
+ - set peer dependency to core to v0.1.11, needs to be updated for new core version after next 0.1.12 release
15
+
16
+ ## [0.1.11] - 19.09.2025 <a href="https://gitlab.com/raclettejs/types/-/compare/v0.1.0...v0.1.11" target="_blank" rel="noopener"><b>Overview of all changes</b></a>
17
+
18
+ ### Security
19
+
20
+ - Updated all Node.js dependencies to latest versions
21
+ - Removed caret (^) version ranges from package.json to prevent automatic minor/patch updates
package/README.md CHANGED
@@ -1,11 +1,12 @@
1
- <!--![Latest release](https://gitlab.com/raclettejs/types/-/badges/release.svg)-->
1
+ [![NPM Version](https://img.shields.io/npm/v/%40raclettejs%2Ftypes)](https://www.npmjs.com/package/@raclettejs/types)
2
+ [![NPM License](https://img.shields.io/npm/l/%40raclettejs%2Ftypes)](LICENSE)
2
3
 
3
4
  > [!important] Beta Phase!
4
- > Raclett is still in the Beta phase. There might be breaking changes over the next couple of month so be aware of migration needs. Visit our [Milestone Overview](https://gitlab.com/groups/raclettejs/-/milestones) for more insights and estimates
5
+ > raclette is still in the Beta phase. There might be breaking changes over the next couple of month so be aware of migration needs. Visit our [Milestone Overview](https://gitlab.com/groups/raclettejs/-/milestones) for more insights and estimates
5
6
 
6
7
  ## What is this?
7
8
 
8
- This is only the types repository for **Raclette**
9
+ This is only the types repository for **raclette**
9
10
 
10
11
  ## What is **raclette**?
11
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raclettejs/types",
3
- "version": "0.1.0",
3
+ "version": "0.1.12",
4
4
  "description": "Type definitions for the raclette framework",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://gitlab.com/raclettejs/types",
@@ -14,16 +14,17 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "@types/node": "*",
18
- "fastify": "^5.4",
19
- "mongoose": "^8.16.3",
20
- "socket.io": "^4.7.5",
21
- "typescript": "^5.8.3"
17
+ "@types/node": "24.5.2",
18
+ "fastify": "5.6.0",
19
+ "mongoose": "8.18.1",
20
+ "socket.io": "4.8.1",
21
+ "typescript": "5.9.2"
22
22
  },
23
23
  "peerDependencies": {
24
- "@raclettejs/core": "*"
24
+ "@raclettejs/core": "0.1.12"
25
25
  },
26
26
  "devDependencies": {
27
- "@raclettejs/core": "latest"
28
- }
29
- }
27
+ "@raclettejs/core": "0.1.12"
28
+ },
29
+ "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
30
+ }
@@ -1,4 +0,0 @@
1
- import { Connection } from "mongoose";
2
- import { DefaultEventsMap, Socket } from "socket.io";
3
- export type MongooseConnection = Connection;
4
- export type SocketIO = Socket<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import { Connection } from "mongoose";
2
- import { DefaultEventsMap, Socket } from "socket.io";
3
- export type MongooseConnection = Connection;
4
- export type SocketIO = Socket<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
package/dist/fastify.d.ts DELETED
@@ -1,26 +0,0 @@
1
- import "fastify";
2
- import { MongooseConnection, SocketIO } from "./dependencies";
3
- import { preHandlerHookHandler } from "fastify";
4
- declare module "fastify" {
5
- interface FastifyInstance {
6
- db: MongooseConnection;
7
- authenticate: preHandlerHookHandler;
8
- wss: SocketIO;
9
- eventbus: any;
10
- redis: any;
11
- http: any;
12
- taskManager: any;
13
- }
14
- interface FastifyRequest {
15
- db: MongooseConnection;
16
- user: any;
17
- requestParams: any;
18
- }
19
- interface RouteOptions {
20
- skipHeaderValidation?: boolean;
21
- }
22
- interface FastifyContextConfig {
23
- type?: string;
24
- broadcast?: string[] | boolean;
25
- }
26
- }
package/dist/fastify.js DELETED
@@ -1 +0,0 @@
1
- import "fastify";
package/dist/fastify.ts DELETED
@@ -1,28 +0,0 @@
1
- import "fastify";
2
- import { MongooseConnection, SocketIO } from "./dependencies";
3
- import type { RedisService, HttpService, TaskManager, ClientPayloadRequestData, User } from "@raclettejs/raclette-core";
4
- import { FastifyReply } from "fastify";
5
- declare module "fastify" {
6
- interface FastifyInstance {
7
- db: MongooseConnection;
8
- authenticate: (req: FastifyRequest, res: FastifyReply) => Promise<void>;
9
- wss: SocketIO;
10
- eventbus: any;
11
- redis: RedisService;
12
- http: HttpService;
13
- taskManager: TaskManager;
14
- }
15
- interface FastifyRequest {
16
- db: MongooseConnection;
17
- user: User;
18
- requestParams: ClientPayloadRequestData;
19
- }
20
- interface RouteOptions {
21
- skipHeaderValidation?: boolean;
22
- }
23
- interface FastifyContextConfig {
24
- type?: string;
25
- broadcast?: string[] | boolean;
26
- }
27
- }
28
- export {};
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import "./fastify";
2
- export * from "@raclettejs/core";
package/dist/index.js DELETED
@@ -1,4 +0,0 @@
1
- // Import all extensions
2
- import "./fastify";
3
- // Re-export your core types
4
- export * from "@raclettejs/raclette-core";
package/dist/index.ts DELETED
@@ -1,2 +0,0 @@
1
- import "./fastify";
2
- export * from "@raclettejs/raclette-core";