Skip to content

Commit 78b7045

Browse files
committed
v3.0
1 parent 9bd248b commit 78b7045

15 files changed

Lines changed: 1949 additions & 528 deletions
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Bug report
2+
description: Report a reproducible problem
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for filing a bug! Please provide as much detail as possible.
11+
- type: input
12+
id: version
13+
attributes:
14+
label: Package version
15+
description: Which version of config-sets are you using?
16+
placeholder: e.g. 3.0.0
17+
validations:
18+
required: true
19+
- type: input
20+
id: node
21+
attributes:
22+
label: Node.js version
23+
placeholder: e.g. v18.20.3
24+
- type: input
25+
id: os
26+
attributes:
27+
label: OS
28+
placeholder: e.g. Windows 11, macOS 14, Ubuntu 22.04
29+
- type: textarea
30+
id: repro
31+
attributes:
32+
label: Reproduction steps
33+
description: Clear steps to reproduce the issue
34+
placeholder: 1) ..., 2) ..., 3) ...
35+
validations:
36+
required: true
37+
- type: textarea
38+
id: expected
39+
attributes:
40+
label: Expected behavior
41+
validations:
42+
required: true
43+
- type: textarea
44+
id: actual
45+
attributes:
46+
label: Actual behavior
47+
validations:
48+
required: true
49+
- type: textarea
50+
id: logs
51+
attributes:
52+
label: Logs / stack traces
53+
render: shell
54+
- type: textarea
55+
id: extra
56+
attributes:
57+
label: Additional context

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Q&A and Discussions
4+
url: https://github.com/manuel-lohmus/config-sets/discussions
5+
about: Please ask and answer questions here.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Feature request
2+
description: Suggest an idea to improve config-sets
3+
title: "[Feature]: "
4+
labels: ["enhancement"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for the suggestion! Help us understand your use case.
11+
- type: textarea
12+
id: problem
13+
attributes:
14+
label: Problem statement
15+
description: What problem does this feature solve?
16+
placeholder: I'm trying to do X, but Y makes it difficult...
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: proposal
21+
attributes:
22+
label: Proposed solution
23+
placeholder: Describe the API/behavior you'd like to see
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: alternatives
28+
attributes:
29+
label: Alternatives considered
30+
- type: textarea
31+
id: extra
32+
attributes:
33+
label: Additional context
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Question
2+
description: Ask a question or request clarification
3+
title: "[Question]: "
4+
labels: ["question"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Please search existing issues and discussions first.
11+
- type: textarea
12+
id: question
13+
attributes:
14+
label: Your question
15+
placeholder: Be as specific as possible
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: context
20+
attributes:
21+
label: Context
22+
description: Code snippet, config sample, or reproduction details (optional)
23+
render: bash

.github/workflows/node.js.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ jobs:
2525
cache: 'npm'
2626
- run: npm ci
2727
- run: npm run build --if-present
28-
- run: npm test
28+
- run: npm test
29+
permissions:
30+
contents: read
31+
pull-requests: write

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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, and this project adheres to Semantic Versioning.
6+
7+
## [3.0.0] - 2025-10-17
8+
### Added
9+
- TypeScript declarations (`index.d.ts`) covering:
10+
- Callable default export with overloads (module name or defaults object).
11+
- Static members: `assign`, `arg_options`, `print_help`, `isProduction`, `production`, `development`, `enableFileReadWrite`.
12+
- Minimal event typings (`on`, `resetChanges`) compatible with `data-context`.
13+
- GitHub Issue templates: bug report, feature request, question, and config.
14+
15+
### Changed
16+
- Package metadata:
17+
- Bumped version to `3.0.0`.
18+
- Updated `scripts.test` to `node index.test.js`.
19+
- Ensured `browser.js` is included in published files (kept `exports` mapping for CJS/ESM/browser).
20+
21+
### Notes
22+
- Public API remains functionally compatible with the 3.x beta line.
23+
- When using ESM, import the default export:
24+
- `import configSets from 'config-sets'`
25+
- When using CommonJS:
26+
- `const configSets = require('config-sets')`
27+
28+
[3.0.0]: https://github.com/manuel-lohmus/config-sets/releases/tag/v3.0.0

0 commit comments

Comments
 (0)