Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-upload

Package Overview
Dependencies
Maintainers
1
Versions
704
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-upload - npm Package Compare versions

Comparing version 11.1.1 to 12.0.0

lang/translations/da.po

30

CHANGELOG.md
Changelog
=========
## [12.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v11.1.1...v12.0.0) (2019-08-26)
### Features
* Implemented the `SimpleUploadAdapter` plugin which enables file uploads in CKEditor 5 using configurable `XMLHttpRequests` to a server. Closes [ckeditor/ckeditor5#1791](https://github.com/ckeditor/ckeditor5/issues/1791). ([441c597](https://github.com/ckeditor/ckeditor5-upload/commit/441c597))
```js
import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter'
```
* Implemented the responsive image support in the `SimpleUploadAdapter`. Closes [#97](https://github.com/ckeditor/ckeditor5-upload/issues/97). ([b5092a4](https://github.com/ckeditor/ckeditor5-upload/commit/b5092a4))
### Other changes
* Add `ImageLoader.data` property for already read file to allow synchronous access to file data. ([ec56ab8](https://github.com/ckeditor/ckeditor5-upload/commit/ec56ab8))
* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([1893794](https://github.com/ckeditor/ckeditor5-upload/commit/1893794))
* Updated translations. ([594b6c1](https://github.com/ckeditor/ckeditor5-upload/commit/594b6c1))
### BREAKING CHANGES
* Moved the `Base64UploadAdapter` plugin file to `ckeditor5-upload/src/adapters/base64uploadadapter.js`. Make sure import paths your project are up–to–date:
```js
import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter'
```
## [11.1.1](https://github.com/ckeditor/ckeditor5-upload/compare/v11.1.0...v11.1.1) (2019-07-10)

@@ -20,3 +46,3 @@

* Updated translations. ([73c6761](https://github.com/ckeditor/ckeditor5-upload/commit/73c6761))
* Updated translations. ([73c6761](https://github.com/ckeditor/ckeditor5-upload/commit/73c6761))

@@ -28,3 +54,3 @@

* Updated translations. ([eac33b1](https://github.com/ckeditor/ckeditor5-upload/commit/eac33b1))
* Updated translations. ([eac33b1](https://github.com/ckeditor/ckeditor5-upload/commit/eac33b1))

@@ -31,0 +57,0 @@

10

package.json
{
"name": "@ckeditor/ckeditor5-upload",
"version": "11.1.1",
"version": "12.0.0",
"description": "Upload Feature for CKEditor 5.",

@@ -12,5 +12,5 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^12.2.1",
"@ckeditor/ckeditor5-ui": "^13.0.2",
"@ckeditor/ckeditor5-utils": "^13.0.1"
"@ckeditor/ckeditor5-core": "^12.3.0",
"@ckeditor/ckeditor5-ui": "^14.0.0",
"@ckeditor/ckeditor5-utils": "^14.0.0"
},

@@ -30,3 +30,3 @@ "devDependencies": {

"homepage": "https://ckeditor.com/ckeditor-5",
"bugs": "https://github.com/ckeditor/ckeditor5-upload/issues",
"bugs": "https://github.com/ckeditor/ckeditor5/issues",
"repository": {

@@ -33,0 +33,0 @@ "type": "git",

@@ -33,2 +33,4 @@ /**

this._data = undefined;
/**

@@ -58,2 +60,12 @@ * Number of bytes loaded.

/**
* Holds the data of an already loaded file. The file must be first loaded
* by using {@link module:upload/filereader~FileReader#read `read()`}.
*
* @type {File|undefined}
*/
get data() {
return this._data;
}
/**
* Reads the provided file.

@@ -71,3 +83,7 @@ *

reader.onload = () => {
resolve( reader.result );
const result = reader.result;
this._data = result;
resolve( result );
};

@@ -74,0 +90,0 @@

@@ -10,10 +10,11 @@ /**

/* globals console */
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import PendingActions from '@ckeditor/ckeditor5-core/src/pendingactions';
import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
import CKEditorError, { attachLinkToDocumentation } from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
import ObservableMixin from '@ckeditor/ckeditor5-utils/src/observablemixin';
import Collection from '@ckeditor/ckeditor5-utils/src/collection';
import mix from '@ckeditor/ckeditor5-utils/src/mix';
import log from '@ckeditor/ckeditor5-utils/src/log';

@@ -175,3 +176,5 @@ import FileReader from './filereader.js';

*/
log.error( 'filerepository-no-upload-adapter: Upload adapter is not defined.' );
console.warn( attachLinkToDocumentation(
'filerepository-no-upload-adapter: Upload adapter is not defined.'
) );

@@ -403,2 +406,12 @@ return null;

/**
* Returns the file data. To read its data, you need for first load the file
* by using the {@link module:upload/filerepository~FileLoader#read `read()`} method.
*
* @type {File|undefined}
*/
get data() {
return this._reader.data;
}
/**
* Reads file using {@link module:upload/filereader~FileReader}.

@@ -524,3 +537,2 @@ *

this._adapter = undefined;
this.data = undefined;
this.uploadResponse = undefined;

@@ -527,0 +539,0 @@ }

@@ -123,3 +123,3 @@ /**

* @private
* @extends {module:ui/view~View}
* @extends module:ui/view~View
*/

@@ -126,0 +126,0 @@ class FileInputView extends View {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc