volter 0.0.179 → 0.0.180

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/AGENTS.md ADDED
@@ -0,0 +1,141 @@
1
+ # AGENTS.md - Volter Package Guidelines
2
+
3
+ This file contains guidelines and commands for agentic coding agents working in the Volter package repository.
4
+
5
+ ## Build & Development Commands
6
+
7
+ ### Core Commands
8
+ - `bun test` - Run all tests
9
+ - `bun build ./src/**.ts --outdir ./dist --target bun --minify && tsc --declarationMap false` - Build the package
10
+ - `biome lint ./src --apply` - Lint and auto-fix code issues
11
+ - `biome format ./src --write` - Format code according to project style
12
+
13
+ ### Running Single Tests
14
+ Currently no test files exist in the project. When tests are added, use:
15
+ - `bun test <test-file-name>` - Run specific test file
16
+ - `bun test --grep <pattern>` - Run tests matching pattern
17
+
18
+ ## Project Structure
19
+
20
+ ```
21
+ volter/
22
+ ├── src/
23
+ │ ├── index.ts # Main export file
24
+ │ ├── utils.ts # Utility functions and helpers
25
+ │ ├── error.ts # Error handling classes and enums
26
+ │ ├── crypto.ts # Cryptographic functions
27
+ │ └── sessions.ts # Session management and email verification
28
+ ├── dist/ # Built JavaScript files
29
+ ├── types/ # TypeScript declaration files
30
+ └── package.json # Package configuration
31
+ ```
32
+
33
+ ## Code Style Guidelines
34
+
35
+ ### TypeScript Configuration
36
+ - Strict mode enabled
37
+ - ESNext target with DOM libraries
38
+ - ES modules with bundler resolution
39
+ - Declarations emitted to `types/` directory
40
+ - No unchecked indexed access
41
+
42
+ ### Import Style
43
+ - Use default imports for external packages: `import ansi from "ansi-colors"`
44
+ - Use named imports for internal modules: `import { hash } from "./crypto"`
45
+ - Keep imports at the top of files
46
+ - Group external imports first, then internal imports
47
+
48
+ ### Naming Conventions
49
+ - **Classes**: PascalCase (e.g., `Session`, `ServerError`)
50
+ - **Functions/Methods**: camelCase (e.g., `createRandom`, `validate`)
51
+ - **Variables**: camelCase (e.g., `userId`, `expires`)
52
+ - **Constants**: UPPER_SNAKE_CASE for enums and exported constants (e.g., `ErrorCodes`)
53
+ - **Interfaces**: PascalCase with descriptive names (e.g., `SessionOptions`, `CipherText`)
54
+
55
+ ### Error Handling
56
+ - Use custom `ServerError` class for application errors
57
+ - Include error codes from `ErrorCodes` enum
58
+ - Provide context with `at` property for stack traces
59
+ - Use Zod for validation errors (`ValidationError`)
60
+ - Throw errors with descriptive messages
61
+
62
+ ### Function Patterns
63
+ - Use async/await for asynchronous operations
64
+ - Return promises from async functions
65
+ - Use optional parameters with defaults: `createRandom(length = 32)`
66
+ - Export utility functions individually
67
+ - Use factory functions for object creation
68
+
69
+ ### Type Safety
70
+ - Use TypeScript interfaces for object shapes
71
+ - Leverage Zod schemas for runtime validation
72
+ - Use proper return types for functions
73
+ - Import types with `type` keyword when possible: `import type { RedisClient } from "bun"`
74
+
75
+ ### Code Organization
76
+ - Keep related functionality in separate files
77
+ - Use barrel exports in `index.ts` for public API
78
+ - Add JSDoc comments for complex functions
79
+ - Use consistent indentation (Biome will handle this)
80
+
81
+ ### Security Best Practices
82
+ - Use `crypto.getRandomValues()` for secure random generation
83
+ - Implement proper key management in crypto functions
84
+ - Hash sensitive data before storage
85
+ - Use secure algorithms (AES-GCM, ECDSA, SHA-256)
86
+
87
+ ### Dependencies
88
+ - **Runtime**: Bun (JavaScript runtime)
89
+ - **Linting/Formatting**: Biome
90
+ - **Type Checking**: TypeScript
91
+ - **External Libraries**:
92
+ - `zod` for validation
93
+ - `@paralleldrive/cuid2` for ID generation
94
+ - `ansi-colors` for console output
95
+ - `drizzle-orm` for database operations
96
+ - `resend` for email sending
97
+
98
+ ## Testing Guidelines
99
+
100
+ When adding tests:
101
+ - Use Bun test runner
102
+ - Place test files alongside source files or in `test/` directory
103
+ - Use descriptive test names
104
+ - Test both success and error cases
105
+ - Mock external dependencies (Redis, email services)
106
+
107
+ ## Build Process
108
+
109
+ The build process involves:
110
+ 1. Bun compiles TypeScript to JavaScript in `dist/`
111
+ 2. TypeScript generates declaration files in `types/`
112
+ 3. Output is minified for production
113
+ 4. ES modules are generated for modern bundlers
114
+
115
+ ## Global Declarations
116
+
117
+ The project extends the global `Request` interface to include:
118
+ ```typescript
119
+ declare global {
120
+ interface Request {
121
+ ip: Bun.SocketAddress
122
+ }
123
+ }
124
+ ```
125
+
126
+ ## Session Management
127
+
128
+ The `Sessions` class provides:
129
+ - Redis-backed session storage
130
+ - Token-based authentication
131
+ - Session rotation and revocation
132
+ - User session listing
133
+ - Fallback session cleanup
134
+
135
+ ## Email Verification
136
+
137
+ The `e1T` class handles:
138
+ - PIN-based email verification
139
+ - Rate limiting with attempt tracking
140
+ - Email sending via Resend
141
+ - Customizable email templates
package/CHANGELOG.md ADDED
@@ -0,0 +1,118 @@
1
+ # Changelog
2
+
3
+ All notable changes to Volter will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+ - Initial release preparation
12
+
13
+ ## [1.0.0] - 2025-01-12
14
+
15
+ **Note**: This release marks the transition from version 0.0.174 to stable 1.0.0 with API stability guarantees.
16
+
17
+ ### Added
18
+ - **Core Features**
19
+ - Secure session management with Redis backend
20
+ - Email verification with PIN-based system
21
+ - Cryptographic utilities (AES-GCM encryption, ECDSA signatures)
22
+ - Structured error handling with custom `ServerError` class
23
+ - Secure random token and ID generation
24
+
25
+ - **Session Management**
26
+ - Redis-backed session storage with configurable TTL
27
+ - Session rotation for security
28
+ - Session revocation and cleanup
29
+ - User session listing functionality
30
+ - Fallback session cleanup mechanisms
31
+
32
+ - **Email Verification**
33
+ - PIN-based email verification system
34
+ - Rate limiting and attempt tracking
35
+ - Configurable PIN expiration
36
+ - Email sending via Resend service
37
+ - Customizable email templates
38
+
39
+ - **Security Features**
40
+ - AES-GCM encryption for sensitive data
41
+ - ECDSA digital signatures
42
+ - SHA-256 hashing utilities
43
+ - Secure random generation using Web Crypto API
44
+ - Input validation with Zod schemas
45
+
46
+ - **Developer Experience**
47
+ - TypeScript support with strict mode
48
+ - Comprehensive error codes
49
+ - Detailed documentation and examples
50
+ - Built-in logging and debugging support
51
+ - Biome for code formatting and linting
52
+
53
+ - **Integrations**
54
+ - Redis client with connection pooling
55
+ - Drizzle ORM for database operations
56
+ - Resend for email delivery
57
+ - CUID2 for secure ID generation
58
+
59
+ ### Dependencies
60
+ - Bun runtime (JavaScript engine)
61
+ - zod for schema validation
62
+ - @paralleldrive/cuid2 for ID generation
63
+ - ansi-colors for console output
64
+ - drizzle-orm for database operations
65
+ - resend for email sending
66
+
67
+ ### Documentation
68
+ - Comprehensive README with installation and usage guides
69
+ - API documentation with examples
70
+ - Security best practices
71
+ - Contributing guidelines
72
+ - Code of conduct
73
+
74
+ ## [0.9.0] - 2025-01-05 (Beta)
75
+
76
+ ### Added
77
+ - Beta release of core session management
78
+ - Basic Redis integration
79
+ - Initial email verification system
80
+ - Crypto utilities implementation
81
+
82
+ ### Known Issues
83
+ - Limited error handling
84
+ - Beta performance optimizations needed
85
+ - Documentation incomplete
86
+
87
+ ---
88
+
89
+ ## Version Legend
90
+
91
+ - **Major** (X.0.0) - Breaking changes, major new features
92
+ - **Minor** (0.X.0) - New features, improvements
93
+ - **Patch** (0.0.X) - Bug fixes, security patches, documentation updates
94
+
95
+ ## Migration Guides
96
+
97
+ ### From 0.9.x to 1.0.0
98
+
99
+ No breaking changes from beta to stable release. Simply update:
100
+
101
+ ```bash
102
+ bun update volter@latest
103
+ ```
104
+
105
+ ### Breaking Changes
106
+
107
+ As this is the initial stable release, there are no breaking changes from previous versions. Future breaking changes will be clearly documented with migration guides.
108
+
109
+ ## Security Updates
110
+
111
+ Security updates will be released as patch versions and marked clearly in the changelog. Always upgrade to the latest patch version for security fixes.
112
+
113
+ ## Support End of Life
114
+
115
+ - **0.9.x** - Support ended 2025-02-01
116
+ - **1.0.x** - Current stable version
117
+
118
+ For support and upgrade assistance, see our [Support Policy](./SUPPORT.md).
@@ -0,0 +1,89 @@
1
+ # Contributor Covenant 3.0 Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We pledge to make our community welcoming, safe, and equitable for all.
6
+
7
+ We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.
8
+
9
+
10
+ ## Encouraged Behaviors
11
+
12
+ While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.
13
+
14
+ With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
15
+
16
+ 1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
17
+ 2. Engaging **kindly and honestly** with others.
18
+ 3. Respecting **different viewpoints** and experiences.
19
+ 4. **Taking responsibility** for our actions and contributions.
20
+ 5. Gracefully giving and accepting **constructive feedback**.
21
+ 6. Committing to **repairing harm** when it occurs.
22
+ 7. Behaving in other ways that promote and sustain the **well-being of our community**.
23
+
24
+
25
+ ## Restricted Behaviors
26
+
27
+ We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
28
+
29
+ 1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
30
+ 2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
31
+ 3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
32
+ 4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
33
+ 5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
34
+ 6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
35
+ 7. Behaving in other ways that **threaten the well-being** of our community.
36
+
37
+ ### Other Restrictions
38
+
39
+ 1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
40
+ 2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
41
+ 3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
42
+ 4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
43
+
44
+
45
+ ## Reporting an Issue
46
+
47
+ Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.
48
+
49
+ When an incident does occur, it is important to report it promptly. To report a possible violation, email us at abuse@modlin.dev for convenience.
50
+
51
+ Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.
52
+
53
+
54
+ ## Addressing and Repairing Harm
55
+
56
+ If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.
57
+
58
+ 1) Warning
59
+ 1) Event: A violation involving a single incident or series of incidents.
60
+ 2) Consequence: A private, written warning from the Community Moderators.
61
+ 3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
62
+ 2) Temporarily Limited Activities
63
+ 1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
64
+ 2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
65
+ 3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
66
+ 3) Temporary Suspension
67
+ 1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
68
+ 2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
69
+ 3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
70
+ 4) Permanent Ban
71
+ 1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
72
+ 2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
73
+ 3) Repair: There is no possible repair in cases of this severity.
74
+
75
+ This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.
76
+
77
+
78
+ ## Scope
79
+
80
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
81
+
82
+
83
+ ## Attribution
84
+
85
+ This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
86
+
87
+ Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
88
+
89
+ For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).
@@ -0,0 +1,38 @@
1
+ # Code Style Guidelines for Modlin
2
+
3
+ ## Purpose & Scope
4
+
5
+ This document defines the official code style guidelines for this project. Its goal is to ensure consistency, readability, maintainability, and long-term sustainability of the codebase.
6
+
7
+ These guidelines apply to all contributors and all code written for this repository unless explicitly stated otherwise. When existing code conflicts with this guide, follow the guide for new code and refactor old code only when touching it.
8
+
9
+ ## Principles
10
+
11
+ The following principles override individual rules:
12
+ - Readability is more important than cleverness
13
+ - Consistency is more important than personal preference
14
+ - Explicit code is preferred over implicit behavior
15
+ - Maintainability is prioritized over micro-optimizations
16
+ - Tooling should enforce style wherever possible
17
+
18
+ ## Project & File Structure
19
+
20
+ ## Naming (Naming Conventions)
21
+
22
+ Names must be only ASCII letters, digits, underscores, and the `$` sign. Don't use `-`.
23
+
24
+ - **Variables:** snake_case
25
+ - Try using a single lowercase word e.g. `index`, `data`, `error`, and `result`.
26
+ - **Constants:** UPPER_SNAKE_CASE
27
+ - Use only when something is not defined during runtime e.g. `TOKEN`, `PORT`, `DATABASE_URL`, and `VERSION`.
28
+ - **Functions:** snake_case
29
+ - Try keeping it one worded that just describes what it does e.g. `hash` is used for hashing `string` to `SHA-256`.
30
+ - **Classes:** PascalCase
31
+ - Preferably branded (`Resend`, `Volter`).
32
+ - **Methods:** camelCase
33
+ - Keep it one word unless for events (`onError()`), checks (`isEnabled()`), or operations (`getUser()`).
34
+ - When you experince a situation where the function checks if a string is an HTTP URL then do `isHTTP_URL()` instead of `isHTTPURL()`.
35
+ - **Types / Interfaces / Namespaces**: PascalCase
36
+ - With clear names.
37
+ - **Comments:** Any
38
+ - Only for documentation, not for explaining code.
package/Cargo.toml ADDED
@@ -0,0 +1,10 @@
1
+ [package]
2
+ name = "volter"
3
+ version = "0.0.1"
4
+ edition = "2024"
5
+
6
+ [dependencies]
7
+ chrono = "0.4.43"
8
+ colored = "3.1.1"
9
+ dotenvy = "0.15.7"
10
+ tokio = { version = "1.49.0", features = ["net", "rt-multi-thread", "macros", "io-util", "time"] }
package/SECURITY.md ADDED
@@ -0,0 +1,63 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ | Version | Supported |
6
+ | ------- | ------------------ |
7
+ | 1.0.x | :white_check_mark: |
8
+ | < 1.0 | :x: |
9
+
10
+ ## Reporting a Vulnerability
11
+
12
+ The Volter team and community take all security vulnerabilities seriously. Thank you for improving the security of our project.
13
+
14
+ ### How to Report
15
+
16
+ **Please do not report security vulnerabilities through public GitHub issues, discussions, or other public channels.**
17
+
18
+ Instead, please send an email to: **security@modlin.dev**
19
+
20
+ When reporting a vulnerability, please include:
21
+ - A clear description of the vulnerability
22
+ - Steps to reproduce the vulnerability
23
+ - Any potential impact or exploit scenarios
24
+ - Your name (optional - we give credit for responsible disclosure)
25
+
26
+ ### Response Timeline
27
+
28
+ - **Initial Response**: Within 48 hours
29
+ - **Detailed Response**: Within 7 days
30
+ - **Patch Release**: Within 30 days (depending on severity)
31
+ - **Public Disclosure**: After patch is released (with your permission, we'll credit you)
32
+
33
+ ### Security Best Practices
34
+
35
+ We recommend following these security best practices when using Volter:
36
+
37
+ 1. **Keep dependencies updated** - Regularly update to the latest version
38
+ 2. **Use secure session storage** - Ensure Redis is properly secured with authentication
39
+ 3. **Environment variables** - Store sensitive data in environment variables, not in code
40
+ 4. **HTTPS only** - Always use HTTPS in production environments
41
+ 5. **Session rotation** - Enable session rotation to prevent session fixation attacks
42
+ 6. **Rate limiting** - Implement rate limiting for authentication endpoints
43
+
44
+ ### Security Features
45
+
46
+ Volter includes several built-in security features:
47
+
48
+ - **AES-GCM encryption** for sensitive data
49
+ - **Secure random token generation** using `crypto.getRandomValues()`
50
+ - **Session rotation** to prevent session hijacking
51
+ - **PIN-based email verification** with rate limiting
52
+ - **Input validation** using Zod schemas
53
+ - **Structured error handling** to prevent information leakage
54
+
55
+ ### Dependency Security
56
+
57
+ We regularly audit and update dependencies. To check for security vulnerabilities in your dependencies:
58
+
59
+ ```bash
60
+ bun audit
61
+ ```
62
+
63
+ For more information about our security practices, see our [README](./README.md#security).
package/SUPPORT.md ADDED
@@ -0,0 +1,91 @@
1
+ # Support
2
+
3
+ ## Getting Help
4
+
5
+ We're here to help you succeed with Volter. Here are the best ways to get support:
6
+
7
+ ### 📚 Documentation
8
+
9
+ - **[Main Documentation](./README.md)** - Features, installation, and basic usage
10
+ - **[API Reference](./AGENTS.md)** - For developers contributing to Volter
11
+ - **[Examples](./examples/)** - Practical implementation examples (coming soon)
12
+
13
+ ### 🤝 Community Support
14
+
15
+ #### GitHub Discussions
16
+ - **[Questions & General Discussion](https://github.com/modlin-org/volter/discussions/categories/q-a)** - Ask questions, share your experiences
17
+ - **[Show & Tell](https://github.com/modlin-org/volter/discussions/categories/show-and-tell)** - Share what you've built with Volter
18
+ - **[Ideas & Feature Requests](https://github.com/modlin-org/volter/discussions/categories/ideas)** - Suggest new features or improvements
19
+
20
+ #### GitHub Issues
21
+ - **[Bug Reports](https://github.com/modlin-org/volter/issues/new?template=bug_report.yml)** - Report bugs or unexpected behavior
22
+ - **[Feature Requests](https://github.com/modlin-org/volter/issues/new?template=feature_request.yml)** - Request new features
23
+ - **[Security Issues](./SECURITY.md)** - Report security vulnerabilities (private)
24
+
25
+ ### 💬 Professional Support
26
+
27
+ For enterprise users requiring priority support:
28
+
29
+ - **Email**: support@modlin.dev
30
+ - **Response Time**: Within 24 hours during business days
31
+ - **Services**: Bug fixes, feature prioritization, architectural guidance
32
+
33
+ ### 🐛 Troubleshooting Common Issues
34
+
35
+ #### Installation Problems
36
+ ```bash
37
+ # Clear cache and reinstall
38
+ bun cache clear
39
+ bun install
40
+ ```
41
+
42
+ #### Redis Connection Issues
43
+ - Ensure Redis is running: `redis-server`
44
+ - Check connection string format: `redis://localhost:6379`
45
+ - Verify network connectivity to Redis server
46
+
47
+ #### Session Issues
48
+ - Check session expiration settings
49
+ - Verify Redis key persistence
50
+ - Ensure session middleware is properly configured
51
+
52
+ ### 📈 Contributing
53
+
54
+ Want to contribute? See our [Contributing Guide](./CONTRIBUTING.md) for:
55
+ - Development setup
56
+ - Code style guidelines
57
+ - Pull request process
58
+ - Testing requirements
59
+
60
+ ### 📋 Bug Report Template
61
+
62
+ When filing a bug report, please include:
63
+
64
+ 1. **Volter version**
65
+ 2. **Node/Bun version**
66
+ 3. **Operating system**
67
+ 4. **Steps to reproduce**
68
+ 5. **Expected behavior**
69
+ 6. **Actual behavior**
70
+ 7. **Error messages/stack traces**
71
+ 8. **Minimal reproduction case** (if possible)
72
+
73
+ ### 🔄 Release Schedule
74
+
75
+ - **Major releases**: Every 3-4 months
76
+ - **Minor releases**: Every 4-6 weeks
77
+ - **Patch releases**: As needed for bug fixes
78
+ - **Security patches**: Immediately as needed
79
+
80
+ Follow our [Changelog](./CHANGELOG.md) for release announcements and details.
81
+
82
+ ### 📞 Contact
83
+
84
+ - **General Inquiries**: hello@modlin.dev
85
+ - **Security Issues**: security@modlin.dev
86
+ - **Business/Enterprise**: business@modlin.dev
87
+ - **Website**: [modlin.dev](https://modlin.dev)
88
+
89
+ ---
90
+
91
+ **Note**: Community support is provided on a best-effort basis by volunteers. For guaranteed response times and SLAs, consider professional support options.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "volter",
4
- "version": "0.0.179",
4
+ "version": "0.0.180",
5
5
  "description": "Secure, lightweight, and user-friendly modern JavaScript toolchain optimized for performance and minimalism.",
6
- "main": "dist/index.js",
7
- "module": "dist/index.js",
6
+ "main": "./src/index.ts",
7
+ "module": "./src/index.ts",
8
8
  "type": "module",
9
9
  "scripts": {
10
10
  "lint": "biome lint ./src --apply",
@@ -14,22 +14,39 @@
14
14
  },
15
15
  "exports": {
16
16
  ".": {
17
- "types": "./types/index.d.ts",
18
- "import": "./dist/index.js",
19
- "default": "./dist/index.js"
17
+ "types": "./src/index.ts",
18
+ "import": "./src/index.ts",
19
+ "default": "./src/index.ts"
20
20
  },
21
21
  "./*": {
22
- "types": "./types/*.d.ts",
23
- "import": "./dist/*.js",
24
- "default": "./dist/*.js"
22
+ "types": "./src/*.ts",
23
+ "import": "./src/*.ts",
24
+ "default": "./src/*.ts"
25
25
  }
26
26
  },
27
- "files": [
28
- "dist",
29
- "types"
30
- ],
31
- "types": "./types/index.d.ts",
32
- "typings": "./types/index.d.ts",
27
+ "publishConfig": {
28
+ "main": "./dist/index.js",
29
+ "module": "./dist/index.js",
30
+ "types": "./types/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./types/index.d.ts",
34
+ "import": "./dist/index.js",
35
+ "default": "./dist/index.js"
36
+ },
37
+ "./*": {
38
+ "types": "./types/*.d.ts",
39
+ "import": "./dist/*.js",
40
+ "default": "./dist/*.js"
41
+ }
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "types"
46
+ ]
47
+ },
48
+ "types": "./src/index.ts",
49
+ "typings": "./src/index.ts",
33
50
  "devDependencies": {
34
51
  "@types/bun": "^1.3.3",
35
52
  "typescript": "^5.9.3"
Binary file