expo-image-manipulator 13.1.5 → 13.1.7

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 (32) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/android/build.gradle +2 -2
  3. package/build/web/ImageManipulatorContext.web.d.ts +4 -2
  4. package/build/web/ImageManipulatorContext.web.d.ts.map +1 -1
  5. package/expo-module.config.json +1 -7
  6. package/package.json +3 -3
  7. package/src/web/ImageManipulatorContext.web.ts +13 -3
  8. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5-sources.jar +0 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5-sources.jar.md5 +0 -1
  10. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5-sources.jar.sha1 +0 -1
  11. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5-sources.jar.sha256 +0 -1
  12. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5-sources.jar.sha512 +0 -1
  13. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.aar +0 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.aar.md5 +0 -1
  15. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.aar.sha1 +0 -1
  16. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.aar.sha256 +0 -1
  17. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.aar.sha512 +0 -1
  18. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.module +0 -103
  19. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.module.md5 +0 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.module.sha1 +0 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.module.sha256 +0 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.module.sha512 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.pom +0 -41
  24. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.pom.md5 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.pom.sha1 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.pom.sha256 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.5/expo.modules.imagemanipulator-13.1.5.pom.sha512 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml +0 -13
  29. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.md5 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha1 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha256 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.1.7 — 2025-05-08
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix `ReferenceError` during export for web. ([#36703](https://github.com/expo/expo/pull/36703) by [@aleqsio](https://github.com/aleqsio))
18
+
19
+ ## 13.1.6 — 2025-05-06
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 13.1.5 — 2025-04-30
14
24
 
15
25
  _This version does not introduce any user-facing changes._
@@ -36,6 +46,7 @@ _This version does not introduce any user-facing changes._
36
46
 
37
47
  - Changed `export` to `export type` for TS type declarations. ([#33446](https://github.com/expo/expo/pull/33446) by [@j-piasecki](https://github.com/j-piasecki))
38
48
  - Fixed `saveAsync` not respecting the format and compression quality. ([#33690](https://github.com/expo/expo/pull/33690) by [@tsapeta](https://github.com/tsapeta))
49
+ - [Web] Overwrite class `name` property in `ImageManipulator`. ([#35806](https://github.com/expo/expo/pull/35806) by [@alimek](https://github.com/alimek))
39
50
 
40
51
  ### 💡 Others
41
52
 
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '13.1.5'
7
+ version = '13.1.7'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.imagemanipulator"
11
11
  defaultConfig {
12
12
  versionCode 23
13
- versionName "13.1.5"
13
+ versionName "13.1.7"
14
14
  }
15
15
  }
16
16
 
@@ -1,10 +1,12 @@
1
1
  import { SharedObject } from 'expo';
2
- import ImageManipulatorImageRef from './ImageManipulatorImageRef.web';
3
2
  import { ActionCrop, ActionExtent, FlipType } from '../ImageManipulator.types';
3
+ import ImageManipulatorImageRef from './ImageManipulatorImageRef.web';
4
4
  type ContextLoader = () => HTMLCanvasElement | Promise<HTMLCanvasElement>;
5
5
  export default class ImageManipulatorContext extends SharedObject {
6
6
  private loader;
7
- private currentTask;
7
+ private _currentTask;
8
+ get currentTask(): Promise<HTMLCanvasElement>;
9
+ set currentTask(task: Promise<HTMLCanvasElement>);
8
10
  constructor(loader?: ContextLoader);
9
11
  resize(size: {
10
12
  width: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ImageManipulatorContext.web.d.ts","sourceRoot":"","sources":["../../src/web/ImageManipulatorContext.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,wBAAwB,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAG/E,KAAK,aAAa,GAAG,MAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE1E,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,YAAY;IAC/D,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,WAAW,CAA6B;gBAEpC,MAAM,CAAC,EAAE,aAAa;IAMlC,MAAM,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,uBAAuB;IAIxE,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB;IAIhD,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,uBAAuB;IAIjD,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,uBAAuB;IAIvD,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,uBAAuB;IAIhE,KAAK,IAAI,uBAAuB;IAK1B,WAAW,IAAI,OAAO,CAAC,wBAAwB,CAAC;IA4BtD,OAAO,CAAC,OAAO;CAQhB"}
1
+ {"version":3,"file":"ImageManipulatorContext.web.d.ts","sourceRoot":"","sources":["../../src/web/ImageManipulatorContext.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,wBAAwB,MAAM,gCAAgC,CAAC;AAGtE,KAAK,aAAa,GAAG,MAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE1E,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,YAAY;IAC/D,OAAO,CAAC,MAAM,CAAgB;IAE9B,OAAO,CAAC,YAAY,CAAyC;IAC7D,IAAI,WAAW,+BAMd;IACD,IAAI,WAAW,CAAC,IAAI,4BAAA,EAEnB;gBAEW,MAAM,CAAC,EAAE,aAAa;IAKlC,MAAM,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,uBAAuB;IAIxE,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB;IAIhD,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,uBAAuB;IAIjD,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,uBAAuB;IAIvD,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,uBAAuB;IAIhE,KAAK,IAAI,uBAAuB;IAK1B,WAAW,IAAI,OAAO,CAAC,wBAAwB,CAAC;IA4BtD,OAAO,CAAC,OAAO;CAQhB"}
@@ -4,12 +4,6 @@
4
4
  "modules": ["ImageManipulatorModule"]
5
5
  },
6
6
  "android": {
7
- "modules": ["expo.modules.imagemanipulator.ImageManipulatorModule"],
8
- "publication": {
9
- "groupId": "host.exp.exponent",
10
- "artifactId": "expo.modules.imagemanipulator",
11
- "version": "13.1.5",
12
- "repository": "local-maven-repo"
13
- }
7
+ "modules": ["expo.modules.imagemanipulator.ImageManipulatorModule"]
14
8
  }
15
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-image-manipulator",
3
- "version": "13.1.5",
3
+ "version": "13.1.7",
4
4
  "description": "Provides functions that let you manipulation images on the local file system, eg: resize, crop.",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -34,10 +34,10 @@
34
34
  "expo-image-loader": "~5.1.0"
35
35
  },
36
36
  "devDependencies": {
37
- "expo-module-scripts": "^4.1.6"
37
+ "expo-module-scripts": "^4.1.7"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "expo": "*"
41
41
  },
42
- "gitHead": "84355076bc31a356aa3d23257f387f221885f53d"
42
+ "gitHead": "49c9d53cf0a9fc8179d1c8f5268beadd141f70ca"
43
43
  }
@@ -1,19 +1,29 @@
1
1
  import { SharedObject } from 'expo';
2
2
 
3
- import ImageManipulatorImageRef from './ImageManipulatorImageRef.web';
4
3
  import { ActionCrop, ActionExtent, FlipType } from '../ImageManipulator.types';
4
+ import ImageManipulatorImageRef from './ImageManipulatorImageRef.web';
5
5
  import { crop, extent, flip, resize, rotate } from './actions/index.web';
6
6
 
7
7
  type ContextLoader = () => HTMLCanvasElement | Promise<HTMLCanvasElement>;
8
8
 
9
9
  export default class ImageManipulatorContext extends SharedObject {
10
10
  private loader: ContextLoader;
11
- private currentTask: Promise<HTMLCanvasElement>;
11
+
12
+ private _currentTask: Promise<HTMLCanvasElement> | undefined;
13
+ get currentTask() {
14
+ if (this._currentTask) {
15
+ return this._currentTask;
16
+ }
17
+ this._currentTask = new Promise((resolve) => resolve(this.loader()));
18
+ return this._currentTask;
19
+ }
20
+ set currentTask(task) {
21
+ this._currentTask = task;
22
+ }
12
23
 
13
24
  constructor(loader?: ContextLoader) {
14
25
  super();
15
26
  this.loader = loader ?? (() => document.createElement('canvas'));
16
- this.currentTask = new Promise((resolve) => resolve(this.loader()));
17
27
  }
18
28
 
19
29
  resize(size: { width: number; height: number }): ImageManipulatorContext {
@@ -1 +0,0 @@
1
- 83452b235a0ea4b9ed9dc693de4fdda6a7940c15c27b9033fb0e398e00b56a7b
@@ -1 +0,0 @@
1
- 08af6c95ebf4df88f09274f2dc172df230d57b8f3ca2d1774d44584282b25d9d93ba57a78a2cdfef9232145c67aa8765b8df86f6c79852ba8c1b6b3eb3c21350
@@ -1 +0,0 @@
1
- d89bc4ca8a27b1ef34bbe9b828365f8b9ee105bc9c288dc50dbc13c5decdc3e3
@@ -1 +0,0 @@
1
- 75a5bb9e3a3edaf2250acd9ae86f23d421c7f99acce9cee0044f028c6b2f18c11b9a56a89f680f96e37e493ccb88e2ceb574811e528f92b8652f802840920cd7
@@ -1,103 +0,0 @@
1
- {
2
- "formatVersion": "1.1",
3
- "component": {
4
- "group": "host.exp.exponent",
5
- "module": "expo.modules.imagemanipulator",
6
- "version": "13.1.5",
7
- "attributes": {
8
- "org.gradle.status": "release"
9
- }
10
- },
11
- "createdBy": {
12
- "gradle": {
13
- "version": "8.13"
14
- }
15
- },
16
- "variants": [
17
- {
18
- "name": "releaseVariantReleaseApiPublication",
19
- "attributes": {
20
- "org.gradle.category": "library",
21
- "org.gradle.dependency.bundling": "external",
22
- "org.gradle.libraryelements": "aar",
23
- "org.gradle.usage": "java-api"
24
- },
25
- "dependencies": [
26
- {
27
- "group": "androidx.annotation",
28
- "module": "annotation",
29
- "version": {
30
- "requires": "1.0.0"
31
- }
32
- }
33
- ],
34
- "files": [
35
- {
36
- "name": "expo.modules.imagemanipulator-13.1.5.aar",
37
- "url": "expo.modules.imagemanipulator-13.1.5.aar",
38
- "size": 74485,
39
- "sha512": "75a5bb9e3a3edaf2250acd9ae86f23d421c7f99acce9cee0044f028c6b2f18c11b9a56a89f680f96e37e493ccb88e2ceb574811e528f92b8652f802840920cd7",
40
- "sha256": "d89bc4ca8a27b1ef34bbe9b828365f8b9ee105bc9c288dc50dbc13c5decdc3e3",
41
- "sha1": "af2eaf94f3f3347569bb73e6195ab76e0607e5fc",
42
- "md5": "cfb7ce8cffa4293a4be28eed18f097d4"
43
- }
44
- ]
45
- },
46
- {
47
- "name": "releaseVariantReleaseRuntimePublication",
48
- "attributes": {
49
- "org.gradle.category": "library",
50
- "org.gradle.dependency.bundling": "external",
51
- "org.gradle.libraryelements": "aar",
52
- "org.gradle.usage": "java-runtime"
53
- },
54
- "dependencies": [
55
- {
56
- "group": "org.jetbrains.kotlin",
57
- "module": "kotlin-stdlib-jdk7",
58
- "version": {
59
- "requires": "2.0.21"
60
- }
61
- },
62
- {
63
- "group": "androidx.annotation",
64
- "module": "annotation",
65
- "version": {
66
- "requires": "1.0.0"
67
- }
68
- }
69
- ],
70
- "files": [
71
- {
72
- "name": "expo.modules.imagemanipulator-13.1.5.aar",
73
- "url": "expo.modules.imagemanipulator-13.1.5.aar",
74
- "size": 74485,
75
- "sha512": "75a5bb9e3a3edaf2250acd9ae86f23d421c7f99acce9cee0044f028c6b2f18c11b9a56a89f680f96e37e493ccb88e2ceb574811e528f92b8652f802840920cd7",
76
- "sha256": "d89bc4ca8a27b1ef34bbe9b828365f8b9ee105bc9c288dc50dbc13c5decdc3e3",
77
- "sha1": "af2eaf94f3f3347569bb73e6195ab76e0607e5fc",
78
- "md5": "cfb7ce8cffa4293a4be28eed18f097d4"
79
- }
80
- ]
81
- },
82
- {
83
- "name": "releaseVariantReleaseSourcePublication",
84
- "attributes": {
85
- "org.gradle.category": "documentation",
86
- "org.gradle.dependency.bundling": "external",
87
- "org.gradle.docstype": "sources",
88
- "org.gradle.usage": "java-runtime"
89
- },
90
- "files": [
91
- {
92
- "name": "expo.modules.imagemanipulator-13.1.5-sources.jar",
93
- "url": "expo.modules.imagemanipulator-13.1.5-sources.jar",
94
- "size": 8159,
95
- "sha512": "08af6c95ebf4df88f09274f2dc172df230d57b8f3ca2d1774d44584282b25d9d93ba57a78a2cdfef9232145c67aa8765b8df86f6c79852ba8c1b6b3eb3c21350",
96
- "sha256": "83452b235a0ea4b9ed9dc693de4fdda6a7940c15c27b9033fb0e398e00b56a7b",
97
- "sha1": "b9b08b0aca5c25507ec419236d8895a87df02585",
98
- "md5": "71622281255feb4dcaf797a74964698b"
99
- }
100
- ]
101
- }
102
- ]
103
- }
@@ -1 +0,0 @@
1
- ba6038a4ff5fae2ec8bbf165de20bb3f5211e3a7e98a189dfccaea70d2aaa27e
@@ -1 +0,0 @@
1
- 0520546ba2604d8e9451ba94f37e120c9ca77099804c28e0a9e318adba03ab64071d801562ba8a613de0349da7dcffd4b16746616dfb97bd89f9e95a4b584be5
@@ -1,41 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <!-- This module was also published with a richer model, Gradle metadata, -->
5
- <!-- which should be used instead. Do not delete the following line which -->
6
- <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7
- <!-- that they should prefer consuming it instead. -->
8
- <!-- do_not_remove: published-with-gradle-metadata -->
9
- <modelVersion>4.0.0</modelVersion>
10
- <groupId>host.exp.exponent</groupId>
11
- <artifactId>expo.modules.imagemanipulator</artifactId>
12
- <version>13.1.5</version>
13
- <packaging>aar</packaging>
14
- <name>expo.modules.imagemanipulator</name>
15
- <url>https://github.com/expo/expo</url>
16
- <licenses>
17
- <license>
18
- <name>MIT License</name>
19
- <url>https://github.com/expo/expo/blob/main/LICENSE</url>
20
- </license>
21
- </licenses>
22
- <scm>
23
- <connection>https://github.com/expo/expo.git</connection>
24
- <developerConnection>https://github.com/expo/expo.git</developerConnection>
25
- <url>https://github.com/expo/expo</url>
26
- </scm>
27
- <dependencies>
28
- <dependency>
29
- <groupId>androidx.annotation</groupId>
30
- <artifactId>annotation</artifactId>
31
- <version>1.0.0</version>
32
- <scope>compile</scope>
33
- </dependency>
34
- <dependency>
35
- <groupId>org.jetbrains.kotlin</groupId>
36
- <artifactId>kotlin-stdlib-jdk7</artifactId>
37
- <version>2.0.21</version>
38
- <scope>runtime</scope>
39
- </dependency>
40
- </dependencies>
41
- </project>
@@ -1 +0,0 @@
1
- c00adcdb94b0431fdefc533625239842dbf4afa87346ac4ef77ce3cb53bd85c1
@@ -1 +0,0 @@
1
- 1f5ac4260d1b0fd95fae798d27ff0bede283ab3e6a67f2f1e633bf503b3d3bc97a6f2aa61852dc3ff50b299aa12f1b8d9376d156070540a4949f6449d09e5d7f
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <metadata>
3
- <groupId>host.exp.exponent</groupId>
4
- <artifactId>expo.modules.imagemanipulator</artifactId>
5
- <versioning>
6
- <latest>13.1.5</latest>
7
- <release>13.1.5</release>
8
- <versions>
9
- <version>13.1.5</version>
10
- </versions>
11
- <lastUpdated>20250430211455</lastUpdated>
12
- </versioning>
13
- </metadata>
@@ -1 +0,0 @@
1
- b6af1c1ccc7b44b9edbce04ba2cc0bc7df4828cc
@@ -1 +0,0 @@
1
- fe9b250e167fdac6484887c24595f50e8cf093da713e7aa044f60449aeedfcb1
@@ -1 +0,0 @@
1
- 7b3c761a59f5469c69245e7bd262ecb32005c4dc2c50e83ef66b13a1dd5aa5f62dac7fbcdca467c610da03ab1bc46633dc3d58579565af67a3df197f8977ce61