@powerlines/plugin-date 0.12.769 → 0.12.770

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 +33 -0
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -78,6 +78,39 @@ Huge thanks to [dmtrKovalenko](https://github.com/dmtrKovalenko) for their work
78
78
 
79
79
  <!-- END doctoc -->
80
80
 
81
+ ## Features
82
+
83
+ - Injects a consistent date interface at build time across `date-fns`, `dayjs`, `luxon`, and `moment.js`
84
+ - Emits the matching date module as the `date` builtin during `prepare`
85
+ - Pins the selected date library as a dependency; resolved config requires `type` and `defaultLocale`
86
+ - Composes the `env` plugin for configuration values
87
+
88
+ ## Usage
89
+
90
+ Install the plugin:
91
+
92
+ ```bash
93
+ pnpm add @powerlines/plugin-date
94
+ ```
95
+
96
+ Register it in `powerlines.config.ts`:
97
+
98
+ ```ts
99
+ import { defineConfig } from "powerlines";
100
+ import { plugin as date } from "@powerlines/plugin-date";
101
+
102
+ export default defineConfig({
103
+ plugins: [
104
+ date({
105
+ type: "date-fns",
106
+ defaultLocale: "en-US"
107
+ })
108
+ ]
109
+ });
110
+ ```
111
+
112
+ Run the Powerlines build for your project to activate the plugin.
113
+
81
114
  ## Installing
82
115
 
83
116
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.12.769",
3
+ "version": "0.12.770",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
@@ -103,17 +103,17 @@
103
103
  "types": "./dist/index.d.cts",
104
104
  "files": ["dist/**/*"],
105
105
  "dependencies": {
106
- "@powerlines/plugin-env": "^0.16.425",
107
- "@storm-software/config-tools": "^1.190.151",
106
+ "@powerlines/plugin-env": "^0.16.426",
107
+ "@storm-software/config-tools": "^1.190.154",
108
108
  "@stryke/path": "^0.29.43",
109
109
  "defu": "^6.1.7",
110
- "powerlines": "^0.47.216",
110
+ "powerlines": "^0.47.217",
111
111
  "zod": "^4.6.7"
112
112
  },
113
113
  "devDependencies": {
114
- "@powerlines/plugin-plugin": "^0.12.629",
114
+ "@powerlines/plugin-plugin": "^0.12.630",
115
115
  "@types/node": "^25.9.9"
116
116
  },
117
117
  "publishConfig": { "access": "public" },
118
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
118
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
119
119
  }