Skip to content

Commit 2b75a11

Browse files
authored
update copyright to 2021 (denoland#9081)
1 parent b0821fe commit 2b75a11

File tree

347 files changed

+365
-366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

347 files changed

+365
-366
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
# Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
[workspace]
44
members = [

LICENSE

-21
This file was deleted.

LICENSE.md

+20

core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
# Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
[package]
33
name = "deno_core"
44
version = "0.75.0"

core/async_cancel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::RcLike;
44
use futures::future::FusedFuture;

core/async_cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use std::any::type_name;
44
use std::any::Any;

core/bindings.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::error::AnyError;
44
use crate::runtime::JsRuntimeState;

core/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
/*
33
SharedQueue Binary Layout
44
+-------------------------------+-------------------------------+

core/core_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
function assert(cond) {
44
if (!cond) {

core/encode_decode_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
function assert(cond) {
33
if (!cond) {
44
throw Error("assert");

core/error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
((window) => {
44
// Some of the code here is adapted directly from V8 and licensed under a BSD

core/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
pub use anyhow::anyhow;
44
pub use anyhow::bail;

core/examples/hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
//! This example shows you how to define ops in Rust and then call them from
33
//! JavaScript.
44

core/examples/http_bench_bin_ops.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
// This is not a real HTTP server. We read blindly one time into 'requestBuf',
33
// then write this fixed 'responseBuf'. The point of this benchmark is to
44
// exercise the event loop in a simple yet semi-realistic way.

core/examples/http_bench_bin_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
#[macro_use]
44
extern crate log;

core/examples/http_bench_json_ops.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
// This is not a real HTTP server. We read blindly one time into 'requestBuf',
33
// then write this fixed 'responseBuf'. The point of this benchmark is to
44
// exercise the event loop in a simple yet semi-realistic way.

core/examples/http_bench_json_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
#[macro_use]
44
extern crate log;

core/flags.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use rusty_v8 as v8;
44
/// Pass the command line arguments to v8.

core/gotham_state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
// Forked from Gotham:
33
// https://github.com/gotham-rs/gotham/blob/bcbbf8923789e341b7a0e62c59909428ca4e22e2/gotham/src/state/mod.rs
44
// Copyright 2017 Gotham Project Developers. MIT license.

core/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
#[macro_use]
44
extern crate lazy_static;

core/module_specifier.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::normalize_path;
44
use std::env::current_dir;

core/modules.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use rusty_v8 as v8;
44

core/normalize_path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use std::path::Component;
44
use std::path::Path;

core/ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::error::bad_resource_id;
44
use crate::error::type_error;

core/plugin_api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
// This file defines the public interface for dynamically loaded plugins.
44

core/resources.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
// Think of Resources as File Descriptors. They are integers that are allocated
44
// by the privileged side of Deno which refer to various rust objects that need

core/runtime.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use rusty_v8 as v8;
44

core/shared_queue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
/*
33
SharedQueue Binary Layout
44
+-------------------------------+-------------------------------+

core/zero_copy_buf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::bindings;
44
use rusty_v8 as v8;

runtime/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use deno_core::JsRuntime;
44
use deno_core::RuntimeOptions;

runtime/colors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use regex::Regex;
44
use std::env;

runtime/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
//! There are many types of errors in Deno:
44
//! - AnyError: a generic wrapper that can encapsulate any type of error.

runtime/fs_util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use deno_core::error::AnyError;
44
pub use deno_core::normalize_path;

runtime/http_util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use deno_core::error::generic_error;
44
use deno_core::error::AnyError;

runtime/js/01_errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
((window) => {
44
class NotFound extends Error {

runtime/js/11_workers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
((window) => {
44
const core = window.Deno.core;

runtime/js/40_tty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
((window) => {
44
const core = window.Deno.core;

runtime/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
#![deny(warnings)]
44

runtime/metrics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
#[derive(Default, Debug)]
33
pub struct Metrics {
44
pub ops_dispatched: u64,

runtime/ops/crypto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
use deno_crypto::op_get_random_values;
33
use deno_crypto::rand::rngs::StdRng;
44
use deno_crypto::rand::SeedableRng;

runtime/ops/dispatch_minimal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use deno_core::error::AnyError;
44
use deno_core::futures::future::FutureExt;

runtime/ops/fetch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
use crate::http_util;
33
use crate::permissions::Permissions;
44
use deno_fetch::reqwest;

runtime/ops/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
// Some deserializer fields are only used on Unix and Windows build fails without it
33
use super::io::std_file_resource;
44
use super::io::StreamResource;

runtime/ops/fs_events.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::permissions::Permissions;
44
use deno_core::error::bad_resource_id;

runtime/ops/io.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use super::dispatch_minimal::minimal_op;
44
use super::dispatch_minimal::MinimalOp;

runtime/ops/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
mod dispatch_minimal;
44
pub use dispatch_minimal::MinimalOp;

runtime/ops/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::ops::io::FullDuplexResource;
44
use crate::ops::io::TcpStreamResource;

runtime/ops/net_unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::ops::io::StreamResource;
44
use crate::ops::net::AcceptArgs;

runtime/ops/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::permissions::Permissions;
44
use deno_core::error::AnyError;

runtime/ops/permissions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::permissions::Permissions;
44
use deno_core::error::custom_error;

runtime/ops/plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::metrics::metrics_op;
44
use crate::permissions::Permissions;

runtime/ops/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use super::io::{std_file_resource, StreamResource};
44
use crate::permissions::Permissions;

runtime/ops/runtime.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::metrics::Metrics;
44
use crate::permissions::Permissions;

runtime/ops/signal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use deno_core::error::AnyError;
44
use deno_core::serde_json::Value;

runtime/ops/timers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
//! This module helps deno implement timers.
44
//!

runtime/ops/tls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use super::io::StreamResource;
44
use super::io::TcpStreamResource;

runtime/ops/tty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use super::io::std_file_resource;
44
use super::io::StreamResource;

runtime/ops/web_worker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::web_worker::WebWorkerHandle;
44
use crate::web_worker::WorkerEvent;

runtime/ops/websocket.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22
use crate::permissions::Permissions;
33
use deno_websocket::op_ws_check_permission;
44
use deno_websocket::op_ws_close;

runtime/ops/worker_host.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::permissions::resolve_fs_allowlist;
44
use crate::permissions::PermissionState;

runtime/permissions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
1+
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
22

33
use crate::colors;
44
use crate::fs_util::resolve_from_cwd;

0 commit comments

Comments
 (0)