Permalink
Browse files

Migrate to @dojo scoped package(s) (#267)

* change to @dojo scoped package

* rename the queue back to dojo-

* readme

* latest loader and loader config.

* remove unused import

* correct functional loader config
  • Loading branch information...
1 parent 7cebf02 commit abf0ddc9ca7abbabfe068d0cfbe51cb2d2239884 @agubler agubler committed on GitHub Jan 13, 2017
Showing with 107 additions and 112 deletions.
  1. +12 −12 README.md
  2. +5 −5 package.json
  3. +1 −1 src/DateObject.ts
  4. +1 −1 src/Evented.ts
  5. +5 −5 src/IdentityRegistry.ts
  6. +2 −2 src/List.ts
  7. +1 −1 src/MatchRegistry.ts
  8. +3 −3 src/Observable.ts
  9. +1 −1 src/Scheduler.ts
  10. +1 −1 src/UrlSearchParams.ts
  11. +1 −1 src/aspect.ts
  12. +3 −3 src/async/ExtensiblePromise.ts
  13. +3 −3 src/async/Task.ts
  14. +4 −4 src/async/iteration.ts
  15. +1 −1 src/async/timing.ts
  16. +1 −1 src/encoding.ts
  17. +2 −2 src/has.ts
  18. +2 −2 src/interfaces.ts
  19. +1 −1 src/lang.ts
  20. +2 −2 src/load.ts
  21. +2 −2 src/load/webpack.ts
  22. +1 −1 src/on.ts
  23. +1 −1 src/queue.ts
  24. +2 −2 src/request.ts
  25. +1 −1 src/request/fetch.ts
  26. +1 −1 src/request/node.ts
  27. +1 −1 src/request/xhr.ts
  28. +1 −1 src/stringExtras.ts
  29. +2 −2 src/text.ts
  30. +1 −1 src/util.ts
  31. +2 −3 tests/functional/text/textPlugin.html
  32. +1 −1 tests/functional/text/textPlugin.ts
  33. +2 −3 tests/functional/text/textPluginEmpty.html
  34. +2 −3 tests/functional/text/textPluginHTML.html
  35. +2 −3 tests/functional/text/textPluginXML.html
  36. +1 −1 tests/intern-saucelabs.ts
  37. +4 −5 tests/intern.ts
  38. +1 −1 tests/services/echo.ts
  39. +1 −1 tests/support/load/node.ts
  40. +2 −2 tests/support/util.ts
  41. +2 −2 tests/unit/IdentityRegistry.ts
  42. +2 −2 tests/unit/List.ts
  43. +2 −2 tests/unit/aspect.ts
  44. +3 −3 tests/unit/async/Task.ts
  45. +2 −2 tests/unit/async/iteration.ts
  46. +1 −1 tests/unit/async/timing.ts
  47. +3 −3 tests/unit/load.ts
  48. +1 −1 tests/unit/on/browserOnly.ts
  49. +1 −1 tests/unit/on/common.ts
  50. +1 −1 tests/unit/request/fetch.ts
  51. +1 −1 tests/unit/request/xhr.ts
  52. +1 −1 tests/unit/request_browser.ts
  53. +1 −1 tests/unit/text.ts
  54. +1 −1 tests/unit/text_browser.ts
  55. +1 −1 tests/unit/text_node.ts
  56. +1 −1 tests/unit/util.ts
View
@@ -2,7 +2,7 @@
[![Build Status](https://travis-ci.org/dojo/core.svg?branch=master)](https://travis-ci.org/dojo/core)
[![codecov.io](https://codecov.io/github/dojo/core/coverage.svg?branch=master)](https://codecov.io/github/dojo/core?branch=master)
-[![npm version](https://badge.fury.io/js/dojo-core.svg)](https://badge.fury.io/js/dojo-core)
+[![npm version](https://badge.fury.io/js/@dojo/core.svg)](https://badge.fury.io/js/@dojo/core)
This package provides a set of language helpers, utility functions, and classes for writing TypeScript applications.
It includes APIs for feature detection, asynchronous operations, basic event handling,
@@ -48,7 +48,7 @@ This will run the grunt 'dev' task.
### Feature Detection
Using the latest Web technologies isn't always as straightforward as developers would like due to differing support
-across platforms. [`dojo-core/has`](docs/has.md) provides a simple feature detection API that makes it easy to
+across platforms. [`@dojo/core/has`](docs/has.md) provides a simple feature detection API that makes it easy to
detect which platforms support which features.
### Language Utilities
@@ -58,48 +58,48 @@ on methods in the ES2015 proposal; others are additional APIs for commonly-perfo
#### array
-The [`dojo-core/array` module](docs/array.md) contains analogues to some of the ES2015 Array APIs.
+The [`@dojo/core/array` module](docs/array.md) contains analogues to some of the ES2015 Array APIs.
#### lang
-The [`dojo-core/lang` module](docs/lang.md) contains various utility functions for tasks such as copying objects
+The [`@dojo/core/lang` module](docs/lang.md) contains various utility functions for tasks such as copying objects
and creating late-bound or partially applied functions.
#### math
-The [`dojo-core/math` module](docs/math.md) contains analogues to a number of ES2015 APIs, including many trigonometric and logarithmic
+The [`@dojo/core/math` module](docs/math.md) contains analogues to a number of ES2015 APIs, including many trigonometric and logarithmic
functions.
#### string
-The [`dojo-core/stringExtras` module](docs/stringExtras.md) contains various string functions that are not available as part of the ES2015 String APIs.
+The [`@dojo/core/stringExtras` module](docs/stringExtras.md) contains various string functions that are not available as part of the ES2015 String APIs.
#### UrlSearchParams
-The [`dojo-core/UrlSearchParams` class](docs/UrlSearchParams.md) can be used to parse and generate URL query strings.
+The [`@dojo/core/UrlSearchParams` class](docs/UrlSearchParams.md) can be used to parse and generate URL query strings.
#### Event handling
-The [`dojo-core/on` module](docs/on.md) contains methods to handle events across types of listeners. It also includes methods to handle different event use cases including only firing
+The [`@dojo/core/on` module](docs/on.md) contains methods to handle events across types of listeners. It also includes methods to handle different event use cases including only firing
once and pauseable events.
#### HTTP requests
-The [`dojo-core/request` module](docs/request.md) contains methods to simplify making http requests. It can handle
+The [`@dojo/core/request` module](docs/request.md) contains methods to simplify making http requests. It can handle
making requests in both node and the browser through the same methods.
### Promises and Asynchronous Operations
#### Promise
-The `dojo-core/Promise` class is an implementation of the ES2015 Promise API that also includes static state
+The `@dojo/core/Promise` class is an implementation of the ES2015 Promise API that also includes static state
inspection and a `finally` method for cleanup actions.
-`dojo-core/async` contains a number of classes and utility modules to simplify working with asynchronous operations.
+`@dojo/core/async` contains a number of classes and utility modules to simplify working with asynchronous operations.
#### Task
-The `dojo-core/async/Task` class is an extension of `dojo-core/Promise` that provides cancelation support.
+The `@dojo/core/async/Task` class is an extension of `@dojo/core/Promise` that provides cancelation support.
## How do I contribute?
View
@@ -1,5 +1,5 @@
{
- "name": "dojo-core",
+ "name": "@dojo/core",
"version": "2.0.0-pre",
"description": "Basic utilites for common TypeScript development",
"engines": {
@@ -22,8 +22,8 @@
"test": "grunt test"
},
"peerDependencies": {
- "dojo-has": ">=2.0.0-alpha.6",
- "dojo-shim": ">=2.0.0-alpha.4"
+ "@dojo/has": "2.0.0-alpha.7",
+ "@dojo/shim": "2.0.0-beta.8"
},
"devDependencies": {
"@types/benchmark": "~1.0.0",
@@ -33,8 +33,8 @@
"@types/grunt": "~0.4.0",
"@types/sinon": "~1.16.0",
"benchmark": "^1.0.0",
- "dojo-interfaces": ">=2.0.0-alpha.2",
- "dojo-loader": ">=2.0.0-beta.7",
+ "@dojo/interfaces": "2.0.0-alpha.11",
+ "@dojo/loader": "2.0.0-beta.9",
"formidable": "1.0.17",
"grunt": "^1.0.1",
"grunt-dojo2": ">=2.0.0-beta.19",
View
@@ -1,4 +1,4 @@
-import { Hash } from 'dojo-interfaces/core';
+import { Hash } from '@dojo/interfaces/core';
export interface KwArgs {
dayOfMonth?: number;
View
@@ -1,4 +1,4 @@
-import { Handle, EventObject } from 'dojo-interfaces/core';
+import { Handle, EventObject } from '@dojo/interfaces/core';
import { on } from './aspect';
export default class Evented {
@@ -1,8 +1,8 @@
-import Map from 'dojo-shim/Map';
-import WeakMap from 'dojo-shim/WeakMap';
-import { Iterable, IterableIterator } from 'dojo-shim/iterator';
-import { Handle } from 'dojo-interfaces/core';
-import 'dojo-shim/Symbol';
+import Map from '@dojo/shim/Map';
+import WeakMap from '@dojo/shim/WeakMap';
+import { Iterable, IterableIterator } from '@dojo/shim/iterator';
+import { Handle } from '@dojo/interfaces/core';
+import '@dojo/shim/Symbol';
import List from './List';
const noop = () => { };
View
@@ -1,5 +1,5 @@
-import { forOf, Iterable, IterableIterator, ShimIterator } from 'dojo-shim/iterator';
-import WeakMap from 'dojo-shim/WeakMap';
+import { forOf, Iterable, IterableIterator, ShimIterator } from '@dojo/shim/iterator';
+import WeakMap from '@dojo/shim/WeakMap';
const listItems: WeakMap<List<any>, any[]> = new WeakMap<List<any>, any[]>();
@@ -1,4 +1,4 @@
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
/**
* An entry in a MatchRegistry. Each Entry contains a test to determine whether the Entry is applicable, and a value for
View
@@ -1,6 +1,6 @@
-import ObservableShim, { ObservableObject, Subscribable, SubscriptionObserver } from 'dojo-shim/Observable';
-import Promise from 'dojo-shim/Promise';
-import { Iterable } from 'dojo-shim/iterator';
+import ObservableShim, { ObservableObject, Subscribable, SubscriptionObserver } from '@dojo/shim/Observable';
+import Promise from '@dojo/shim/Promise';
+import { Iterable } from '@dojo/shim/iterator';
function isSubscribable(object: any): object is Subscribable<any> {
return object && object.subscribe !== undefined;
View
@@ -1,4 +1,4 @@
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
import { QueueItem, queueTask } from './queue';
function getQueueHandle(item: QueueItem): Handle {
@@ -1,4 +1,4 @@
-import { Hash } from 'dojo-interfaces/core';
+import { Hash } from '@dojo/interfaces/core';
import { duplicate } from './lang';
/**
View
@@ -1,4 +1,4 @@
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
import { createHandle } from './lang';
/**
@@ -1,6 +1,6 @@
-import { Iterable, forOf, isIterable, isArrayLike } from 'dojo-shim/iterator';
-import Promise, { Executor } from 'dojo-shim/Promise';
-import { Thenable } from 'dojo-shim/interfaces';
+import { Iterable, forOf, isIterable, isArrayLike } from '@dojo/shim/iterator';
+import Promise, { Executor } from '@dojo/shim/Promise';
+import { Thenable } from '@dojo/shim/interfaces';
/**
* Take a list of values, and if any are ExtensiblePromise objects, insert the wrapped Promise in its place,
View
@@ -1,7 +1,7 @@
-import { Thenable } from 'dojo-shim/interfaces';
-import { Executor } from 'dojo-shim/Promise';
+import { Thenable } from '@dojo/shim/interfaces';
+import { Executor } from '@dojo/shim/Promise';
import ExtensiblePromise, { ListOfPromises, DictionaryOfPromises } from './ExtensiblePromise';
-import { Iterable } from 'dojo-shim/iterator';
+import { Iterable } from '@dojo/shim/iterator';
/**
* Describe the internal state of a task.
@@ -1,7 +1,7 @@
-import * as array from 'dojo-shim/array';
-import { isArrayLike, Iterable } from 'dojo-shim/iterator';
-import Promise from 'dojo-shim/Promise';
-import { Thenable } from 'dojo-shim/interfaces';
+import * as array from '@dojo/shim/array';
+import { isArrayLike, Iterable } from '@dojo/shim/iterator';
+import Promise from '@dojo/shim/Promise';
+import { Thenable } from '@dojo/shim/interfaces';
type ValuesAndResults<T, U> = { values: T[] | undefined; results: U[] | undefined; }
View
@@ -1,5 +1,5 @@
import Promise from './ExtensiblePromise';
-import { Thenable } from 'dojo-shim/interfaces';
+import { Thenable } from '@dojo/shim/interfaces';
/**
* Used for delaying a Promise chain for a specific number of milliseconds.
View
@@ -1,4 +1,4 @@
-import { HIGH_SURROGATE_MIN, HIGH_SURROGATE_MAX, LOW_SURROGATE_MIN, LOW_SURROGATE_MAX } from 'dojo-shim/string';
+import { HIGH_SURROGATE_MIN, HIGH_SURROGATE_MAX, LOW_SURROGATE_MIN, LOW_SURROGATE_MAX } from '@dojo/shim/string';
const BASE64_KEYSTR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
View
@@ -1,7 +1,7 @@
import global from './global';
-import has, { add } from 'dojo-shim/support/has';
+import has, { add } from '@dojo/shim/support/has';
-export * from 'dojo-shim/support/has';
+export * from '@dojo/shim/support/has';
export default has;
add('object-assign', typeof global.Object.assign === 'function');
View
@@ -1,5 +1,5 @@
-/* DEPRECATED: These interfaces are deprecated and have been moved to dojo-interfaces/core.d.ts
- * They are only provided here to make the transistion to dojo-interfaces easier */
+/* DEPRECATED: These interfaces are deprecated and have been moved to @dojo/interfaces/core.d.ts
+ * They are only provided here to make the transistion to @dojo/interfaces easier */
/**
* The base event object, which provides a `type` property
View
@@ -1,5 +1,5 @@
import has from './has';
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
const slice = Array.prototype.slice;
const hasOwnProperty = Object.prototype.hasOwnProperty;
View
@@ -1,5 +1,5 @@
-import Promise from 'dojo-shim/Promise';
-import { Require } from 'dojo-interfaces/loader';
+import Promise from '@dojo/shim/Promise';
+import { Require } from '@dojo/interfaces/loader';
declare const require: Require;
View
@@ -1,4 +1,4 @@
-import Promise from 'dojo-shim/Promise';
+import Promise from '@dojo/shim/Promise';
interface ModuleIdMap {
[path: string]: { id: number; lazy: boolean };
@@ -78,7 +78,7 @@ function getBasePath(context: () => string): string {
}
/**
- * A webpack-specific function that replaces `dojo-core/load` in its builds. In order for a module to be loaded,
+ * A webpack-specific function that replaces `@dojo/core/load` in its builds. In order for a module to be loaded,
* it must first be included in a webpack chunk, whether that chunk is included in the main build, or lazy-loaded.
* Note that this module is not intended for direct use, but rather is intended for use by a webpack plugin
* that sets the module ID map used to translate resolved module paths to webpack module IDs.
View
@@ -1,4 +1,4 @@
-import { Handle, EventObject } from 'dojo-interfaces/core';
+import { Handle, EventObject } from '@dojo/interfaces/core';
import { createHandle, createCompositeHandle } from './lang';
import Evented from './Evented';
View
@@ -1,6 +1,6 @@
import global from './global';
import has from './has';
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
function executeTask(item: QueueItem | undefined): void {
if (item && item.isActive && item.callback) {
View
@@ -1,7 +1,7 @@
-import Promise from 'dojo-shim/Promise';
+import Promise from '@dojo/shim/Promise';
import Task from './async/Task';
import has from './request/has';
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
import MatchRegistry, { Test } from './MatchRegistry';
import load from './load';
import { ParamList } from './UrlSearchParams';
@@ -1,4 +1,4 @@
-import Promise from 'dojo-shim/Promise';
+import Promise from '@dojo/shim/Promise';
import RequestTimeoutError from './errors/RequestTimeoutError';
import Task from '../async/Task';
import { Handle } from '../interfaces';
View
@@ -1,6 +1,6 @@
import Task from '../async/Task';
import RequestTimeoutError from './errors/RequestTimeoutError';
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
import * as http from 'http';
import * as https from 'https';
import { createHandle } from '../lang';
View
@@ -2,7 +2,7 @@ import Task from '../async/Task';
import RequestTimeoutError from './errors/RequestTimeoutError';
import global from '../global';
import has from '../has';
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
import { createTimer } from '../util';
import { RequestOptions, Response, ResponsePromise } from '../request';
import { generateRequestUrl } from './util';
View
@@ -1,4 +1,4 @@
-import { Hash } from 'dojo-interfaces/core';
+import { Hash } from '@dojo/interfaces/core';
const escapeRegExpPattern = /[[\]{}()|\/\\^$.*+?]/g;
const escapeXmlPattern = /[&<]/g;
View
@@ -1,7 +1,7 @@
-import Promise from 'dojo-shim/Promise';
+import Promise from '@dojo/shim/Promise';
import has from './has';
import request, { Response } from './request';
-import { Config, Require } from 'dojo-interfaces/loader';
+import { Config, Require } from '@dojo/interfaces/loader';
declare const require: Require;
View
@@ -1,4 +1,4 @@
-import { Handle } from 'dojo-interfaces/core';
+import { Handle } from '@dojo/interfaces/core';
import { createHandle } from './lang';
/**
@@ -6,15 +6,14 @@
</head>
<body>
- <script src="../../../../node_modules/dojo-loader/loader.js"></script>
+ <script src="../../../../node_modules/@dojo/loader/loader.js"></script>
<script>
require.config({
baseUrl: '../../../../',
packages: [
{ name: 'src', location: '_build/src' },
{ name: 'tests', location: '_build/tests' },
- { name: 'dojo-has', location: 'node_modules/dojo-has' },
- { name: 'dojo-shim', location: 'node_modules/dojo-shim' }
+ { name: '@dojo', location: 'node_modules/@dojo' }
]
});
require([
@@ -3,7 +3,7 @@ import * as registerSuite from 'intern!object';
import * as Suite from 'intern/lib/Suite';
import * as Command from 'leadfoot/Command';
import * as pollUntil from 'leadfoot/helpers/pollUntil';
-import { Require } from 'dojo-interfaces/loader';
+import { Require } from '@dojo/interfaces/loader';
declare const require: Require;
@@ -6,15 +6,14 @@
</head>
<body>
- <script src="../../../../node_modules/dojo-loader/loader.js"></script>
+ <script src="../../../../node_modules/@dojo/loader/loader.js"></script>
<script>
require.config({
baseUrl: '../../../../',
packages: [
{ name: 'src', location: '_build/src' },
{ name: 'tests', location: '_build/tests' },
- { name: 'dojo-has', location: 'node_modules/dojo-has' },
- { name: 'dojo-shim', location: 'node_modules/dojo-shim' }
+ { name: '@dojo', location: 'node_modules/@dojo' }
]
});
require([
@@ -6,15 +6,14 @@
</head>
<body>
- <script src="../../../../node_modules/dojo-loader/loader.js"></script>
+ <script src="../../../../node_modules/@dojo/loader/loader.js"></script>
<script>
require.config({
baseUrl: '../../../../',
packages: [
{ name: 'src', location: '_build/src' },
{ name: 'tests', location: '_build/tests' },
- { name: 'dojo-has', location: 'node_modules/dojo-has' },
- { name: 'dojo-shim', location: 'node_modules/dojo-shim' }
+ { name: '@dojo', location: 'node_modules/@dojo' }
]
});
require([
Oops, something went wrong.

0 comments on commit abf0ddc

Please sign in to comment.