@lowdefy/codemods 5.2.0 → 5.4.0
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/package.json +1 -1
- package/v5-0-0/11-detect-date-formats.md +16 -12
package/package.json
CHANGED
|
@@ -12,18 +12,18 @@ Moment.js locale shortcuts (`l`, `ll`, `lll`, `llll` and uppercase `L`, `LL`, `L
|
|
|
12
12
|
|
|
13
13
|
**Replace these with explicit dayjs format tokens:**
|
|
14
14
|
|
|
15
|
-
| Moment shortcut | Moment output example
|
|
16
|
-
|
|
|
17
|
-
| `l`
|
|
18
|
-
| `ll`
|
|
19
|
-
| `lll`
|
|
20
|
-
| `llll`
|
|
21
|
-
| `L`
|
|
22
|
-
| `LL`
|
|
23
|
-
| `LLL`
|
|
24
|
-
| `LLLL`
|
|
25
|
-
| `LT`
|
|
26
|
-
| `LTS`
|
|
15
|
+
| Moment shortcut | Moment output example | Replacement |
|
|
16
|
+
| --------------- | --------------------------------- | -------------------------- |
|
|
17
|
+
| `l` | 3/26/2026 | `D/M/YYYY` |
|
|
18
|
+
| `ll` | Mar 26, 2026 | `D MMM YYYY` |
|
|
19
|
+
| `lll` | Mar 26, 2026 3:27 PM | `D MMM YYYY h:mm A` |
|
|
20
|
+
| `llll` | Wed, Mar 26, 2026 3:27 PM | `ddd, D MMM YYYY h:mm A` |
|
|
21
|
+
| `L` | 03/26/2026 | `DD/MM/YYYY` |
|
|
22
|
+
| `LL` | March 26, 2026 | `D MMMM YYYY` |
|
|
23
|
+
| `LLL` | March 26, 2026 3:27 PM | `D MMMM YYYY h:mm A` |
|
|
24
|
+
| `LLLL` | Wednesday, March 26, 2026 3:27 PM | `dddd, D MMMM YYYY h:mm A` |
|
|
25
|
+
| `LT` | 3:27 PM | `h:mm A` |
|
|
26
|
+
| `LTS` | 3:27:45 PM | `h:mm:ss A` |
|
|
27
27
|
|
|
28
28
|
**Files to search:**
|
|
29
29
|
|
|
@@ -33,21 +33,25 @@ Grep: `date\(['"]([lL]{1,4}|LTS?)['"]\)`
|
|
|
33
33
|
**Example:**
|
|
34
34
|
|
|
35
35
|
Before:
|
|
36
|
+
|
|
36
37
|
```yaml
|
|
37
38
|
template: "{{ meeting_date | date('llll') }}"
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
After:
|
|
42
|
+
|
|
41
43
|
```yaml
|
|
42
44
|
template: "{{ meeting_date | date('ddd, D MMM YYYY h:mm A') }}"
|
|
43
45
|
```
|
|
44
46
|
|
|
45
47
|
Before:
|
|
48
|
+
|
|
46
49
|
```yaml
|
|
47
50
|
Last modified by {{ doc.updated.user.name | safe }} on {{ doc.updated.timestamp | date('lll')}}
|
|
48
51
|
```
|
|
49
52
|
|
|
50
53
|
After:
|
|
54
|
+
|
|
51
55
|
```yaml
|
|
52
56
|
Last modified by {{ doc.updated.user.name | safe }} on {{ doc.updated.timestamp | date('D MMM YYYY h:mm A')}}
|
|
53
57
|
```
|