Skip to content

Commit

Permalink
Update glimmer import references to @Glimmer
Browse files Browse the repository at this point in the history
  • Loading branch information
chadhietala committed Jan 13, 2017
1 parent fbbe86c commit d305684
Show file tree
Hide file tree
Showing 34 changed files with 107 additions and 499 deletions.
16 changes: 8 additions & 8 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ module.exports = function() {
'simple-html-tokenizer': htmlbarsPackage('simple-html-tokenizer', { libPath: 'node_modules/glimmer-engine/dist/es6' }),

'glimmer': glimmerPackage('glimmer'),
'glimmer-compiler': glimmerPackage('glimmer-compiler'),
'glimmer-reference': glimmerPackage('glimmer-reference'),
'glimmer-runtime': glimmerPackage('glimmer-runtime'),
'glimmer-node': glimmerPackage('glimmer-node'),
'glimmer-syntax': glimmerPackage('glimmer-syntax'),
'glimmer-test-helpers': glimmerPackage('glimmer-test-helpers'),
'glimmer-util': glimmerPackage('glimmer-util'),
'glimmer-wire-format': glimmerPackage('glimmer-wire-format'),
'@glimmer/compiler': glimmerPackage('@glimmer/compiler'),
'@glimmer/reference': glimmerPackage('@glimmer/reference'),
'@glimmer/runtime': glimmerPackage('@glimmer/runtime'),
'@glimmer/node': glimmerPackage('@glimmer/node'),
'@glimmer/syntax': glimmerPackage('@glimmer/syntax'),
'@glimmer/test-helpers': glimmerPackage('@glimmer/test-helpers'),
'@glimmer/util': glimmerPackage('@glimmer/util'),
'@glimmer/wire-format': glimmerPackage('@glimmer/wire-format'),
'handlebars': glimmerPackage('handlebars') // inlined parser
};

Expand Down
22 changes: 11 additions & 11 deletions lib/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ module.exports = function(features) {
templateCompilerVendor: [
'simple-html-tokenizer',
'backburner',
'glimmer-wire-format',
'glimmer-syntax',
'glimmer-util',
'glimmer-compiler',
'glimmer-reference',
'glimmer-runtime',
'@glimmer/wire-format',
'@glimmer/syntax',
'@glimmer/util',
'@glimmer/compiler',
'@glimmer/reference',
'@glimmer/runtime',
'handlebars'
]
},
Expand All @@ -38,11 +38,11 @@ module.exports = function(features) {
hasTemplates: true,
vendorRequirements: [
'glimmer',
'glimmer-runtime',
'glimmer-reference',
'glimmer-util',
'glimmer-wire-format',
'glimmer-node'
'@glimmer/runtime',
'@glimmer/reference',
'@glimmer/util',
'@glimmer/wire-format',
'@glimmer/node'
],
testingVendorRequirements: []
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"git-repo-info": "^1.1.4",
"git-repo-version": "^0.3.1",
"github": "^0.2.3",
"glimmer-engine": "^0.19.4",
"glimmer-engine": "^0.20.0",
"glob": "^5.0.13",
"html-differ": "^1.3.4",
"mocha": "^2.4.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
deprecate
} from 'ember-metal';
import { UPDATE, RootReference } from './utils/references';
import { DirtyableTag } from 'glimmer-reference';
import { readDOMAttr } from 'glimmer-runtime';
import { DirtyableTag } from '@glimmer/reference';
import { readDOMAttr } from '@glimmer/runtime';

export const DIRTY_TAG = symbol('DIRTY_TAG');
export const ARGS = symbol('ARGS');
Expand Down
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/dom.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { DOMChanges, DOMTreeConstruction } from 'glimmer-runtime';
export { NodeDOMTreeConstruction } from 'glimmer-node';
export { DOMChanges, DOMTreeConstruction } from '@glimmer/runtime';
export { NodeDOMTreeConstruction } from '@glimmer/node';
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
isSafeString,
compileLayout,
getDynamicVar
} from 'glimmer-runtime';
} from '@glimmer/runtime';
import {
CurlyComponentDefinition
} from './syntax/curly-component';
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { symbol } from 'ember-utils';
import { FrameworkObject } from 'ember-runtime';
import { DirtyableTag } from 'glimmer-reference';
import { DirtyableTag } from '@glimmer/reference';

export const RECOMPUTE_TAG = symbol('RECOMPUTE_TAG');

Expand Down
6 changes: 3 additions & 3 deletions packages/ember-glimmer/lib/helpers/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
runInDebug
} from 'ember-metal';
import { UnboundReference } from '../utils/references';
import { EvaluatedPositionalArgs } from 'glimmer-runtime';
import { isConst } from 'glimmer-reference';
import { EvaluatedPositionalArgs } from '@glimmer/runtime';
import { isConst } from '@glimmer/reference';

