leoric 2.2.0 → 2.2.1
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/History.md +9 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/realm.js +0 -5
package/History.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
2.2.1 / 2022-02-24
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
## What's Changed
|
|
5
|
+
* fix: realm.DataTypes should be invokable by @cyjake in https://github.com/cyjake/leoric/pull/282
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Full Changelog**: https://github.com/cyjake/leoric/compare/v2.2.0...v2.2.1
|
|
9
|
+
|
|
1
10
|
2.2.0 / 2022-02-24
|
|
2
11
|
==================
|
|
3
12
|
|
package/index.js
CHANGED
package/package.json
CHANGED
package/src/realm.js
CHANGED
|
@@ -129,11 +129,6 @@ class Realm {
|
|
|
129
129
|
this.options = Spine.options = options;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
get DataTypes() {
|
|
133
|
-
if (!this.driver) throw new Error('database not connected yet');
|
|
134
|
-
return this.driver.DataTypes;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
132
|
define(name, attributes, opts = {}, descriptors = {}) {
|
|
138
133
|
const Model = class extends this.Bone {
|
|
139
134
|
static name = name;
|