diff --git a/changelog.md b/changelog.md index 0f50ecb..6e78b43 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-05-04 - 10.0.4 - fix(core) +Refactor module exports and update packageManager version in package.json + +- In package.json, bumped pnpm version from 10.7.0 to 10.10.0 for dependency consistency. +- In ts/index.ts, removed redundant type export and now export common types directly. +- In ts/smartproxy/classes.smartproxy.ts, reorganized imports and explicitly export IPortProxySettings and IDomainConfig. + ## 2025-05-04 - 10.0.3 - fix(smartproxy) Update dependency versions (@push.rocks/smartacme to ^7.2.4, @push.rocks/smartnetwork to ^4.0.1, ws to ^8.18.2) and export common types via index.ts for easier imports. diff --git a/package.json b/package.json index a3d20c5..1a1f0a1 100644 --- a/package.json +++ b/package.json @@ -86,5 +86,5 @@ "puppeteer" ] }, - "packageManager": "pnpm@10.7.0+sha512.6b865ad4b62a1d9842b61d674a393903b871d9244954f652b8842c2b553c72176b278f64c463e52d40fff8aba385c235c8c9ecf5cc7de4fd78b8bb6d49633ab6" + "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39" } diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 760d8ab..29ba8c9 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartproxy', - version: '10.0.3', + version: '10.0.4', description: 'A powerful proxy package that effectively handles high traffic, with features such as SSL/TLS support, port proxying, WebSocket handling, dynamic routing with authentication options, and automatic ACME certificate management.' } diff --git a/ts/index.ts b/ts/index.ts index e3fa2f8..895179c 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -6,5 +6,4 @@ export * from './smartproxy/classes.smartproxy.js'; export * from './smartproxy/classes.pp.snihandler.js'; export * from './smartproxy/classes.pp.interfaces.js'; -import * as types from './common/types.js'; -export { types }; +export * from './common/types.js'; diff --git a/ts/smartproxy/classes.smartproxy.ts b/ts/smartproxy/classes.smartproxy.ts index 9f814df..b100051 100644 --- a/ts/smartproxy/classes.smartproxy.ts +++ b/ts/smartproxy/classes.smartproxy.ts @@ -1,5 +1,5 @@ import * as plugins from '../plugins.js'; -import type { IPortProxySettings, IDomainConfig } from './classes.pp.interfaces.js'; + import { ConnectionManager } from './classes.pp.connectionmanager.js'; import { SecurityManager } from './classes.pp.securitymanager.js'; import { DomainConfigManager } from './classes.pp.domainconfigmanager.js'; @@ -13,6 +13,9 @@ import { CertProvisioner } from './classes.pp.certprovisioner.js'; import type { ICertificateData } from '../common/types.js'; import { buildPort80Handler } from '../common/acmeFactory.js'; +import type { IPortProxySettings, IDomainConfig } from './classes.pp.interfaces.js'; +export type { IPortProxySettings, IDomainConfig }; + /** * SmartProxy - Main class that coordinates all components */