export const INVOKE = symbol('INVOKE');
export const ACTION = symbol('ACTION');
Expand Down Expand Up @@ -373,7 +373,7 @@ function makeClosureAction(context, target, action, processArgs, debugKey) {
}

return function(...args) {
let payload = { target: self, args, label: 'glimmer-closure-action' };
let payload = { target: self, args, label: '@glimmer/closure-action' };
return flaggedInstrument('interaction.ember-action', payload, () => {
return run.join(self, fn, ...processArgs(args));
});
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/helpers/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
EvaluatedNamedArgs,
EvaluatedPositionalArgs,
isComponentDefinition
} from 'glimmer-runtime';
} from '@glimmer/runtime';
import { assert } from 'ember-metal';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/helpers/concat.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InternalHelperReference } from '../utils/references';
import { normalizeTextValue } from 'glimmer-runtime';
import { normalizeTextValue } from '@glimmer/runtime';

/**
@module ember
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/helpers/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
combine,
isConst,
referenceFromParts
} from 'glimmer-reference';
} from '@glimmer/reference';

/**
@module ember
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/helpers/if-unless.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
UpdatableTag,
combine,
isConst
} from 'glimmer-reference';
} from '@glimmer/reference';


/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
runInTransaction as _runInTransaction,
isFeatureEnabled
} from 'ember-metal';
import { CURRENT_TAG, UNDEFINED_REFERENCE } from 'glimmer-reference';
import { CURRENT_TAG, UNDEFINED_REFERENCE } from '@glimmer/reference';
import {
fallbackViewRegistry,
getViewElement,
Expand Down
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/syntax/-in-element.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaselineSyntax, compileArgs } from 'glimmer-runtime';
import { unwrap } from 'glimmer-util';
import { BaselineSyntax, compileArgs } from '@glimmer/runtime';
import { unwrap } from '@glimmer/util';

const {
defaultBlock,
Expand Down
1 change: 0 additions & 1 deletion packages/ember-glimmer/lib/syntax/-text-area.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { wrapComponentClassAttribute } from '../utils/bindings';
export function textAreaMacro(path, params, hash, builder) {
let definition = builder.env.getComponentDefinition(['-text-area'], builder.symbolTable);
wrapComponentClassAttribute(hash);
console.log(definition);
builder.component.static(definition, [params, hash, null, null], builder.symbolTable);
return true;
}
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/syntax/-with-dynamic-vars.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaselineSyntax, compileArgs } from 'glimmer-runtime';
import { unwrap } from 'glimmer-util';
import { BaselineSyntax, compileArgs } from '@glimmer/runtime';
import { unwrap } from '@glimmer/util';

const {
defaultBlock,
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/syntax/curly-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { OWNER } from 'ember-utils';
import {
PrimitiveReference,
ComponentDefinition
} from 'glimmer-runtime';
} from '@glimmer/runtime';
import {
AttributeBinding,
ClassNameBinding,
Expand Down
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/syntax/dynamic-component.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
isComponentDefinition
} from 'glimmer-runtime';
import { UNDEFINED_REFERENCE } from 'glimmer-reference';
} from '@glimmer/runtime';
import { UNDEFINED_REFERENCE } from '@glimmer/reference';
import { assert } from 'ember-metal';

function dynamicComponentFor(vm, symbolTable) {
Expand Down
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/syntax/mount.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/
import {
ComponentDefinition
} from 'glimmer-runtime';
import { UNDEFINED_REFERENCE } from 'glimmer-reference';
} from '@glimmer/runtime';
import { UNDEFINED_REFERENCE } from '@glimmer/reference';
import { assert, runInDebug } from 'ember-metal';
import { RootReference } from '../utils/references';
import { generateControllerFactory } from 'ember-routing';
Expand Down
8 changes: 4 additions & 4 deletions packages/ember-glimmer/lib/syntax/outlet.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import { generateGuid, guidFor } from 'ember-utils';
import {
ComponentDefinition,
CompiledArgs
} from 'glimmer-runtime';
import { runInDebug, _instrumentStart } from 'ember-metal';
} from '@glimmer/runtime';
import { _instrumentStart, runInDebug } from 'ember-metal';
import { RootReference } from '../utils/references';
import AbstractManager from './abstract-manager';
import {
UpdatableTag,
ConstReference,
combine
} from 'glimmer-reference';
import AbstractManager from './abstract-manager';
} from '@glimmer/reference';

function outletComponentFor(vm) {
let { outletState } = vm.dynamicScope();
Expand Down
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/syntax/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/
import {
ComponentDefinition
} from 'glimmer-runtime';
import { ConstReference, isConst } from 'glimmer-reference';
} from '@glimmer/runtime';
import { ConstReference, isConst } from '@glimmer/reference';
import { assert, runInDebug } from 'ember-metal';
import { RootReference } from '../utils/references';
import { generateController, generateControllerFactory } from 'ember-routing';
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/template.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OWNER } from 'ember-utils';
import { templateFactory } from 'glimmer-runtime';
import { templateFactory } from '@glimmer/runtime';

export default function template(json) {
let factory = templateFactory(json);
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/utils/bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
combine,
map,
referenceFromParts
} from 'glimmer-reference';
} from '@glimmer/reference';
import { get, assert } from 'ember-metal';
import { String as StringUtils } from 'ember-runtime';
import { ROOT_REF } from '../component';
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/utils/iterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
CONSTANT_TAG,
UpdatableTag,
combine
} from 'glimmer-reference';
} from '@glimmer/reference';

const ITERATOR_KEY_GUID = 'be277757-bbbe-4620-9fcb-213ef433cca2';

Expand Down
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/utils/process-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {
} from 'ember-utils';
import {
CONSTANT_TAG
} from 'glimmer-reference';
} from '@glimmer/reference';
import { ARGS } from '../component';
import { UPDATE } from './references';
import { MUTABLE_CELL } from 'ember-views';
import { ACTION } from '../helpers/action';
import {
EvaluatedArgs,
EvaluatedPositionalArgs
} from 'glimmer-runtime';
} from '@glimmer/runtime';

// Maps all variants of positional and dynamically scoped arguments
// into the named arguments. Input `args` and return value are both
Expand Down
6 changes: 3 additions & 3 deletions packages/ember-glimmer/lib/utils/references.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ import {
UpdatableTag,
combine,
isConst
} from 'glimmer-reference';
} from '@glimmer/reference';
import {
ConditionalReference as GlimmerConditionalReference,
PrimitiveReference,
NULL_REFERENCE,
UNDEFINED_REFERENCE
} from 'glimmer-runtime';
} from '@glimmer/runtime';
import emberToBool from './to-bool';
import { RECOMPUTE_TAG } from '../helper';

export const UPDATE = symbol('UPDATE');

export { NULL_REFERENCE, UNDEFINED_REFERENCE } from 'glimmer-runtime';
export { NULL_REFERENCE, UNDEFINED_REFERENCE } from '@glimmer/runtime';

// @abstract
// @implements PathReference
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/views/outlet.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@submodule ember-glimmer
*/
import { assign, EmptyObject } from 'ember-utils';
import { DirtyableTag } from 'glimmer-reference';
import { DirtyableTag } from '@glimmer/reference';
import { environment } from 'ember-environment';
import { OWNER } from 'ember-utils';
import { run } from 'ember-metal';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component } from '../../utils/helpers';
import {
setDebuggerCallback,
resetDebuggerCallback
} from 'glimmer-runtime';
} from '@glimmer/runtime';
import { set } from 'ember-metal';
import { A as emberA } from 'ember-runtime';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ moduleFor('Helpers test: {{render}}', class extends RenderingTest {
this.registerTemplate('post', '<p>{{model.title}}</p>');

expectDeprecation(() => {
this.render(`<h1>HI</h1>{{render 'post' foo}}`, {
foo: {
this.render(`<h1>HI</h1>{{render 'post' post}}`, {
post: {
title: `It's Simple Made Easy`
}
});
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-glimmer/tests/unit/layout-cache-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EmptyObject } from 'ember-utils';
import { RenderingTest, moduleFor } from '../utils/test-case';
import { CompiledBlock } from 'glimmer-runtime';
import { CompiledBlock } from '@glimmer/runtime';
import { OWNER } from 'ember-utils';

class Counter {
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-metal/lib/tags.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CONSTANT_TAG, DirtyableTag } from 'glimmer-reference';
import { CONSTANT_TAG, DirtyableTag } from '@glimmer/reference';
import { meta as metaFor } from './meta';
import require from 'require';
import { isProxy } from './is_proxy';
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-runtime/lib/mixins/-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@submodule ember-runtime
*/

import { CachedTag, DirtyableTag, UpdatableTag } from 'glimmer-reference';
import { CachedTag, DirtyableTag, UpdatableTag } from '@glimmer/reference';
import {
assert,
deprecate,
Expand Down
4 changes: 2 additions & 2 deletions packages/ember-template-compiler/lib/system/precompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ let glimmerPrecompile;
@param {String} templateString This is the string to be compiled by HTMLBars.
*/
export default function precompile(templateString, options) {
if (!glimmerPrecompile && has('glimmer-compiler')) {
glimmerPrecompile = require('glimmer-compiler').precompile;
if (!glimmerPrecompile && has('@glimmer/compiler')) {
glimmerPrecompile = require('@glimmer/compiler').precompile;
}

if (!glimmerPrecompile) {
Expand Down
Loading

0 comments on commit d305684

Please sign in to comment.