Skip to content

Commit 2ff59a0

Browse files
committed
chore(release): v3.1.0
- Update version to 3.1.0 - Add changelog entry for v3.1.0
1 parent 324425c commit 2ff59a0

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

CHANGELOG.md

+42
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,48 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.1.0] - 2025-02-16
9+
10+
### Changed
11+
12+
- Restructured exports to make v3 the main API:
13+
- v3 functionality now available at root level
14+
- v2 functionality moved to `v2` namespace
15+
- Better organization of legacy exports
16+
- Enhanced type safety and import experience
17+
18+
### Improved
19+
20+
- Enhanced project organization:
21+
- Cleaner export structure
22+
- Better namespace organization
23+
- Restored complete changelog history
24+
- Improved test file organization
25+
26+
### Migration Note
27+
28+
The v3 API is now available directly from the root:
29+
30+
```typescript
31+
// Before
32+
import { v3 } from '@phr3nzy/rulekit';
33+
const { TypedRuleEngine } = v3;
34+
35+
// After
36+
import { TypedRuleEngine } from '@phr3nzy/rulekit';
37+
```
38+
39+
Legacy v2 functionality remains available through the v2 namespace:
40+
41+
```typescript
42+
// Before
43+
import { RuleEngine } from '@phr3nzy/rulekit';
44+
45+
// After
46+
import { v2 } from '@phr3nzy/rulekit';
47+
const { RuleEngine } = v2.ruleEngine;
48+
```
49+
850
## [3.0.0] - 2025-02-08
951

1052
### Added

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@phr3nzy/rulekit",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "A powerful and flexible toolkit for building rule-based matching and filtering systems",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

0 commit comments

Comments
 (0)