@amedia/user 0.14.46 → 0.14.49

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 +8 -5
  2. package/package.json +22 -10
package/README.md CHANGED
@@ -281,11 +281,14 @@ NB: Please be advised, as with all packages in Eik, that once you update the ali
281
281
  Since not all IDEs, linters etc support import maps and certainly don't support loading types that way, yet; we must publish typings to npm and the implementation to Eik.
282
282
  This has been built into the prepublishOnly and postpublish hooks in package.json
283
283
 
284
- 1. Your change is merged to master.
285
- 2. Checkout and update master.
286
- 3. Update the version number i both package.json and eik.json.
287
- 4. Run `npm publish` (will publish to both npm and eik)
288
- 5. Commit changed files to master.
284
+ 1. Before merging
285
+ 1. `npx changeset`
286
+ 2. Follow the instructions
287
+ 3. Add the changeset `git add .changeset`
288
+ 4. Commit and push
289
+ 2. After merging
290
+ 1. A release PR will we autogenerated (given that tests pass)
291
+ 2. Merge that PR to push out a new version
289
292
 
290
293
  Now the new version can be installed in a project by running `npm install -u @amedia/user@v<new version>`
291
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amedia/user",
3
- "version": "0.14.46",
3
+ "version": "0.14.49",
4
4
  "description": "Client lib for working with aID user and associated data",
5
5
  "repository": "https://github.com/amedia/amedia-user-js",
6
6
  "author": "Amedia Utvikling (ID og data)",
@@ -16,7 +16,17 @@
16
16
  "dist/*"
17
17
  ],
18
18
  "typings": "dist/user.d.ts",
19
+ "eik": {
20
+ "server": "https://assets.acdn.no",
21
+ "files": {
22
+ "user.js": "./dist/user.js",
23
+ "user.js.map": "./dist/user.js.map",
24
+ "user.d.ts": "./dist/user.d.ts"
25
+ }
26
+ },
19
27
  "scripts": {
28
+ "changeset": "changeset",
29
+ "release": "changeset publish",
20
30
  "test": "jest --coverage",
21
31
  "clean-dist": "rm -rf ./dist",
22
32
  "lint": "eslint ./src --ext .ts",
@@ -26,9 +36,9 @@
26
36
  "typings": "tsc --noEmit",
27
37
  "checkVersion": "node --experimental-json-modules checkVersion.js",
28
38
  "stub-npmjs-package": "find ./dist -type f ! -name '*.d.ts' -delete && cp -v stubs/* dist/.",
29
- "eik:package": "run-p typings lint && npm run test && npm run build && eik package",
30
- "prepublishOnly": "npm run checkVersion && run-p clean-dist typings lint && npm run test && npm run build && npm run stub-npmjs-package",
31
- "postpublish": "npm run build && eik package"
39
+ "eik:package": "run-p typings lint && npm run test && npm run build && npx eik package",
40
+ "prepublishOnly": "run-p clean-dist typings lint && npm run test && npm run build && npm run stub-npmjs-package",
41
+ "postpublish": "npm run build && npx eik package"
32
42
  },
33
43
  "dependencies": {
34
44
  "@amedia/browserid": "^1.0.17",
@@ -40,27 +50,29 @@
40
50
  "@amedia/eslint-config-base": "6.0.0",
41
51
  "@amedia/eslint-config-typescript": "6.0.0",
42
52
  "@babel/eslint-parser": "^7.17.0",
53
+ "@changesets/changelog-github": "^0.4.4",
54
+ "@changesets/cli": "^2.22.0",
43
55
  "@eik/cli": "^2.0.22",
44
- "@eik/esbuild-plugin": "^1.1.7",
56
+ "@eik/esbuild-plugin": "^1.1.9",
45
57
  "@types/jest": "^27.4.1",
46
- "@typescript-eslint/eslint-plugin": "^5.21.0",
47
- "@typescript-eslint/parser": "^5.21.0",
58
+ "@typescript-eslint/eslint-plugin": "^5.23.0",
59
+ "@typescript-eslint/parser": "^5.23.0",
48
60
  "concurrently": "^7.1.0",
49
61
  "cors": "^2.8.5",
50
62
  "esbuild": "0.14.38",
51
- "eslint": "^8.14.0",
63
+ "eslint": "^8.15.0",
52
64
  "eslint-config-airbnb-typescript": "^17.0.0",
53
65
  "eslint-config-prettier": "^8.5.0",
54
66
  "eslint-plugin-import": "^2.26.0",
55
67
  "eslint-plugin-prettier": "^4.0.0",
56
- "express": "^4.18.0",
68
+ "express": "^4.18.1",
57
69
  "jest": "^27.5.1",
58
70
  "jest-extended": "^2.0.0",
59
71
  "jest-fetch-mock": "^3.0.3",
60
72
  "mockdate": "^3.0.5",
61
73
  "npm-run-all": "^4.1.5",
62
74
  "prettier": "^2.6.2",
63
- "rollup": "2.70.2",
75
+ "rollup": "2.72.1",
64
76
  "rollup-plugin-dts": "4.2.1",
65
77
  "ts-jest": "^27.1.4",
66
78
  "tslib": "^2.4.0",