Skip to content

Commit

Permalink
chore: add a blankline after copyright header and bump year (#1008)
Browse files Browse the repository at this point in the history
Prevents auto-use from inserting before the copyright.
  • Loading branch information
dsherret authored Jan 2, 2025
1 parent 2e27bf7 commit 687dad7
Show file tree
Hide file tree
Showing 308 changed files with 460 additions and 314 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
# Copyright 2018-2025 the Deno authors. MIT license.

[workspace]
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright 2018-2024 the Deno authors
Copyright 2018-2025 the Deno authors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion core/00_infra.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
"use strict";

((window) => {
Expand Down
2 changes: 1 addition & 1 deletion core/00_primordials.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

// Based on https://github.com/nodejs/node/blob/889ad35d3d41e376870f785b0c1b669cb732013d/lib/internal/per_context/primordials.js
// Copyright Joyent, Inc. and other Node contributors.
Expand Down
2 changes: 1 addition & 1 deletion core/01_core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
"use strict";

((window) => {
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
# Copyright 2018-2025 the Deno authors. MIT license.

[package]
name = "deno_core"
Expand Down
3 changes: 2 additions & 1 deletion core/arena/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

mod raw_arena;
mod shared_arena;
mod shared_atomic_arena;
Expand Down
3 changes: 2 additions & 1 deletion core/arena/raw_arena.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::alloc::Layout;
use std::cell::Cell;
use std::mem::ManuallyDrop;
Expand Down
3 changes: 2 additions & 1 deletion core/arena/shared_arena.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::alloc::Layout;
use std::cell::Cell;
use std::ptr::NonNull;
Expand Down
3 changes: 2 additions & 1 deletion core/arena/shared_atomic_arena.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::alloc::Layout;
use std::ptr::NonNull;
use std::sync::atomic::AtomicUsize;
Expand Down
3 changes: 2 additions & 1 deletion core/arena/unique_arena.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::alloc::Layout;
use std::future::Future;
use std::pin::Pin;
Expand Down
2 changes: 1 addition & 1 deletion core/async_cancel.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::any::type_name;
use std::borrow::Cow;
Expand Down
2 changes: 1 addition & 1 deletion core/async_cell.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::any::type_name;
use std::any::Any;
Expand Down
3 changes: 2 additions & 1 deletion core/benches/infra/arena.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

#![allow(clippy::needless_range_loop)]
use bencher::benchmark_group;
use bencher::benchmark_main;
Expand Down
3 changes: 2 additions & 1 deletion core/benches/ops/async.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use bencher::*;
use deno_core::error::generic_error;
use deno_core::*;
Expand Down
2 changes: 1 addition & 1 deletion core/benches/ops/async_harness.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
// deno-lint-ignore-file no-unused-vars, prefer-const, require-await

// This harness is dynamically generated for each individual bench run.
Expand Down
3 changes: 2 additions & 1 deletion core/benches/ops/opset.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use bencher::*;
use futures::stream::FuturesOrdered;
use futures::stream::FuturesUnordered;
Expand Down
3 changes: 2 additions & 1 deletion core/benches/ops/sync.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

#![allow(deprecated)]
use bencher::*;
use deno_core::error::generic_error;
Expand Down
2 changes: 1 addition & 1 deletion core/benches/ops/sync_harness.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
// deno-lint-ignore-file no-unused-vars, prefer-const

// This harness is dynamically generated for each individual bench run.
Expand Down
2 changes: 1 addition & 1 deletion core/benches/snapshot/file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
import * as ops from "ext:core/ops";

export function unused() {
Expand Down
2 changes: 1 addition & 1 deletion core/benches/snapshot/file2.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
export function ok() {}
3 changes: 2 additions & 1 deletion core/benches/snapshot/snapshot.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use criterion::*;
use deno_ast::MediaType;
use deno_ast::ParseParams;
Expand Down
2 changes: 1 addition & 1 deletion core/convert.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use crate::error::StdAnyError;
use crate::runtime::ops;
Expand Down
2 changes: 1 addition & 1 deletion core/core.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

// deno-lint-ignore-file ban-types no-explicit-any

Expand Down
2 changes: 1 addition & 1 deletion core/cppgc.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use crate::runtime::SnapshotLoadDataStore;
use crate::runtime::SnapshotStoreDataStore;
Expand Down
2 changes: 1 addition & 1 deletion core/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::borrow::Cow;
use std::collections::HashSet;
Expand Down
2 changes: 1 addition & 1 deletion core/error_codes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use anyhow::Error;

Expand Down
2 changes: 1 addition & 1 deletion core/examples/disable_ops.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
//! This example shows you how to define ops in Rust and then call them from
//! JavaScript.
Expand Down
2 changes: 1 addition & 1 deletion core/examples/eval_js_value.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
//! This example shows you how to evaluate JavaScript expression and deserialize
//! return value into a Rust object.
Expand Down
2 changes: 1 addition & 1 deletion core/examples/hello_world.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
//! This example shows you how to define ops in Rust and then call them from
//! JavaScript.
Expand Down
3 changes: 2 additions & 1 deletion core/examples/op2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

globalThis.op2_sample = {
"use_state": (f) => Deno.core.ops.op_use_state(f),
};
3 changes: 2 additions & 1 deletion core/examples/op2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use anyhow::Context;
use deno_core::anyhow::Error;
use deno_core::*;
Expand Down
2 changes: 1 addition & 1 deletion core/examples/snapshot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
# Copyright 2018-2025 the Deno authors. MIT license.
# Note: Since Cargo "example" targets don't discover/use `build.rs` files, this
# example is a member of the root `deno_core` workspace. That means it will
# compile with `cargo build` in the root, so that this example/documentation
Expand Down
3 changes: 2 additions & 1 deletion core/examples/snapshot/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use deno_core::extension;
use deno_core::snapshot::create_snapshot;
use deno_core::snapshot::CreateSnapshotOptions;
Expand Down
2 changes: 1 addition & 1 deletion core/examples/snapshot/example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
// Run this script with `cargo run`.

import { callRust } from "my:runtime";
Expand Down
3 changes: 2 additions & 1 deletion core/examples/snapshot/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::env::current_dir;
use std::rc::Rc;

Expand Down
2 changes: 1 addition & 1 deletion core/examples/snapshot/src/runtime.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
/**
* This module provides the JavaScript interface atop calls to the Rust ops.
*/
Expand Down
2 changes: 1 addition & 1 deletion core/examples/snapshot/tests/output.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use core::str;
use std::process::Command;
Expand Down
2 changes: 1 addition & 1 deletion core/examples/ts_module_loader.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
//! This example shows how to use swc to transpile TypeScript and JSX/TSX
//! modules.
//!
Expand Down
2 changes: 1 addition & 1 deletion core/examples/wasm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

const { ops } = Deno.core;

Expand Down
2 changes: 1 addition & 1 deletion core/examples/wasm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

export declare function op_wasm(): void;
export declare function op_wasm_mem(memory: externref): void;
Expand Down
3 changes: 2 additions & 1 deletion core/extension_set.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::cell::RefCell;
use std::iter::Chain;
use std::rc::Rc;
Expand Down
3 changes: 2 additions & 1 deletion core/extensions.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use crate::modules::IntoModuleCodeString;
use crate::modules::ModuleCodeString;
use crate::ops::OpMetadata;
Expand Down
3 changes: 2 additions & 1 deletion core/external.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::marker::PhantomData;
use std::mem::ManuallyDrop;

Expand Down
2 changes: 1 addition & 1 deletion core/fast_string.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use serde::Deserializer;
use serde::Serializer;
Expand Down
2 changes: 1 addition & 1 deletion core/feature_checker.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::collections::BTreeSet;
use std::fmt::Debug;
Expand Down
2 changes: 1 addition & 1 deletion core/flags.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

/// Pass the command line arguments to v8.
/// The first element of args (which usually corresponds to the binary name) is
Expand Down
2 changes: 1 addition & 1 deletion core/gotham_state.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
// Forked from Gotham:
// https://github.com/gotham-rs/gotham/blob/bcbbf8923789e341b7a0e62c59909428ca4e22e2/gotham/src/state/mod.rs
// Copyright 2017 Gotham Project Developers. MIT license.
Expand Down
2 changes: 1 addition & 1 deletion core/inspector.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

//! The documentation for the inspector API is sparse, but these are helpful:
//! <https://chromedevtools.github.io/devtools-protocol/>
Expand Down
2 changes: 1 addition & 1 deletion core/io/buffer_strategy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

/// Our standard buffer size if we don't know what else to do.
const STANDARD_BUFFER_SIZE: usize = 64 * 1024;
Expand Down
3 changes: 2 additions & 1 deletion core/io/buffers.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use bytes::Buf;
use bytes::BytesMut;
use serde_v8::JsBuffer;
Expand Down
2 changes: 1 addition & 1 deletion core/io/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

// Think of Resources as File Descriptors. They are integers that are allocated
// by the privileged side of Deno which refer to various rust objects that need
Expand Down
2 changes: 1 addition & 1 deletion core/io/resource.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

// Think of Resources as File Descriptors. They are integers that are allocated
// by the privileged side of Deno which refer to various rust objects that need
Expand Down
3 changes: 2 additions & 1 deletion core/io/resource_handle.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use std::io::IsTerminal;

/// Represents an underlying handle for a platform. On unix, everything is an `fd`. On Windows, everything
Expand Down
3 changes: 2 additions & 1 deletion core/io/resource_table.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use super::Resource;
use super::ResourceHandle;
use super::ResourceHandleFd;
Expand Down
2 changes: 1 addition & 1 deletion core/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

#![deny(clippy::print_stderr)]
#![deny(clippy::print_stdout)]
Expand Down
2 changes: 1 addition & 1 deletion core/mod.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
// Re-export fields from `globalThis.__bootstrap` so that embedders using
// ES modules can import these symbols instead of capturing the bootstrap ns.
const bootstrap = globalThis.__bootstrap;
Expand Down
2 changes: 1 addition & 1 deletion core/module_specifier.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use crate::normalize_path;
use std::error::Error;
Expand Down
3 changes: 2 additions & 1 deletion core/modules/loaders.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use crate::error::generic_error;
use crate::extensions::ExtensionFileSource;
use crate::module_specifier::ModuleSpecifier;
Expand Down
3 changes: 2 additions & 1 deletion core/modules/map.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use super::module_map_data::ModuleMapSnapshotData;
use super::IntoModuleCodeString;
use super::IntoModuleName;
Expand Down
3 changes: 2 additions & 1 deletion core/modules/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use crate::error::exception_to_err_result;
use crate::error::AnyError;
use crate::fast_string::FastString;
Expand Down
3 changes: 2 additions & 1 deletion core/modules/module_map_data.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.

use super::RequestedModuleType;
use crate::fast_string::FastString;
use crate::modules::ModuleId;
Expand Down
Loading

0 comments on commit 687dad7

Please sign in to comment.