Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4 #238

Merged
merged 11 commits into from
Oct 16, 2023
Merged

v4 #238

Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- '**'

jobs:
Lint:
Expand All @@ -16,7 +22,7 @@ jobs:
- name: Install Dependencies
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
run_install: true

- run: pnpm run lint
Expand All @@ -26,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14, 16]
node-version: [16, 18]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand All @@ -40,7 +46,7 @@ jobs:
- name: Install Dependencies
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
run_install: true

- run: pnpm run test:ci
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

lint-staged
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# [4.0.0](https://github.com/kaisermann/svelte-i18n/compare/v3.7.4...v4.0.0) (2023-10-16)


### Bug Fixes

* make package esm-only ([d54ee67](https://github.com/kaisermann/svelte-i18n/commit/d54ee678e14c7fdffe7be9ecda65813742aac95e))
* remove node 14 from tests ([458a759](https://github.com/kaisermann/svelte-i18n/commit/458a75901824a11d22a6917ffc41448f62cf7449))


### BREAKING CHANGES

* package is now esm-only

* chore(deps-dev): bump postcss from 8.4.29 to 8.4.31

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.29 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.29...8.4.31)



## [3.7.4](https://github.com/kaisermann/svelte-i18n/compare/v3.4.0...v3.7.4) (2023-09-04)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
export default {
testEnvironment: 'jsdom',
collectCoverage: true,
testMatch: ['<rootDir>/test/**/*.test.ts'],
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "svelte-i18n",
"version": "3.7.4",
"main": "dist/runtime.cjs.js",
"module": "dist/runtime.esm.js",
"version": "4.0.0",
"type": "module",
"main": "dist/runtime.js",
"exports": {
"types": "./dist/runtime.d.ts",
"default": "./dist/runtime.js"
},
"types": "dist/runtime.d.ts",
"bin": {
"svelte-i18n": "dist/cli.js"
Expand Down Expand Up @@ -35,16 +39,12 @@
"release": " git add package.json && git commit -m \"chore(release): v$npm_package_version :tada:\"",
"prebuild": "pnpm clean",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1 && git add CHANGELOG.md",
"prepublishOnly": "pnpm test -- --no-cache && pnpm build"
"prepublishOnly": "pnpm test -- --no-cache && pnpm build && publint",
"prepare": "husky install"
},
"files": [
"dist/"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix",
Expand All @@ -65,34 +65,34 @@
"@types/dlv": "^1.1.2",
"@types/estree": "1.0.1",
"@types/intl": "^1.2.0",
"@types/jest": "^29.5.4",
"@types/jest": "^29.5.5",
"@types/node": "^20.5.9",
"@types/sade": "^1.7.4",
"conventional-changelog-cli": "^2.2.2",
"cross-env": "^7.0.3",
"eslint": "^8.48.0",
"full-icu": "^1.5.0",
"husky": "^4.3.8",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^13.0.3",
"prettier": "^3.0.3",
"publint": "^0.2.4",
"rollup": "^3.28.1",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-dts": "^6.0.1",
"rollup-plugin-esbuild": "^5.0.0",
"sass": "^1.56.1",
"svelte": "^3.53.1",
"svelte-preprocess": "^5.0.4",
"ts-jest": "^29.0.3",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"dependencies": {
"cli-color": "^2.0.3",
"deepmerge": "^4.2.2",
"esbuild": "^0.19.2",
"estree-walker": "^2",
"intl-messageformat": "^9.13.0",
"intl-messageformat": "^10.5.3",
"sade": "^1.8.1",
"tiny-glob": "^0.2.9"
}
Expand Down
Loading