contentful-resolve-response 1.9.4 → 1.9.5

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 +1 -0
  2. package/package.json +27 -6
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # contentful-resolve-response
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/contentful-resolve-response.svg)](https://www.npmjs.com/package/contentful-resolve-response)
4
+ [![CI](https://github.com/contentful/contentful-resolve-response/actions/workflows/main.yaml/badge.svg)](https://github.com/contentful/contentful-resolve-response/actions/workflows/main.yaml)
4
5
 
5
6
  Suppose you have a Contentful query's response JSON. The links are
6
7
  nice, but what we really usually need is the response with a resolved
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-resolve-response",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -10,10 +10,8 @@
10
10
  "lint": "eslint index.js test",
11
11
  "test": "BABEL_ENV=cjs mocha --require babel-register 'test/**/*-test.js'",
12
12
  "test-watch": "npm run test -- --watch",
13
- "precommit": "npm run lint",
14
- "prepush": "npm run test",
15
- "prepublishOnly": "npm run build",
16
- "format": "prettier --config ./.prettierrc --write \"{*.js,**/*.js,*.ts,**/*.ts,*.json,**/*.json}\"",
13
+ "format:fix": "npm run format:check -- --write",
14
+ "format:check": "prettier --check \"{*.js,**/*.js,*.ts,**/*.ts,*.json,**/*.json}\"",
17
15
  "commitlint-circle": "commitlint-circle",
18
16
  "semantic-release": "semantic-release"
19
17
  },
@@ -42,9 +40,10 @@
42
40
  "eslint": "^9.15.0",
43
41
  "eslint-plugin-mocha": "^11.0.0",
44
42
  "husky": "^9.0.6",
43
+ "lint-staged": "^16.2.6",
45
44
  "mocha": "^11.0.1",
46
45
  "prettier": "^3.0.0",
47
- "semantic-release": "^19.0.5"
46
+ "semantic-release": "^25.0.2"
48
47
  },
49
48
  "files": [
50
49
  "dist"
@@ -60,7 +59,29 @@
60
59
  "@commitlint/config-conventional"
61
60
  ]
62
61
  },
62
+ "lint-staged": {
63
+ "*.{js,ts,json}": [
64
+ "prettier --write",
65
+ "eslint --fix"
66
+ ],
67
+ "*.md": [
68
+ "prettier --write"
69
+ ]
70
+ },
63
71
  "release": {
72
+ "branches": [
73
+ "master",
74
+ {
75
+ "name": "beta",
76
+ "channel": "beta",
77
+ "prerelease": true
78
+ },
79
+ {
80
+ "name": "dev",
81
+ "channel": "dev",
82
+ "prerelease": true
83
+ }
84
+ ],
64
85
  "plugins": [
65
86
  [
66
87
  "@semantic-release/commit-analyzer",