Skip to content

Commit 7ca777f

Browse files
authored
Merge pull request #294 from ionic-team/feat/angular-release
Resolves #293, #284
2 parents e1ec9f9 + 56bd9ee commit 7ca777f

17 files changed

+34314
-20775
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
lerna-debug.log
3+
.DS_Store

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## [3.0.2]
1+
## [4.0.0](https://github.com/ionic-team/ionic-storage/compare/v3.0.6...v4.0.0) (2023-05-19)
2+
3+
Improves compatibility with Angular 15+ applications.
4+
5+
## [3.0.2](https://github.com/ionic-team/ionic-storage/compare/v2.3.1...v3.0.2) (2021-03-16)
26

37
Major release with breaking changes. Adds support for non-Angular projects, such as React, Vue, or plain JS, as well as the ability to specify different storage engines. Also adds support for [Ionic Secure Storage](https://ionic.io/docs/secure-storage) with Encryption support.
48

RELEASE.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Releasing a new version
2+
3+
## `@ionic/core`
4+
5+
1. Update the version in `lerna.json` and `lib/package.json`
6+
2. Update the `CHANGELOG.md` file with the new version and date.
7+
3. Install dependencies from `lib/` to ensure the `package-lock.json` is updated with the latest version.
8+
4. Run `npm publish` to publish the new version of `@ionic/core` (this will build and publish the package).
9+
5. Commit the changes.
10+
11+
## `@ionic/angular`
12+
13+
1. Update the version in `angular/package.json`
14+
2. Update the `dependencies` of `angular/package.json` to reference the new version of `@ionic/core`.
15+
3. Install the new version of `@ionic/core` by running `npm install` in the `angular` directory.
16+
4. Build `@ionic/angular` by running `npm run build` in the `angular` directory.
17+
5. Set the current working directory to `angular/dist`.
18+
6. Run `npm publish` to publish the new version of `@ionic/angular`.
19+
7. Commit the changes.

angular/.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

angular/.eslintrc.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:@typescript-eslint/recommended',
5+
'@ionic/eslint-config/recommended',
6+
'prettier',
7+
],
8+
parser: '@typescript-eslint/parser',
9+
plugins: ['@typescript-eslint'],
10+
rules: {
11+
'@typescript-eslint/no-unused-vars': 'off',
12+
'@typescript-eslint/no-empty-function': 'off',
13+
},
14+
};

angular/.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

angular/.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('@ionic/prettier-config'),
3+
};

angular/dist/package.json

+23-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ionic/storage-angular",
3-
"version": "3.0.6",
3+
"version": "4.0.0",
44
"description": "Ionic Storage utility",
55
"repository": {
66
"type": "git",
@@ -19,14 +19,13 @@
1919
},
2020
"homepage": "https://github.com/ionic-team/ionic-storage#readme",
2121
"dependencies": {
22-
"@ionic/storage": "^3.0.4",
23-
"tslib": "^1.10.0"
22+
"@ionic/storage": "^4.0.0",
23+
"tslib": "^2.3.0"
2424
},
2525
"peerDependencies": {
2626
"@angular/core": "*",
2727
"rxjs": "*"
2828
},
29-
"$schema": "./node_modules/ng-packagr/package.schema.json",
3029
"release": {
3130
"branches": "stable",
3231
"pkgRoot": "dist",
@@ -58,14 +57,24 @@
5857
}
5958
},
6059
"gitHead": "0b550acdc2d21c95c68e0655b28698ec60fa283a",
61-
"main": "bundles/ionic-storage-angular.umd.js",
62-
"module": "fesm5/ionic-storage-angular.js",
63-
"es2015": "fesm2015/ionic-storage-angular.js",
64-
"esm5": "esm5/ionic-storage-angular.js",
65-
"esm2015": "esm2015/ionic-storage-angular.js",
66-
"fesm5": "fesm5/ionic-storage-angular.js",
67-
"fesm2015": "fesm2015/ionic-storage-angular.js",
68-
"typings": "ionic-storage-angular.d.ts",
69-
"metadata": "ionic-storage-angular.metadata.json",
60+
"module": "fesm2015/ionic-storage-angular.mjs",
61+
"es2020": "fesm2020/ionic-storage-angular.mjs",
62+
"esm2020": "esm2020/ionic-storage-angular.mjs",
63+
"fesm2020": "fesm2020/ionic-storage-angular.mjs",
64+
"fesm2015": "fesm2015/ionic-storage-angular.mjs",
65+
"typings": "index.d.ts",
66+
"exports": {
67+
"./package.json": {
68+
"default": "./package.json"
69+
},
70+
".": {
71+
"types": "./index.d.ts",
72+
"esm2020": "./esm2020/ionic-storage-angular.mjs",
73+
"es2020": "./fesm2020/ionic-storage-angular.mjs",
74+
"es2015": "./fesm2015/ionic-storage-angular.mjs",
75+
"node": "./fesm2015/ionic-storage-angular.mjs",
76+
"default": "./fesm2020/ionic-storage-angular.mjs"
77+
}
78+
},
7079
"sideEffects": false
71-
}
80+
}

angular/ng-package.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "node_modules/ng-packagr/ng-package.schema.json",
3+
"lib": {
4+
"entryFile": "src/index.ts"
5+
},
6+
"allowedNonPeerDependencies": [
7+
"localforage",
8+
"@ionic/storage"
9+
]
10+
}

0 commit comments

Comments
 (0)