@archoleat/next-define-config 1.2.7 → 1.2.9

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.
Files changed (2) hide show
  1. package/README.md +14 -2
  2. package/package.json +34 -37
package/README.md CHANGED
@@ -8,15 +8,21 @@
8
8
  ![Prettier](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/prettier.yaml?label=Prettier)
9
9
  ![ESLint](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/eslint.yaml?label=ESLint)
10
10
  ![Remark](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/remark.yaml?label=Remark)
11
+ ![Zero Deps](https://img.shields.io/badge/zero_dependencies-blue)
11
12
 
12
13
  ## Table of Contents
13
14
 
14
15
  - [Installation](#installation)
16
+ - [Runtime](#runtime)
15
17
  - [Usage](#usage)
16
18
  - [Contributing](#contributing)
17
19
  - [License](#license)
18
20
 
19
- Provide a defineConfig function for Next.
21
+ Use `defineConfig` to type an object-based Next.js configuration with a
22
+ function call. It returns that object unchanged; a native `NextConfig`
23
+ annotation, JSDoc, or `satisfies NextConfig` is enough when you do not need a
24
+ helper. The declared peer ranges cover Next.js 13–16; async/function configs
25
+ and runtime validation are outside this helper's API.
20
26
 
21
27
  ## Installation
22
28
 
@@ -24,6 +30,12 @@ Provide a defineConfig function for Next.
24
30
  bun i -D @archoleat/next-define-config
25
31
  ```
26
32
 
33
+ ## Runtime
34
+
35
+ This ES module is loaded by the host tool's configuration loader. Follow
36
+ the Node.js requirements of that tool. Bun is used for repository tooling,
37
+ not required to call the published helper.
38
+
27
39
  ## Usage
28
40
 
29
41
  See [Next Configuration](https://nextjs.org/docs/app/api-reference/next-config-js).
@@ -42,7 +54,7 @@ Use this:
42
54
  ```js
43
55
  import { defineConfig } from '@archoleat/next-define-config';
44
56
 
45
- export default defineConfig({})
57
+ export default defineConfig({});
46
58
  ```
47
59
 
48
60
  ## Contributing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@archoleat/next-define-config",
3
3
  "description": "Provide a defineConfig function for Next",
4
- "version": "1.2.7",
4
+ "version": "1.2.9",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "email": "nikkeyl.me@gmail.com",
@@ -17,20 +17,11 @@
17
17
  "url": "https://github.com/archoleat/next-define-config/issues"
18
18
  },
19
19
  "keywords": [
20
- "archoleat-next-define-config",
21
20
  "archoleat",
22
- "config",
23
- "configuration",
24
- "define-config",
25
- "plugin",
26
- "next-config",
27
- "next-define-config",
28
- "next",
21
+ "nextjs-define-config",
22
+ "nextjs",
29
23
  "typescript"
30
24
  ],
31
- "engines": {
32
- "bun": ">=1.0.0"
33
- },
34
25
  "type": "module",
35
26
  "types": "index.d.ts",
36
27
  "imports": {
@@ -50,43 +41,49 @@
50
41
  "next": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
51
42
  },
52
43
  "devDependencies": {
53
- "@archoleat/commitlint-define-config": "^1.1.1",
54
- "@archoleat/prettier-define-config": "^1.2.1",
55
- "@archoleat/semantic-release-define-config": "^1.3.1",
56
- "@commitlint/cli": "^20.1.0",
57
- "@commitlint/config-conventional": "^20.0.0",
58
- "@commitlint/types": "^20.0.0",
44
+ "@archoleat/commitlint-define-config": "^1.1.2",
45
+ "@archoleat/prettier-define-config": "^1.2.2",
46
+ "@archoleat/semantic-release-define-config": "^1.3.2",
47
+ "@commitlint/cli": "^21.2.0",
48
+ "@commitlint/config-conventional": "^21.2.0",
49
+ "@commitlint/types": "^21.2.0",
59
50
  "@rollup/plugin-typescript": "^12.3.0",
60
51
  "@semantic-release/changelog": "^6.0.3",
61
52
  "@semantic-release/git": "^10.0.1",
62
- "@types/bun": "^1.2.21",
63
- "@typescript-eslint/eslint-plugin": "^8.48.0",
64
- "@typescript-eslint/parser": "^8.52.0",
65
- "conventional-changelog-conventionalcommits": "^9.1.0",
66
- "editorconfig-checker": "^6.1.0",
67
- "eslint": "^9.39.1",
53
+ "@types/bun": "^1.3.14",
54
+ "@typescript-eslint/eslint-plugin": "^8.62.1",
55
+ "@typescript-eslint/parser": "^8.62.1",
56
+ "conventional-changelog-conventionalcommits": "^9.3.1",
57
+ "editorconfig-checker": "^7.0.0",
58
+ "eslint": "^10.6.0",
68
59
  "eslint-config-prettier": "^10.1.8",
69
60
  "eslint-define-config": "^2.1.0",
70
- "eslint-import-resolver-typescript": "^4.4.4",
61
+ "eslint-import-resolver-typescript": "^4.4.5",
71
62
  "eslint-plugin-import": "^2.32.0",
72
- "eslint-plugin-simple-import-sort": "^12.1.1",
73
- "eslint-plugin-unicorn": "^62.0.0",
74
- "expect-type": "^1.2.2",
75
- "git-pull-run": "^1.6.2",
76
- "globals": "^17.0.0",
63
+ "eslint-plugin-simple-import-sort": "^13.0.0",
64
+ "eslint-plugin-unicorn": "^70.0.0",
65
+ "expect-type": "^1.4.0",
66
+ "globals": "^17.7.0",
77
67
  "husky": "^9.1.7",
78
- "lint-staged": "^16.1.6",
79
- "next": "^16.1.1",
80
- "prettier": "^3.7.4",
68
+ "lint-staged": "^17.0.8",
69
+ "next": "^16.2.10",
70
+ "prettier": "^3.9.4",
81
71
  "remark": "15.0.1",
82
72
  "remark-cli": "^12.0.1",
83
73
  "remark-preset-lint-consistent": "^6.0.1",
84
74
  "remark-preset-lint-markdown-style-guide": "^6.0.1",
85
75
  "remark-preset-lint-recommended": "^7.0.1",
86
- "rollup": "^4.50.0",
87
- "rollup-plugin-dts": "^6.2.3",
76
+ "rollup": "^4.62.2",
77
+ "rollup-plugin-dts": "^6.4.1",
88
78
  "rollup-plugin-esbuild": "^6.2.1",
89
- "semantic-release": "^25.0.2",
90
- "tslib": "^2.8.1"
79
+ "semantic-release": "^25.0.5",
80
+ "tslib": "^2.8.1",
81
+ "typescript": "^6.0.2"
82
+ },
83
+ "patchedDependencies": {
84
+ "glob@10.5.0": "patches/glob@10.5.0.patch",
85
+ "minimatch@9.0.9": "patches/minimatch@9.0.9.patch",
86
+ "minimatch@10.2.6": "patches/minimatch@10.2.6.patch",
87
+ "npm@11.21.2": "patches/npm@11.21.2.patch"
91
88
  }
92
89
  }