@adonisjs/lock 1.0.0 → 1.1.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/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  Atomic locks (mutex) for AdonisJS applications. The package is built on top of [Verrou](https://github.com/Julien-R44/verrou) and provides a simple API to acquire and release locks with support for multiple drivers.
9
9
 
10
10
  ## Official Documentation
11
- The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/lock/introduction).
11
+ The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/locks).
12
12
 
13
13
  ## Contributing
14
14
  One of the primary goals of AdonisJS is to have a vibrant community of users and contributors who believes in the principles of the framework.
package/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./chunk-6C3VEZWH.js";
3
+ } from "./chunk-MLKGABMK.js";
4
4
 
5
5
  // src/stores.ts
6
6
  import { configProvider } from "@adonisjs/core";
@@ -1,4 +1,4 @@
1
- import "../chunk-6C3VEZWH.js";
1
+ import "../chunk-MLKGABMK.js";
2
2
 
3
3
  // providers/lock_provider.ts
4
4
  var LockProvider = class {
@@ -1,4 +1,4 @@
1
- import "../chunk-6C3VEZWH.js";
1
+ import "../chunk-MLKGABMK.js";
2
2
 
3
3
  // services/main.ts
4
4
  import app from "@adonisjs/core/services/app";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/lock",
3
3
  "description": "Atomic locks (mutex) for AdonisJS applications",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "engines": {
6
6
  "node": ">=20.6.0"
7
7
  },
@@ -27,46 +27,48 @@
27
27
  "prebuild": "npm run lint && npm run clean",
28
28
  "compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
29
29
  "build": "tsup-node && tsc --emitDeclarationOnly --declaration && npm run copy:templates",
30
- "release": "np",
30
+ "release": "npx release-it",
31
31
  "version": "npm run build",
32
32
  "prepublishOnly": "npm run build"
33
33
  },
34
34
  "devDependencies": {
35
- "@adonisjs/assembler": "^7.2.3",
36
- "@adonisjs/core": "^6.3.1",
35
+ "@adonisjs/assembler": "^7.7.0",
36
+ "@adonisjs/core": "^6.12.0",
37
37
  "@adonisjs/eslint-config": "^1.3.0",
38
- "@adonisjs/lucid": "^20.3.1",
38
+ "@adonisjs/lucid": "^21.1.0",
39
39
  "@adonisjs/prettier-config": "^1.3.0",
40
40
  "@adonisjs/redis": "^8.0.1",
41
41
  "@adonisjs/tsconfig": "^1.3.0",
42
- "@japa/assert": "^2.1.0",
43
- "@japa/file-system": "^2.2.0",
44
- "@japa/runner": "^3.1.1",
45
- "@swc/core": "^1.4.6",
46
- "@types/node": "^20.11.25",
47
- "better-sqlite3": "^9.4.3",
48
- "c8": "^9.1.0",
42
+ "@japa/assert": "^3.0.0",
43
+ "@japa/file-system": "^2.3.0",
44
+ "@japa/runner": "^3.1.4",
45
+ "@swc/core": "^1.6.3",
46
+ "@types/node": "^20.14.5",
47
+ "better-sqlite3": "^11.0.0",
48
+ "c8": "^10.1.2",
49
49
  "copyfiles": "^2.4.1",
50
50
  "del-cli": "^5.1.0",
51
51
  "dotenv": "^16.4.5",
52
52
  "eslint": "^8.57.0",
53
+ "luxon": "^3.4.4",
53
54
  "mysql": "^2.18.1",
54
- "np": "^10.0.0",
55
- "pg": "^8.11.3",
56
- "prettier": "^3.2.5",
55
+ "pg": "^8.12.0",
56
+ "prettier": "^3.3.2",
57
+ "release-it": "^17.3.0",
57
58
  "timekeeper": "^2.3.1",
58
59
  "ts-node": "^10.9.2",
59
- "tsup": "^8.0.2",
60
- "typescript": "^5.4.2"
60
+ "tsup": "^8.1.0",
61
+ "typescript": "^5.4.5"
61
62
  },
62
63
  "dependencies": {
63
- "@verrou/core": "^0.4.0"
64
+ "@verrou/core": "^0.5.0"
64
65
  },
65
66
  "peerDependencies": {
66
67
  "@adonisjs/assembler": "^7.0.0",
67
68
  "@adonisjs/core": "^6.2.0",
68
- "@adonisjs/lucid": "^20.0.0",
69
- "@adonisjs/redis": "^8.0.0"
69
+ "@adonisjs/lucid": "^20.0.0 || ^21.0.0",
70
+ "@adonisjs/redis": "^8.0.0",
71
+ "luxon": "^3.0.0"
70
72
  },
71
73
  "peerDependenciesMeta": {
72
74
  "@adonisjs/redis": {
@@ -100,11 +102,17 @@
100
102
  "access": "public",
101
103
  "tag": "latest"
102
104
  },
103
- "np": {
104
- "message": "chore(release): %s",
105
- "tag": "latest",
106
- "branch": "main",
107
- "anyBranch": false
105
+ "release-it": {
106
+ "git": {
107
+ "commitMessage": "chore(release): ${version}",
108
+ "tagAnnotation": "v${version}",
109
+ "tagName": "v${version}"
110
+ },
111
+ "github": {
112
+ "release": true,
113
+ "releaseName": "v${version}",
114
+ "web": true
115
+ }
108
116
  },
109
117
  "c8": {
110
118
  "reporter": [
File without changes