Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
9cfb8e5
feat: initial commit
brawaru Mar 23, 2023
dfa1c7f
ci: fix permission in prs testing workflow
brawaru Mar 23, 2023
cb3021c
chore: add renovate config
brawaru Mar 23, 2023
b27fe69
chore(renovate): add stability days and change engines range strat
brawaru Mar 23, 2023
94e9943
chore(deps): update all non-major dependencies
renovate[bot] Mar 23, 2023
e5ef534
chore(deps): update dependency @formatjs/cli-lib to v6
renovate[bot] Mar 23, 2023
bbae560
docs: fix import examples
brawaru Mar 24, 2023
40183be
feat(types): export plugin options type
brawaru Mar 24, 2023
c36d2fe
chore(renovate): use replace range strat for peerDeps
brawaru Mar 25, 2023
a1edba6
fix(pkg): relax peerDependencies versions
brawaru Mar 25, 2023
9fdc231
feat(plugin): add 'output' option (vintl-dev/unplugin#15)
brawaru Apr 3, 2023
ca6394b
chore(pkg): add packageManager to package.json
brawaru Apr 11, 2023
772731d
ci: use corepack to install pnpm
brawaru Apr 11, 2023
2229296
chore(deps): update pnpm to v8
renovate[bot] Apr 11, 2023
fbb57f1
chore(deps): update devdependency semantic-release to v21
renovate[bot] Apr 11, 2023
d422acc
chore(deps): update devdependency typescript to v5
renovate[bot] Apr 11, 2023
821c025
chore(deps): update devdependency unbuild to v1.2.0
brawaru Apr 12, 2023
23f360c
chore(tsc): use verbatimModuleSyntax opt; split config for tests
brawaru Apr 12, 2023
810abc8
chore(eslint): fix eslint for tests
brawaru Apr 12, 2023
d0999e2
chore(deps): update all non-major dependencies
renovate[bot] Apr 12, 2023
0351a05
fix: allow to call `buildStart` multiple times
brawaru Apr 25, 2023
60fccd0
chore(deps): update all non-major dependencies
renovate[bot] Jun 9, 2023
61cbe5a
fix: invalid import of ParserOptions from updated parser pkg
brawaru Jun 9, 2023
351eab8
refactor: switch to bundler module resolution
brawaru Jun 9, 2023
a23b014
test: fix webpack test after prop encoding change
brawaru Jun 9, 2023
a9cdc59
chore(deps): update dependency glob to v10
renovate[bot] Jun 9, 2023
94dabee
chore(deps): update dependency import-meta-resolve to v3
renovate[bot] Jun 9, 2023
2d1f25d
fix(pkg): dependencies update catch-up
brawaru Jun 9, 2023
a09c83b
fix(pkg): downgrade and pin the formatjs deps
brawaru Jun 9, 2023
e22bed5
chore(deps): update devdependency unbuild to v2
renovate[bot] Sep 4, 2023
9e827d5
chore(deps): update devdependency memfs to v4
renovate[bot] Sep 18, 2023
0234d68
chore(deps): update actions/checkout action to v4
renovate[bot] Sep 11, 2023
0ddddac
chore(deps): update all non-major dependencies
renovate[bot] Oct 2, 2023
9d40557
chore(deps): unpin formatjs deps
brawaru Oct 4, 2023
707fe49
chore(deps): update devdependency prettier to v3
renovate[bot] Oct 4, 2023
06e284a
chore(deps): update devdependency semantic-release to v22
renovate[bot] Oct 4, 2023
43d021f
chore(deps): update devdependency prettier-plugin-jsdoc to v1
renovate[bot] Oct 4, 2023
af66ef0
Merge remote-tracking branch 'upstream/renovate/major-semantic-releas…
brawaru Oct 4, 2023
93e286e
chore(prettier): ignore pnpm lockfile
brawaru Oct 4, 2023
ad1a2a1
feat: add error handling option
brawaru Oct 5, 2023
073c0ab
fix: custom formatters not applied
brawaru Oct 5, 2023
2d6340b
docs: document transformation output options
brawaru Oct 5, 2023
8cc527a
feat: export types related to error handling
brawaru Oct 9, 2023
be3a8b5
fix: export ParseErrorHandlerResult as well
brawaru Oct 9, 2023
25205f1
feat: pass the parser function to error handler
brawaru Oct 10, 2023
392012e
fix: avoid buildStart hook for formatter resolution
brawaru Oct 23, 2023
102e432
chore(deps): update all non-major dependencies
renovate[bot] Oct 23, 2023
c6fd168
chore(deps): update devdependency vitest to v1
renovate[bot] Dec 11, 2023
b226b08
Update test snapshots for Vitest 1
brawaru Dec 11, 2023
98ac9ec
chore(deps): update all non-major dependencies
renovate[bot] Dec 11, 2023
0c40edf
Update webpack snapshot after deps update
brawaru Dec 11, 2023
575dd21
chore(deps): update actions/setup-node action to v4
renovate[bot] Dec 11, 2023
3d348fa
chore(deps): update dependency import-meta-resolve to v4
renovate[bot] Dec 11, 2023
ea2565b
fix(deps): update deps to latest versions
brawaru Dec 11, 2023
e8c55a0
fix(deps): update peerdependency vite to v5
renovate[bot] Dec 11, 2023
ee5978b
fix(deps): update peerdependency rollup to v4
renovate[bot] Dec 11, 2023
ecfbf86
chore(deps): update all non-major dependencies
renovate[bot] Dec 18, 2023
0ff1626
chore(deps): update all non-major dependencies
renovate[bot] Dec 25, 2023
aed3f14
chore(deps): update all non-major dependencies
renovate[bot] Jan 8, 2024
bebb002
Do not optimize import names in webpack tests
brawaru Jan 8, 2024
435cd5f
test: remove CJS import hack from webpack test
brawaru Jan 8, 2024
4f8749e
chore(deps): update all non-major dependencies
renovate[bot] Jan 15, 2024
82a93cf
chore(deps): update actions/cache action to v4
renovate[bot] Jan 22, 2024
14a7eb6
chore(deps): update all non-major dependencies
renovate[bot] Jan 22, 2024
7c41f07
chore(pkg): introduce changeset package
brawaru Feb 1, 2024
4ce3804
chore(pkg): write version to the package.json
brawaru Feb 1, 2024
49d5ace
chore(pkg): remove semantic-release devdep
brawaru Feb 1, 2024
a11c62f
ci: switch to using changesets for releasing
brawaru Feb 1, 2024
4c904ea
chore(renovate): do not use semantic commits
brawaru Feb 1, 2024
fba733d
Make Webpack output even more static
brawaru Feb 6, 2024
d026f02
fix(deps): update all non-major dependencies
renovate[bot] Feb 6, 2024
f383948
Fix Webpack tests after deps update
brawaru Feb 6, 2024
cbdaf7c
Futureproof error logging
brawaru Feb 16, 2024
f9cb0c2
chore(deps): update all non-major dependencies
renovate[bot] Feb 16, 2024
6733ef7
Fix string extraction in playground
brawaru Aug 1, 2025
4137398
Upgrade pnpm to v10
brawaru Aug 1, 2025
74b3e5a
Upgrade prettier and its dependencies
brawaru Aug 1, 2025
76a571b
Upgrade Turborepo to 2.5.5
brawaru Aug 1, 2025
492e6e6
Don't format pnpm lock file with Prettier
brawaru Aug 1, 2025
970664b
Upgrade Changesets CLI to 2.29.5
brawaru Aug 1, 2025
997823b
Upgrade Babel dependencies to 7.28.x
brawaru Aug 1, 2025
7ade272
Upgrade ufo to 1.6.1
brawaru Aug 1, 2025
4c2b1a9
Upgrade consola to 3.4.2
brawaru Aug 1, 2025
5b1b1b0
Upgrade pathe to 2.0.3
brawaru Aug 1, 2025
b455f45
Upgrade intl-localematcher to 0.6.1
brawaru Aug 1, 2025
7353f3a
Make VIntl unplugin a part of the monorepo
brawaru Aug 4, 2025
53c7c72
Don't specify PM in unplugin's package.json
brawaru Aug 4, 2025
81de825
Define unplugin's Turbo tasks
brawaru Aug 4, 2025
97b68f9
Depend on the workspace version of unplugin
brawaru Aug 4, 2025
8d3b5e9
Update package lock after unplugin merge
brawaru Aug 4, 2025
4603059
module: update nuxt-related deps to v4
brawaru Aug 4, 2025
ff48f5e
module: don't export CJS files
brawaru Aug 4, 2025
916c9a1
module: drop nuxt 3 support
brawaru Aug 4, 2025
0d945ae
unplugin: remove unused del-cli dependency
brawaru Aug 4, 2025
b3ca3be
unplugin: remove unused .npmrc
brawaru Aug 4, 2025
dc48fe3
unplugin: actualise test snapshots
brawaru Aug 4, 2025
df6ebd1
unplugin: upgrade pathe to 2.0.3
brawaru Aug 4, 2025
250645a
unplugin: upgrade unbuild to 3.6.0
brawaru Aug 5, 2025
e3b2e78
unplugin: upgrade glob to 11.0.3
brawaru Aug 5, 2025
11d5438
unplugin: update icu-messageformat-parser to 2.11.2
brawaru Aug 5, 2025
4b33d7a
unplugin: upgrade cli-lib to 7.4.2
brawaru Aug 5, 2025
08b6879
unplugin: remove unused types/glob package
brawaru Aug 5, 2025
d2b3e9e
unplugin: drop support of node versions below 20
brawaru Aug 5, 2025
4aa87e9
unplugin: update unplugin to 2.3.5
brawaru Aug 5, 2025
e80257e
unplugin: drop support for vite versions below 7
brawaru Aug 5, 2025
4cece3d
unplugin: upgrade vitest to 3.2.4
brawaru Aug 5, 2025
de325e5
unplugin: fix webpack tests
brawaru Aug 5, 2025
dcd17fe
unplugin: fix bug with wrapping of object hooks
brawaru Aug 5, 2025
00c10f4
unplugin: remove unused vitest config
brawaru Aug 5, 2025
28a2251
unplugin: remove unused pnpm lock file
brawaru Aug 5, 2025
917c55b
turbo: add unplugin test task
brawaru Aug 5, 2025
3d75fc2
repo: add unplugin scripts
brawaru Aug 5, 2025
a26baa1
unplugin: remove unused prettier config
brawaru Aug 5, 2025
556a8ad
unplugin: remove unused gitignore file
brawaru Aug 5, 2025
a0667dd
prettier: ignore nuxt output
brawaru Aug 5, 2025
1c0f367
prettier: ignore turbo folders
brawaru Aug 5, 2025
e24584e
repo: run prettier
brawaru Aug 5, 2025
d817c98
unplugin: remove unused changeset directory
brawaru Aug 5, 2025
0102926
unplugin: remove unused github directory
brawaru Aug 5, 2025
510cdcd
unplugin: remove unused prettierignore file
brawaru Aug 5, 2025
4745ea2
turbo: add global test task
brawaru Aug 5, 2025
ded5133
ci: run global test task in test workflow
brawaru Aug 5, 2025
2293071
unplugin: remove unused renovate file
brawaru Aug 5, 2025
3ad7e9a
unplugin: remove unused editorconfig file
brawaru Aug 5, 2025
b1ccac7
unplugin: fix package.json metadata
brawaru Aug 7, 2025
5ad1ce5
module: fix type errors
brawaru Aug 10, 2025
5e21b92
module: update formatjs/intl to 3.1.6
brawaru Aug 10, 2025
2231576
repo: update all of the dependencies
brawaru Aug 10, 2025
8ae2a31
ci: upgrade to node 20
brawaru Aug 10, 2025
54a84aa
unplugin: properly upgrade eslint to use repo config
brawaru Aug 11, 2025
c9c3ca2
docs: add missing better-sqlite3 dep for nuxt content
brawaru Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/blue-tools-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vintl/unplugin': patch
---

Upgrade FormatJS CLI library to 7.4.2
5 changes: 5 additions & 0 deletions .changeset/eight-ears-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vintl/unplugin': major
---

Drop support for Vite <7
7 changes: 7 additions & 0 deletions .changeset/itchy-games-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@vintl/nuxt': major
---

Upgrade to Nuxt 4

This drops support for Nuxt 3.
9 changes: 9 additions & 0 deletions .changeset/smart-beds-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@vintl/unplugin': patch
---

Fix the order of arguments in default plugin wrapper

Plugin wrapper used to call original hook handler with incorrect order of arguments if the hook was in an object form (`transform: { handler(code, id) {...} }` as opposed to regular `transform() { ... }`).

Somehow this went unnoticed for a very long time. Likely, because no one used object form of hooks before.
5 changes: 5 additions & 0 deletions .changeset/young-flowers-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vintl/unplugin': major
---

Drop support for Node.js <20
126 changes: 63 additions & 63 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
name: Test and release
on:
push:
branches: [main, next, alpha, beta, rc]
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
if: >-
!contains(github.event.head_commit.message, '[skip ci]')
&& !contains(github.event.head_commit.message, '[ci skip]')
&& !contains(github.event.head_commit.message, '[auto]')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install pnpm via corepack
shell: bash
run: |
corepack enable
corepack prepare --activate
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Create release PR or publish to npm
if: github.repository_owner == 'vintl-dev'
id: changesets
uses: changesets/action@v1
with:
publish: pnpm _ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Test and release

on:
push:
branches: [main, next, alpha, beta, rc]

jobs:
release:
runs-on: ubuntu-latest

permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read

if: >-
!contains(github.event.head_commit.message, '[skip ci]')
&& !contains(github.event.head_commit.message, '[ci skip]')
&& !contains(github.event.head_commit.message, '[auto]')

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install pnpm via corepack
shell: bash
run: |
corepack enable
corepack prepare --activate

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Create release PR or publish to npm
if: github.repository_owner == 'vintl-dev'
id: changesets
uses: changesets/action@v1
with:
publish: pnpm _ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
161 changes: 82 additions & 79 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,79 +1,82 @@
name: Test pull request

on:
pull_request:
branches: [main, next, alpha, beta, rc]

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Check changed files
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
shared: &shared
- .npmrc
- package.json
- pnpm-lock.yaml
nvintl:
- *shared
- 'packages/vintl-nuxt/**'
playground:
- *shared
- 'apps/playground/**'
- 'packages/translations/**'
docs:
- *shared
- 'apps/docs/**'

- name: Install pnpm via corepack
shell: bash
run: |
corepack enable
corepack prepare --activate

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Prepare everything
run: pnpm all:prepare

- name: Lint everything
run: pnpm all:lint

- name: Build module
if: steps.filter.outputs.nvintl == 'true'
run: pnpm mod:build

- name: Build playground
if: steps.filter.outputs.playground == 'true' || steps.filter.outputs.nvintl == 'true'
run: pnpm pg:build

- name: Build docs
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.nvintl == 'true'
run: pnpm docs:build
name: Test pull request

on:
pull_request:
branches: [main, next, alpha, beta, rc]

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Check changed files
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
shared: &shared
- .npmrc
- package.json
- pnpm-lock.yaml
nvintl:
- *shared
- 'packages/vintl-nuxt/**'
playground:
- *shared
- 'apps/playground/**'
- 'packages/translations/**'
docs:
- *shared
- 'apps/docs/**'

- name: Install pnpm via corepack
shell: bash
run: |
corepack enable
corepack prepare --activate

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Prepare everything
run: pnpm all:prepare

- name: Lint everything
run: pnpm all:lint

- name: Test everything
run: pnpm all:test

- name: Build module
if: steps.filter.outputs.nvintl == 'true'
run: pnpm mod:build

- name: Build playground
if: steps.filter.outputs.playground == 'true' || steps.filter.outputs.nvintl == 'true'
run: pnpm pg:build

- name: Build docs
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.nvintl == 'true'
run: pnpm docs:build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ dist
!.vscode/settings.json

# Nuxt
.nuxt
.nuxt
.data
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
apps/docs/content/0.index.md
apps/docs/content/0.index.md
pnpm-lock.yaml
.output
.turbo
Loading